build failure?

Angel <otstoy-JGs/[email protected]> Wed, 03 Nov 2010 07:21:34 +0300
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Hi all

libfastcgi build fails on ubuntu 10.10 x64, logfile attached.
Recomended fix suggestions are welcome...

_______________________________________________
FastCGI-developers mailing list
FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
http://mailman.pins.net/mailman/listinfo.cgi/fastcgi-developers
fcgi_build.txt (text/plain, 10 KB)
angel@pc:~/Desktop/fcgi-2.4.0$ ./configure
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... mawk
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix... 
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for a BSD compatible install... /usr/bin/install -c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for ld used by GCC... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )
checking command to parse /usr/bin/nm -B output... ok
checking for dlfcn.h... yes
checking for file... /usr/bin/file
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking whether g++ works... yes
checking whether cin has a streambuf assignment operator... no
checking whether char_type is defined in the context of streambuf... yes
checking for gethostbyname in -lnsl... yes
checking for socket in -lsocket... no
checking for pthread.h... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for cc_r... gcc
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 for gcc option to accept ANSI C... none needed
checking for ssize_t... yes
checking for sun_len in sys/un.h... no
checking for fpos_t in stdio.h... yes
checking for sys/socket.h... yes
checking for netdb.h... yes
checking for netinet/in.h... yes
checking for arpa/inet.h... yes
checking for sys/time.h... yes
checking for limits.h... yes
checking for sys/param.h... yes
checking for unistd.h... (cached) yes
checking for a fileno() prototype in stdio.h... yes
checking whether cross-process locking is required by accept()... no
checking whether va_arg(arg, long double) crashes the compiler... no
checking for an ANSI C-conforming const... yes
checking for strerror... yes
checking for inline... inline
checking for C compiler warning flags... -Wall
configure: creating ./config.status
config.status: creating Makefile
config.status: creating cgi-fcgi/Makefile
config.status: creating include/Makefile
config.status: creating libfcgi/Makefile
config.status: creating examples/Makefile
config.status: creating fcgi_config.h
angel@pc:~/Desktop/fcgi-2.4.0$ make
cd . \
	  && CONFIG_FILES= CONFIG_HEADERS=fcgi_config.h \
	     /bin/sh ./config.status
config.status: creating fcgi_config.h
config.status: fcgi_config.h is unchanged
make  all-recursive
make[1]: Entering directory `/home/dian/Desktop/fcgi-2.4.0'
Making all in libfcgi
make[2]: Entering directory `/home/dian/Desktop/fcgi-2.4.0/libfcgi'
source='fcgiapp.c' object='libfcgi_la-fcgiapp.lo' libtool=yes \
	depfile='.deps/libfcgi_la-fcgiapp.Plo' tmpdepfile='.deps/libfcgi_la-fcgiapp.TPlo' \
	depmode=gcc3 /bin/sh ../depcomp \
	/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..   -I../include -pthread -g -O2 -Wall -c -o libfcgi_la-fcgiapp.lo `test -f fcgiapp.c || echo './'`fcgiapp.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -pthread -g -O2 -Wall -c fcgiapp.c -MT libfcgi_la-fcgiapp.lo -MD -MP -MF .deps/libfcgi_la-fcgiapp.TPlo  -fPIC -DPIC -o .libs/libfcgi_la-fcgiapp.lo
fcgiapp.c: In function 'ProcessManagementRecord':
fcgiapp.c:1490: warning: dereferencing type-punned pointer will break strict-aliasing rules
fcgiapp.c:1495: warning: dereferencing type-punned pointer will break strict-aliasing rules
fcgiapp.c:1498: warning: dereferencing type-punned pointer will break strict-aliasing rules
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -pthread -g -O2 -Wall -c fcgiapp.c -MT libfcgi_la-fcgiapp.lo -MD -MP -MF .deps/libfcgi_la-fcgiapp.TPlo -o libfcgi_la-fcgiapp.o >/dev/null 2>&1
mv -f .libs/libfcgi_la-fcgiapp.lo libfcgi_la-fcgiapp.lo
source='fcgi_stdio.c' object='libfcgi_la-fcgi_stdio.lo' libtool=yes \
	depfile='.deps/libfcgi_la-fcgi_stdio.Plo' tmpdepfile='.deps/libfcgi_la-fcgi_stdio.TPlo' \
	depmode=gcc3 /bin/sh ../depcomp \
	/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..   -I../include -pthread -g -O2 -Wall -c -o libfcgi_la-fcgi_stdio.lo `test -f fcgi_stdio.c || echo './'`fcgi_stdio.c
