[prev in list] [next in list] [prev in thread] [next in thread] 

List:       privoxy-users
Subject:    [privoxy-users] [ ijbswa-Support Requests-3605444 ] build error on windows
From:       SourceForge.net <noreply () sourceforge ! net>
Date:       2013-02-23 12:26:13
Message-ID: E1U9EBD-0000mt-Pm () sfs-ml-4 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Support Requests item #3605444, was opened at 2013-02-20 08:46
Message generated for change (Comment added) made by fabiankeil
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=211118&aid=3605444&group_id=11118

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
> Status: Pending
Priority: 5
Private: No
Submitted By: deutuchantu (detuchantu)
Assigned to: Nobody/Anonymous (nobody)
Summary: build error on windows 

Initial Comment:
Hi, 

When I compile privoxy-3.0.20-beta on windows XP 32 using cygwin with MinGW support \
or using MinGW shell I get the same error as follow

Administrator@john /cygdrive/c/Development/privoxy-3.0.20-beta
$ autoheader
autoheader-2.69: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader-2.69: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader-2.69: WARNING: is deprecated and discouraged.
autoheader-2.69:
autoheader-2.69: WARNING: Using the third argument of `AC_DEFINE' and
autoheader-2.69: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template \
                without
autoheader-2.69: WARNING: `acconfig.h':
autoheader-2.69:
autoheader-2.69: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader-2.69:                [Define if a function `main' is needed.])
autoheader-2.69:
autoheader-2.69: WARNING: More sophisticated templates can also be produced, see the
autoheader-2.69: WARNING: documentation.

Administrator@john /cygdrive/c/Development/privoxy-3.0.20-beta
$ autoconf

Administrator@john /cygdrive/c/Development/privoxy-3.0.20-beta
$ ./configure --host=i686-pc-mingw32 --build=i686-pc-cygwin --enable-mingw32
checking build system type... i686-pc-cygwin
checking host system type... i686-pc-mingw32
checking for i686-pc-mingw32-gcc... i686-pc-mingw32-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-mingw32-gcc accepts -g... yes
checking for i686-pc-mingw32-gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... i686-pc-mingw32-gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for gawk... gawk
checking for gdb... yes
checking for groups... /usr/bin/groups
checking for id... /usr/bin/id
configure: WARNING: There is no user 'privoxy' on this system
checking for user... none specified
checking for group... none specified
Using mingw32 (Win32 GUI)
checking for rpm... no
checking for jade... jade
checking for man2html... man2html
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
Using POSIX threads
checking for gethostbyname in -lnsl... no
checking for gethostbyaddr_r... no
no
checking for gethostbyname_r... no
no
checking for gmtime_r... no
no
checking for localtime_r... no
no
checking for socklen_t... no
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for pid_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking size of int... 4
checking size of char *... 4
checking size of long... 4
checking size of long long... 8
checking size of size_t... 4
checking OS.h usability... no
checking OS.h presence... no
checking for OS.h... no
checking arpa/inet.h usability... no
checking arpa/inet.h presence... no
checking for arpa/inet.h... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking netdb.h usability... no
checking netdb.h presence... no
checking for netdb.h... no
checking netinet/in.h usability... no
checking netinet/in.h presence... no
checking for netinet/in.h... no
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... no
checking sys/ioctl.h presence... no
checking for sys/ioctl.h... no
checking sys/socket.h usability... no
checking sys/socket.h presence... no
checking for sys/socket.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking sys/wait.h usability... no
checking sys/wait.h presence... no
checking for sys/wait.h... no
checking for unistd.h... (cached) yes
checking for bcopy... no
checking whether i686-pc-mingw32-gcc needs -traditional... no
checking return type of signal handlers... void
checking for access... yes
checking for atexit... yes
checking for getcwd... yes
checking for gethostbyaddr... no
checking for gethostbyaddr_r... (cached) no
checking for gethostbyname... no
checking for gethostbyname_r... (cached) no
checking for gettimeofday... yes
checking for inet_ntoa... no
checking for localtime_r... (cached) no
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for poll... no
checking for putenv... yes
checking for random... no
checking for regcomp... no
checking for select... no
checking for setlocale... yes
checking for shutdown... no
checking for snprintf... yes
checking for socket... no
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strftime... yes
checking for strlcat... no
checking for strlcpy... no
checking for strptime... no
checking for strtoul... yes
checking for timegm... no
checking for tzset... yes
checking for main in -lws2_32... yes
checking getaddrinfo in ws2_32...
checking getnameinfo in ws2_32...
checking for pcre_compile in -lpcre... no
checking for regcomp in -lpcreposix... no
checking for zlibVersion in -lz... yes
configure: WARNING: You are using the static PCRE code which is out of date and \
scheduled for removal, for details see:  \
http://sourceforge.net/mailarchive/forum.php?thread_name=20080511195555.2dc6cfdc%40fabiankeil.de&forum_name=ijbswa-developers
 Enabling connection-sharing support.
configure: creating ./config.status
config.status: creating GNUmakefile
config.status: creating doc/source/ldp.dsl
config.status: creating config.h

Administrator@nhanhoa123 /cygdrive/c/Development/privoxy-3.0.20-beta
$ make
i686-pc-mingw32-gcc -c -pipe -O2 -DWINVER=0x501   -mwindows -mno-cygwin -Wall  -Ipcre \
actions.c -o actions.o i686-pc-mingw32-gcc -c -pipe -O2 -DWINVER=0x501   -mwindows \
-mno-cygwin -Wall  -Ipcre  cgi.c -o cgi.o i686-pc-mingw32-gcc -c -pipe -O2 \
-DWINVER=0x501   -mwindows -mno-cygwin -Wall  -Ipcre  cgiedit.c -o cgiedit.o \
i686-pc-mingw32-gcc -c -pipe -O2 -DWINVER=0x501   -mwindows -mno-cygwin -Wall  -Ipcre \
cgisimple.c -o cgisimple.o i686-pc-mingw32-gcc -c -pipe -O2 -DWINVER=0x501   \
-mwindows -mno-cygwin -Wall  -Ipcre  deanimate.c -o deanimate.o i686-pc-mingw32-gcc \
-c -pipe -O2 -DWINVER=0x501   -mwindows -mno-cygwin -Wall  -Ipcre  encode.c -o \
encode.o i686-pc-mingw32-gcc -c -pipe -O2 -DWINVER=0x501   -mwindows -mno-cygwin \
                -Wall  -Ipcre  errlog.c -o errlog.o
errlog.c: In function ‘log_error':
errlog.c:791:16: warning: unknown conversion type character ‘l' in format
errlog.c:791:16: warning: too many arguments for format
i686-pc-mingw32-gcc -c -pipe -O2 -DWINVER=0x501   -mwindows -mno-cygwin -Wall  -Ipcre \
filters.c -o filters.o i686-pc-mingw32-gcc -c -pipe -O2 -DWINVER=0x501   -mwindows \
-mno-cygwin -Wall  -Ipcre  gateway.c -o gateway.o i686-pc-mingw32-gcc -c -pipe -O2 \
                -DWINVER=0x501   -mwindows -mno-cygwin -Wall  -Ipcre  jbsockets.c -o \
                jbsockets.o
jbsockets.c: In function ‘accept_connection':
jbsockets.c:1282:7: warning: passing argument 4 of ‘setsockopt' from incompatible \
                pointer type
/usr/i686-pc-mingw32/sys-root/mingw/include/winsock2.h:551:32: note: expected \
‘const char *' but argument is of type ‘struct linger *' i686-pc-mingw32-gcc -c \
-pipe -O2 -DWINVER=0x501   -mwindows -mno-cygwin -Wall  -Ipcre  jcc.c -o jcc.o In \
file included from jcc.c:57:0: win32.h:49:18: error: expected ‘=', ‘,', ‘;', \
‘asm' or ‘__attribute__' before ‘g_hInstance' win32.h:52:19: error: expected \
‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘WinMain' In file included \
from jcc.c:59:0: w32log.h:42:13: error: expected ‘=', ‘,', ‘;', ‘asm' or \
‘__attribute__' before ‘g_hwndLogFrame' w32log.h:45:13: error: expected ‘=', \
‘,', ‘;', ‘asm' or ‘__attribute__' before ‘g_bShowActivityAnimation' \
w32log.h:48:13: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' \
before ‘g_bShowOnTaskBar' w32log.h:51:13: error: expected ‘=', ‘,', ‘;', \
‘asm' or ‘__attribute__' before ‘g_bCloseHidesWindow' w32log.h:54:13: error: \
expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘g_bLogMessages' \
w32log.h:57:13: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' \
before ‘g_bHighlightMessages' w32log.h:60:13: error: expected ‘=', ‘,', ‘;', \
‘asm' or ‘__attribute__' before ‘g_bLimitBufferSize' w32log.h:84:14: error: \
expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘g_hiconApp' \
w32log.h:86:13: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' \
before ‘InitLogWindow' w32log.h:88:32: error: expected ‘)' before ‘bShow'
In file included from jcc.c:61:0:
w32svrapi.h:61:13: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' \
before ‘bRunAsService' w32svrapi.h:62:28: error: expected ‘=', ‘,', ‘;', \
‘asm' or ‘__attribute__' before ‘w32ServiceDispatchTable' w32svrapi.h:64:13: \
error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before \
‘install_service' w32svrapi.h:65:13: error: expected ‘=', ‘,', ‘;', ‘asm' \
or ‘__attribute__' before ‘uninstall_service' w32svrapi.h:71:13: error: expected \
‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘CanSystemSupportServices' \
w32svrapi.h:74:18: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' \
before ‘w32_open_sc_manager' w32svrapi.h:80:13: error: expected ‘=', ‘,', \
‘;', ‘asm' or ‘__attribute__' before ‘w32_close_service_handle' \
w32svrapi.h:84:18: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' \
before ‘w32_open_service' w32svrapi.h:90:18: error: expected ‘=', ‘,', ‘;', \
‘asm' or ‘__attribute__' before ‘w32_create_service' w32svrapi.h:106:13: error: \
expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before \
‘w32_delete_service' w32svrapi.h:110:13: error: expected ‘=', ‘,', ‘;', \
‘asm' or ‘__attribute__' before ‘w32_query_service_config' w32svrapi.h:117:13: \
error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before \
‘w32_start_service_ctrl_dispatcher' w32svrapi.h:121:30: error: expected ‘=', \
‘,', ‘;', ‘asm' or ‘__attribute__' before \
‘w32_register_service_ctrl_handler' w32svrapi.h:126:13: error: expected ‘=', \
                ‘,', ‘;', ‘asm' or ‘__attribute__' before \
                ‘w32_set_service_status'
jcc.c: In function ‘real_main':
jcc.c:3240:10: warning: implicit declaration of function ‘install_service'
jcc.c:3247:10: warning: implicit declaration of function ‘uninstall_service'
jcc.c:3251:10: error: ‘bRunAsService' undeclared (first use in this function)
jcc.c:3251:10: note: each undeclared identifier is reported only once for each \
function it appears in jcc.c:3612:7: warning: implicit declaration of function \
‘w32_start_service_ctrl_dispatcher' jcc.c:3612:45: error: \
‘w32ServiceDispatchTable' undeclared (first use in this function) GNUmakefile:273: \
                recipe for target `jcc.o' failed
make: *** [jcc.o] Error 1

With Cygwin I configure with command:
./configure --host=i686-pc-mingw32 --build=i686-pc-cygwin --enable-mingw32

With MinGW shell I configure with commd:
./configure --enable-mingw32

I attach the config.log here, please help me to sole problem.

Thanks.

----------------------------------------------------------------------

> Comment By: Fabian Keil (fabiankeil)
Date: 2013-02-23 04:26

Message:
enable-compression depends on FEATURE_COMPRESSION which is not compiled by
default:
http://config.privoxy.org/user-manual/config.html#ENABLE-COMPRESSION

Whether or not the feature is available can be checked at:
http://config.privoxy.org/show-status

----------------------------------------------------------------------

Comment By: deutuchantu (detuchantu)
Date: 2013-02-22 08:36

Message:
There is no problem when I compile privoxy with cygwin 1.5.

When I start privoxy with enable compression, I got follow error:

2013-02-22 23:26:23.384 00000998 Error: Ignoring unrecognized directive
'enable-compression 0' (3943696946U) in line 136 in configuration file
(config.txt).
2013-02-22 23:26:23.431 00000998 Error: Ignoring unrecognized directive
'compression-level 1' (2464423563U) in line 139 in configuration file
(config.txt).

I use privoxy-3.0.20-beta binary download from SF.

Thanks for your support.

----------------------------------------------------------------------

Comment By: Fabian Keil (fabiankeil)
Date: 2013-02-22 03:43

Message:
It should still work with earlier cygwin versions.

Did you try the suggested cygwin 1.5 already?

----------------------------------------------------------------------

Comment By: deutuchantu (detuchantu)
Date: 2013-02-21 08:56

Message:
Thanks for your reply,

Is there another way to build privoxy on windows?

----------------------------------------------------------------------

Comment By: Fabian Keil (fabiankeil)
Date: 2013-02-21 05:10

Message:
Downgrade to support request as Privoxy isn't expected to build in this
environment.

I agree that it would be nice if Privoxy would build with more recent
cygwin versions, but the breakage seems to be a cygwin feature and not a
Privoxy bug.

----------------------------------------------------------------------

Comment By: Lee (ler762)
Date: 2013-02-20 22:06

Message:
Currently you need cygwin 1.5 to build Privoxy.  Cygwin had dropped support
for -mwindows -mno-cygwin and Privoxy has not been changed to build under
the new version of Cygwin.
I suspect configure.in needs to be changed to use the new cross-compiler
[??] toolchain but I haven't been able to figure out just what changes are
required yet.

Regards,
Lee


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=211118&aid=3605444&group_id=11118

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Ijbswa-users mailing list
Ijbswa-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ijbswa-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic