[gnupg-devel] libassuan-0.9.2 build feedback
Nelson H. F. Beebe
beebe at math.utah.edu
Thu Oct 5 18:01:27 CEST 2006
In builds of libassuan-0.9.2 in 34 compilation environments on a score
of different Unix systems, the builds and validation tests succeeded
in 18 of them.
Here is a summary of the failures:
============================================================
Machinetype: Apple MacPro (2 dual-core 3000 MHz Xeon CPUs, 4GB RAM); Darwin 8.7.3 (Mac OS X 10.4.7 (8K1124))
Remote gcc version: i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5363)
Configure environment: CC=gcc CXX=g++ LDFLAGS=-L/usr/local/lib
Linking failed:
gcc -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -L/usr/local/lib -o fdpassing fdpassing.o ../src/libassuan.a
/usr/bin/ld: Undefined symbols:
_pth_fdmode
_pth_read
_pth_select
_pth_waitpid
_pth_write
collect2: ld returned 1 exit status
make[3]: *** [fdpassing] Error 1
This happens because LDFLAGS is not propagated properly from the
configure environment to the Makefile. A restart with
make LIBS='-L/usr/local/lib -lpth' all check
produced a successful build and validation.
The same thing happened in a Mac OS X 10.3.9 PowerPC system.
============================================================
Machinetype: Apple MacPro (2 dual-core 3000 MHz Xeon CPUs, 4GB RAM); Darwin 8.7.3 (Mac OS X 10.4.7 (8K1124))
Remote gcc version: i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5363)
Configure environment: CC=gcc CFLAGS=-m64 CXX=g++ CXXFLAGS=-m64 LDFLAGS=-L/usr/local/lib
checking for socklen_t equivalent... configure: error: Cannot find a type to use in place of socklen_t
9.45 real 1.59 user 4.42 sys
make: *** No targets specified and no makefile found. Stop.
Like GNU/Linux on the AMD64 architecture, Mac OS X on the Intel Xeon
EM64T system provides a 32-bit world and a 64-bit world. Apple
supplies fat binaries and libraries that contain code for both worlds,
and often, also for the same worlds in the older PowerPC systems.
However, at end user sites, preparation of fat files is too
problematic and failure prone, so I follow the practice on the AMD64
of having /usr/local/lib32 for 32-bit libraries, and /usr/local/lib
for 64-bit libraries. Something prevents socklen_t from being seen in
the 64-bit world on Mac OS X.
============================================================
Machinetype: SGI Origin/200-4 (180 MHz) (4 R10000 CPUs); IRIX 6.5
Remote gcc version: gcc (GCC) 3.4.3
Configure environment: CC=gcc CFLAGS=-I/usr/local/include CXX=g++ CXXFLAGS=-I/usr/local/include LDFLAGS=-Wl,-rpath,/usr/local/libn32
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I/usr/local/include -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT assuan-uds.o -MD -MP -MF ".deps/assuan-uds.Tpo" -c -o assuan-uds.o assuan-uds.c; \
then mv -f ".deps/assuan-uds.Tpo" ".deps/assuan-uds.Po"; else rm -f ".deps/assuan-uds.Tpo"; exit 1; fi
assuan-uds.c: In function `uds_reader':
assuan-uds.c:73: warning: implicit declaration of function `CMSG_SPACE'
assuan-uds.c:95: warning: cast increases required alignment of target type
assuan-uds.c:96: warning: implicit declaration of function `CMSG_LEN'
assuan-uds.c:99: error: `SCM_RIGHTS' undeclared (first use in this function)
assuan-uds.c:99: error: (Each undeclared identifier is reported only once
assuan-uds.c:99: error: for each function it appears in.)
...
========================================================================
Machinetype: Sun W40z (4 CPUs, 2400 MHz AMD64 Opteron, 8GB RAM); FreeBSD 5.0-RELEASE #0
Remote gcc version: gcc (GCC) 3.4.3
Configure environment: CC=gcc CFLAGS=-I/usr/local/include CXX=g++ LDFLAGS=-Wl,-rpath,/usr/local/lib
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I/usr/local/include -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT assuan-util.o -MD -MP -MF ".deps/assuan-util.Tpo" -c -o assuan-util.o assuan-util.c; \
then mv -f ".deps/assuan-util.Tpo" ".deps/assuan-util.Po"; else rm -f ".deps/assuan-util.Tpo"; exit 1; fi
assuan-util.c:31: error: redefinition of '__sputc'
/usr/local/lib/gcc/i386-unknown-freebsd5.0/3.4.3/include/stdio.h:405: error: previous definition of '__sputc' was here
assuan-util.c: In function `__sputc':
assuan-util.c:31: error: storage class specified for parameter `alloc_func'
assuan-util.c:31: error: parameter `alloc_func' is initialized
assuan-util.c:32: error: storage class specified for parameter `realloc_func'
assuan-util.c:32: error: parameter `realloc_func' is initialized
assuan-util.c:33: error: storage class specified for parameter `free_func'
assuan-util.c:33: error: parameter `free_func' is initialized
...
============================================================
Machinetype: DEC Alpha 4100-5/466 (4 21164 EV5 CPUs, 466 MHz, 2GB RAM); OSF/1 4.0F
Remote gcc version: gcc (GCC) 3.3.3
Configure environment: CC=gcc CFLAGS="-mieee -I/usr/local/include" CXX=g++ CXXFLAGS="-mieee -I/usr/local/include" LDFLAGS="-Wl,-rpath,/usr/local/lib -L/usr/local/lib" LIBS="-lgccsnprintf"
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -mieee -I/usr/local/include -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT assuan-socket-connect.o -MD -MP -MF ".deps/assuan-socket-connect.Tpo" -c -o assuan-socket-connect.o assuan-socket-connect.c; \
then mv -f ".deps/assuan-socket-connect.Tpo" ".deps/assuan-socket-connect.Po"; else rm -f ".deps/assuan-socket-connect.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -mieee -I/usr/local/include -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT assuan-uds.o -MD -MP -MF ".deps/assuan-uds.Tpo" -c -o assuan-uds.o assuan-uds.c; \
then mv -f ".deps/assuan-uds.Tpo" ".deps/assuan-uds.Po"; else rm -f ".deps/assuan-uds.Tpo"; exit 1; fi
assuan-uds.c: In function `uds_reader':
assuan-uds.c:73: warning: implicit declaration of function `CMSG_SPACE'
assuan-uds.c:85: error: structure has no member named `msg_control'
assuan-uds.c:86: error: structure has no member named `msg_controllen'
assuan-uds.c:95: error: structure has no member named `msg_control'
...
========================================================================
Machinetype: Sun Sun Fire V240 (2 UltraSPARC-IIIi CPUs, 1280 MHz, 8GB RAM); Solaris 9
Configure environment: CC=gcc CFLAGS=-I/usr/local/include CXX=g++ CXXFLAGS=-I/usr/local/include LDFLAGS="-R/usr/local/lib -L/usr/local/lib"
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT fdpassing.o -MD -MP -MF ".deps/fdpassing.Tpo" -c -o fdpassing.o fdpassing.c; \
then mv -f ".deps/fdpassing.Tpo" ".deps/fdpassing.Po"; else rm -f ".deps/fdpassing.Tpo"; exit 1; fi
gcc -I/usr/local/include -Wall -Wcast-align -Wshadow -Wstrict-prototypes -R/usr/local/lib -L/usr/local/lib -o fdpassing fdpassing.o ../src/libassuan.a
Undefined first referenced
symbol in file
__xnet_connect ../src/libassuan.a(assuan-socket.o)
CMSG_LEN ../src/libassuan.a(assuan-uds.o)
__xnet_socket ../src/libassuan.a(assuan-socket.o)
__xnet_socketpair ../src/libassuan.a(assuan-pipe-connect.o)
__xnet_bind ../src/libassuan.a(assuan-socket.o)
CMSG_SPACE ../src/libassuan.a(assuan-uds.o)
__xnet_recvmsg ../src/libassuan.a(assuan-io.o)
__xnet_sendmsg ../src/libassuan.a(assuan-io.o)
ld: fatal: Symbol referencing errors. No output written to fdpassing
collect2: ld returned 1 exit status
========================================================================
Machinetype: Sun Ultra Enterprise 450/400 (4 UltraSPARC-II CPUs, 400 MHz); Solaris 7
Remote gcc version: 2.95.3
Configure environment: CC=gcc CFLAGS=-I/usr/local/include CXX=g++ CXXFLAGS=-I/usr/local/include LDFLAGS="-R/usr/local/lib -L/usr/local/lib"
gcc -I/usr/local/include -Wall -Wcast-align -Wshadow -Wstrict-prototypes -R/usr/local/lib -L/usr/local/lib -o fdpassing fdpassing.o ../src/libassuan.a
../src/libassuan.a(assuan-pipe-connect.o): In function `socketpair_connect':
assuan-pipe-connect.o(.text+0xc10): undefined reference to `__xnet_socketpair'
../src/libassuan.a(assuan-uds.o): In function `uds_reader':
assuan-uds.o(.text+0x168): undefined reference to `CMSG_SPACE'
assuan-uds.o(.text+0x2c8): undefined reference to `CMSG_LEN'
../src/libassuan.a(assuan-uds.o): In function `uds_sendfd':
assuan-uds.o(.text+0x568): undefined reference to `CMSG_SPACE'
assuan-uds.o(.text+0x694): undefined reference to `CMSG_LEN'
../src/libassuan.a(assuan-io.o): In function `_assuan_simple_sendmsg':
assuan-io.o(.text+0x3f8): undefined reference to `__xnet_sendmsg'
../src/libassuan.a(assuan-io.o): In function `_assuan_simple_recvmsg':
assuan-io.o(.text+0x5a8): undefined reference to `__xnet_recvmsg'
../src/libassuan.a(assuan-socket.o): In function `_assuan_sock_new':
assuan-socket.o(.text+0x10c): undefined reference to `__xnet_socket'
../src/libassuan.a(assuan-socket.o): In function `_assuan_sock_connect':
assuan-socket.o(.text+0x144): undefined reference to `__xnet_connect'
../src/libassuan.a(assuan-socket.o): In function `_assuan_sock_bind':
assuan-socket.o(.text+0x17c): undefined reference to `__xnet_bind'
collect2: ld returned 1 exit status
make[3]: *** [fdpassing] Error 1
========================================================================
Machinetype: Intel Pentium 4 (1800 MHz); Solaris 10 x86
Remote c99 version: cc: Sun C 5.8 Patch 121016-02 2006/03/31
Configure environment: CC=/opt/SUNWspro/bin/c99 CFLAGS="-I/usr/local/include" CXX=/opt/SUNWspro/bin/CC CXXFLAGS="-I/usr/local/include" LDFLAGS="-R/usr/local/lib -L/usr/local/lib"
checking for socklen_t equivalent... configure: error: Cannot find a type to use in place of socklen_t
Command exited with non-zero status 1
========================================================================
Machinetype: Intel Pentium 4 (1800 MHz); Solaris 10 x86
Remote gcc version: gcc (GCC) 3.3
Configure environment: CC=gcc CFLAGS=-I/usr/local/include CXX=g++ CXXFLAGS=-I/usr/local/include LDFLAGS="-R/usr/local/lib -L/usr/local/lib"
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT fdpassing.o -MD -MP -MF ".deps/fdpassing.Tpo" -c -o fdpassing.o fdpassing.c; \
then mv -f ".deps/fdpassing.Tpo" ".deps/fdpassing.Po"; else rm -f ".deps/fdpassing.Tpo"; exit 1; fi
gcc -I/usr/local/include -Wall -Wcast-align -Wshadow -Wstrict-prototypes -R/usr/local/lib -L/usr/local/lib -o fdpassing fdpassing.o ../src/libassuan.a
Undefined first referenced
symbol in file
__xnet_connect ../src/libassuan.a(assuan-socket.o)
__xnet_socket ../src/libassuan.a(assuan-socket.o)
__xnet_socketpair ../src/libassuan.a(assuan-pipe-connect.o)
__xnet_bind ../src/libassuan.a(assuan-socket.o)
__xnet_recvmsg ../src/libassuan.a(assuan-io.o)
__xnet_sendmsg ../src/libassuan.a(assuan-io.o)
ld: fatal: Symbol referencing errors. No output written to fdpassing
collect2: ld returned 1 exit status
make[3]: *** [fdpassing] Error 1
========================================================================
Machinetype: Sun Ultra Enterprise 2900 (4 CPUs, 1050 MHz UltraSPARC-IV, 16GB); Solaris 10
Remote gcc version: gcc (GCC) 3.3.6
Configure environment: CC=gcc CFLAGS=-I/usr/local/include CXX=g++ CXXFLAGS=-I/usr/local/include LDFLAGS="-R/usr/local/lib -L/usr/local/lib"
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT fdpassing.o -MD -MP -MF ".deps/fdpassing.Tpo" -c -o fdpassing.o fdpassing.c; \
then mv -f ".deps/fdpassing.Tpo" ".deps/fdpassing.Po"; else rm -f ".deps/fdpassing.Tpo"; exit 1; fi
gcc -I/usr/local/include -Wall -Wcast-align -Wshadow -Wstrict-prototypes -R/usr/local/lib -L/usr/local/lib -o fdpassing fdpassing.o ../src/libassuan.a
Undefined first referenced
symbol in file
__xnet_connect ../src/libassuan.a(assuan-socket.o)
__xnet_socket ../src/libassuan.a(assuan-socket.o)
__xnet_socketpair ../src/libassuan.a(assuan-pipe-connect.o)
__xnet_bind ../src/libassuan.a(assuan-socket.o)
__xnet_recvmsg ../src/libassuan.a(assuan-io.o)
__xnet_sendmsg ../src/libassuan.a(assuan-io.o)
ld: fatal: Symbol referencing errors. No output written to fdpassing
collect2: ld returned 1 exit status
========================================================================
Machinetype: Sun Ultra Enterprise 5500 (4 CPUs, 400 MHz UltraSPARC-II); Solaris 8
Remote gcc version: gcc (GCC) 3.3
Configure environment: CC=gcc CFLAGS=-I/usr/local/include CXX=g++ CXXFLAGS=-I/usr/local/include LDFLAGS="-R/usr/local/lib -L/usr/local/lib"
gcc -I/usr/local/include -Wall -Wcast-align -Wshadow -Wstrict-prototypes -R/usr/local/lib -L/usr/local/lib -o fdpassing fdpassing.o ../src/libassuan.a
Undefined first referenced
symbol in file
__xnet_connect ../src/libassuan.a(assuan-socket.o)
CMSG_LEN ../src/libassuan.a(assuan-uds.o)
__xnet_socket ../src/libassuan.a(assuan-socket.o)
__xnet_socketpair ../src/libassuan.a(assuan-pipe-connect.o)
__xnet_bind ../src/libassuan.a(assuan-socket.o)
CMSG_SPACE ../src/libassuan.a(assuan-uds.o)
__xnet_recvmsg ../src/libassuan.a(assuan-io.o)
__xnet_sendmsg ../src/libassuan.a(assuan-io.o)
ld: fatal: Symbol referencing errors. No output written to fdpassing
-------------------------------------------------------------------------------
- Nelson H. F. Beebe Tel: +1 801 581 5254 -
- University of Utah FAX: +1 801 581 4148 -
- Department of Mathematics, 110 LCB Internet e-mail: beebe at math.utah.edu -
- 155 S 1400 E RM 233 beebe at acm.org beebe at computer.org -
- Salt Lake City, UT 84112-0090, USA URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------
More information about the Gnupg-devel
mailing list