[ ijbswa-Bugs-3605444 ] build error on windows
SourceForge.net <[email protected]>
| Newsgroups | gmane.comp.web.privoxy.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #3605444, was opened at 2013-02-20 08:46
Message generated for change (Tracker Item Submitted) made by detuchantu
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=111118&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: build process
Group: None
Status: Open
Resolution: None
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=111118&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-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ijbswa-developers