rm -f .libs/libfcgi_la-fcgi_stdio.lo
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -pthread -g -O2 -Wall -c fcgi_stdio.c -MT libfcgi_la-fcgi_stdio.lo -MD -MP -MF .deps/libfcgi_la-fcgi_stdio.TPlo  -fPIC -DPIC -o .libs/libfcgi_la-fcgi_stdio.lo
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -pthread -g -O2 -Wall -c fcgi_stdio.c -MT libfcgi_la-fcgi_stdio.lo -MD -MP -MF .deps/libfcgi_la-fcgi_stdio.TPlo -o libfcgi_la-fcgi_stdio.o >/dev/null 2>&1
mv -f .libs/libfcgi_la-fcgi_stdio.lo libfcgi_la-fcgi_stdio.lo
source='os_unix.c' object='libfcgi_la-os_unix.lo' libtool=yes \
	depfile='.deps/libfcgi_la-os_unix.Plo' tmpdepfile='.deps/libfcgi_la-os_unix.TPlo' \
	depmode=gcc3 /bin/sh ../depcomp \
	/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..   -I../include -pthread -g -O2 -Wall -c -o libfcgi_la-os_unix.lo `test -f os_unix.c || echo './'`os_unix.c
rm -f .libs/libfcgi_la-os_unix.lo
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -pthread -g -O2 -Wall -c os_unix.c -MT libfcgi_la-os_unix.lo -MD -MP -MF .deps/libfcgi_la-os_unix.TPlo  -fPIC -DPIC -o .libs/libfcgi_la-os_unix.lo
os_unix.c: In function 'OS_Accept':
os_unix.c:1166: warning: pointer targets in passing argument 3 of 'accept' differ in signedness
/usr/include/sys/socket.h:214: note: expected 'socklen_t * __restrict__' but argument is of type 'int *'
os_unix.c: In function 'OS_IsFcgi':
os_unix.c:1266: warning: pointer targets in passing argument 3 of 'getpeername' differ in signedness
/usr/include/sys/socket.h:133: note: expected 'socklen_t * __restrict__' but argument is of type 'int *'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -pthread -g -O2 -Wall -c os_unix.c -MT libfcgi_la-os_unix.lo -MD -MP -MF .deps/libfcgi_la-os_unix.TPlo -o libfcgi_la-os_unix.o >/dev/null 2>&1
mv -f .libs/libfcgi_la-os_unix.lo libfcgi_la-os_unix.lo
/bin/sh ../libtool --mode=link gcc  -g -O2 -Wall   -o libfcgi.la -rpath /usr/local/lib  libfcgi_la-fcgiapp.lo libfcgi_la-fcgi_stdio.lo libfcgi_la-os_unix.lo  -lnsl 
rm -fr .libs/libfcgi.la .libs/libfcgi.* .libs/libfcgi.*
gcc -shared  libfcgi_la-fcgiapp.lo libfcgi_la-fcgi_stdio.lo libfcgi_la-os_unix.lo  -lnsl  -Wl,-soname -Wl,libfcgi.so.0 -o .libs/libfcgi.so.0.0.0
(cd .libs && rm -f libfcgi.so.0 && ln -s libfcgi.so.0.0.0 libfcgi.so.0)
(cd .libs && rm -f libfcgi.so && ln -s libfcgi.so.0.0.0 libfcgi.so)
ar cru .libs/libfcgi.a  libfcgi_la-fcgiapp.o libfcgi_la-fcgi_stdio.o libfcgi_la-os_unix.o 
ranlib .libs/libfcgi.a
creating libfcgi.la
(cd .libs && rm -f libfcgi.la && ln -s ../libfcgi.la libfcgi.la)
source='fcgio.cpp' object='fcgio.lo' libtool=yes \
	depfile='.deps/fcgio.Plo' tmpdepfile='.deps/fcgio.TPlo' \
	depmode=gcc3 /bin/sh ../depcomp \
	/bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..   -I../include  -g -O2 -c -o fcgio.lo `test -f fcgio.cpp || echo './'`fcgio.cpp
rm -f .libs/fcgio.lo
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include -g -O2 -c fcgio.cpp -MT fcgio.lo -MD -MP -MF .deps/fcgio.TPlo  -fPIC -DPIC -o .libs/fcgio.lo
fcgio.cpp: In destructor 'virtual fcgi_streambuf::~fcgi_streambuf()':
fcgio.cpp:50: error: 'EOF' was not declared in this scope
fcgio.cpp: In member function 'virtual int fcgi_streambuf::overflow(int)':
fcgio.cpp:70: error: 'EOF' was not declared in this scope
fcgio.cpp:75: error: 'EOF' was not declared in this scope
fcgio.cpp: In member function 'virtual int fcgi_streambuf::sync()':
fcgio.cpp:86: error: 'EOF' was not declared in this scope
fcgio.cpp:87: error: 'EOF' was not declared in this scope
fcgio.cpp: In member function 'virtual int fcgi_streambuf::underflow()':
fcgio.cpp:107: error: 'EOF' was not declared in this scope
make[2]: *** [fcgio.lo] Error 1
make[2]: Leaving directory `/home/dian/Desktop/fcgi-2.4.0/libfcgi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dian/Desktop/fcgi-2.4.0'
make: *** [all] Error 2
angel@pc:~/Desktop/fcgi-2.4.0$