libassuan-0.9.0 build problems
Nelson H. F. Beebe
beebe at math.utah.edu
Mon Sep 18 19:49:20 CEST 2006
In order to build gnupg-1.9.23, it is necessary to first install four
dependent packages: libassuan, libgpg-error libksba, and pth.
I've had reasonable success with three of them, but libassuan-0.9.0
has build failures, and test failures on several platforms.
The validation tests failed on several systems because /etc/motd does
not exist: here is what happens:
fdpassing[25781.4] DBG: -> OK Pleased to meet you
fdpassing[25780]: failed to open `/etc/motd': No such file or directory
fdpassing[25781.4] DBG: <- BYE
fdpassing[25781.4] DBG: -> OK closing connection
FAIL: fdpassing
======================================
1 of 1 tests failed
Please report to gnupg-devel at gnupg.org
======================================
There are complete failures on these systems:
Apple Mac OS X PowerPC
DEC OSF/1 Alpha
SGI IRIX 6.5 MIPS
Sun Solaris 7, 8, 9, 10 SPARC
Sun Solaris 10 IA-32
Below is a summary of the build failures. I include only one instance
of each problem type.
============================================================
Machinetype: SGI Origin/200-4 (180 MHz) (4 R10000 CPUs); IRIX 6.5
Remote c89 version: MIPSpro Compilers: Version 7.3.1.3m
Configure environment: CC=c89 CXX=CC CFLAGS=-I/usr/local/include CXXFLAGS=-I/usr/local/include LDFLAGS=-Wl,-rpath,/usr/local/libn32
c89 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I/usr/local/include -c assuan-client.c
cc-1185 c89: WARNING File = assuan-client.c, Line = 47
An enumerated type is mixed with another type.
rc = _assuan_read_line (ctx);
^
cc-1185 c89: WARNING File = assuan-client.c, Line = 107
An enumerated type is mixed with another type.
rc = _assuan_error (ASSUAN_Invalid_Response);
^
cc-1185 c89: WARNING File = assuan-client.c, Line = 148
An enumerated type is mixed with another type.
return rc;
^
cc-1185 c89: WARNING File = assuan-client.c, Line = 151
An enumerated type is mixed with another type.
return 0; /* Don't expect a response for a comment line. */
^
cc-1185 c89: WARNING File = assuan-client.c, Line = 156
An enumerated type is mixed with another type.
return rc; /* error reading from server */
^
cc-1185 c89: WARNING File = assuan-client.c, Line = 229
An enumerated type is mixed with another type.
return rc;
^
source='assuan-pipe-server.c' object='assuan-pipe-server.o' libtool=no \
c89 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I/usr/local/include -c assuan-socket-server.c
cc-1164 c89: WARNING File = assuan-socket-server.c, Line = 90
Argument of type "size_t *" is incompatible with parameter of type "int *".
fd = accept (ctx->listen_fd, (struct sockaddr*)&clnt_addr, &len );
^
source='assuan-pipe-connect.c' object='assuan-pipe-connect.o' libtool=no \
DEPDIR=.deps depmode=sgi /bin/sh ../depcomp \
c89 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I/usr/local/include -c assuan-pipe-connect.c
cc-1185 c89: WARNING File = assuan-pipe-connect.c, Line = 159
An enumerated type is mixed with another type.
err = _assuan_error (ASSUAN_Connect_Failed);
^
cc-1185 c89: WARNING File = assuan-pipe-connect.c, Line = 188
An enumerated type is mixed with another type.
return _assuan_error (ASSUAN_Invalid_Value);
^
cc-1185 c89: WARNING File = assuan-pipe-connect.c, Line = 195
An enumerated type is mixed with another type.
return _assuan_error (ASSUAN_General_Error);
^
cc-1185 c89: WARNING File = assuan-pipe-connect.c, Line = 201
An enumerated type is mixed with another type.
return _assuan_error (ASSUAN_General_Error);
^
cc-1185 c89: WARNING File = assuan-pipe-connect.c, Line = 204
An enumerated type is mixed with another type.
err = _assuan_new_context (ctx);
^
cc-1185 c89: WARNING File = assuan-pipe-connect.c, Line = 229
An enumerated type is mixed with another type.
return _assuan_error (ASSUAN_General_Error);
^
cc-1162 c89: ERROR File = assuan-pipe-connect.c, Line = 324
Too few arguments in function call.
unsetenv ("_assuan_connection_fd");
^
cc-1185 c89: WARNING File = assuan-pipe-connect.c, Line = 374
An enumerated type is mixed with another type.
return _assuan_error (ASSUAN_Invalid_Value);
^
cc-1185 c89: WARNING File = assuan-pipe-connect.c, Line = 383
An enumerated type is mixed with another type.
return _assuan_error (ASSUAN_General_Error);
^
cc-1185 c89: WARNING File = assuan-pipe-connect.c, Line = 386
An enumerated type is mixed with another type.
err = _assuan_new_context (ctx);
^
cc-1185 c89: WARNING File = assuan-pipe-connect.c, Line = 407
An enumerated type is mixed with another type.
return _assuan_error (ASSUAN_General_Error);
^
cc-1185 c89: WARNING File = assuan-pipe-connect.c, Line = 505
An enumerated type is mixed with another type.
return 0;
^
1 error detected in the compilation of "assuan-pipe-connect.c".
============================================================
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-pipe-connect.o -MD -MP -MF ".deps/assuan-pipe-connect.Tpo" -c -o assuan-pipe-connect.o assuan-pipe-connect.c; \
then mv -f ".deps/assuan-pipe-connect.Tpo" ".deps/assuan-pipe-connect.Po"; else rm -f ".deps/assuan-pipe-connect.Tpo"; exit 1; fi
assuan-pipe-connect.c: In function `pipe_connect_unix':
assuan-pipe-connect.c:324: error: too few arguments to function `_assuan_setenv'
make[3]: *** [assuan-pipe-connect.o] Error 1
============================================================
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 putc_unlocked.o -MD -MP -MF ".deps/putc_unlocked.Tpo" -c -o putc_unlocked.o putc_unlocked.c; \
then mv -f ".deps/putc_unlocked.Tpo" ".deps/putc_unlocked.Po"; else rm -f ".deps/putc_unlocked.Tpo"; exit 1; fi
putc_unlocked.c:30: 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
make[3]: *** [putc_unlocked.o] Error 1
============================================================
Machinetype: Apple Power Mac G4 (2 1420 MHz PowerPC G4 (3.3) CPUs, 2GB RAM); Darwin 7.9.0 (Mac OS X Server 10.3.9 (7W98))
Remote gcc version: gcc (GCC) 3.4.3
Configure environment: CC=gcc CXX=g++ LIBS=-lcc_dynamic
gcc -g -O2 -Wall -Wcast-align -Wshadow -Wstrict-prototypes -o fdpassing fdpassing.o ../src/libassuan.a -lcc_dynamic
/usr/bin/ld: Undefined symbols:
_pth_fdmode
_pth_read
_pth_select
_pth_waitpid
_pth_write
collect2: ld returned 1 exit status
This failure happened on all build attempts on Apple Mac OS X. The
-lpth library is not being specified, although the library is
certainly installed:
% ls -ltr /usr/local/lib/libpth*
-rwxr-xr-x 1 beebe 10 107272 Sep 23 2004 /usr/local/lib/libpth.20.0.22.dylib
-rwxr-xr-x 1 beebe 10 803 Sep 18 08:42 /usr/local/lib/libpth.la
lrwxr-xr-x 1 root 10 20 Sep 18 08:42 /usr/local/lib/libpth.dylib -> libpth.20.0.27.dylib
lrwxr-xr-x 1 root 10 20 Sep 18 08:42 /usr/local/lib/libpth.20.dylib -> libpth.20.0.27.dylib
-rwxr-xr-x 1 beebe 10 109560 Sep 18 08:42 /usr/local/lib/libpth.20.0.27.dylib
-rw-r--r-- 1 beebe 10 115920 Sep 18 08:42 /usr/local/lib/libpth.a
============================================================
Machinetype: DEC Alpha 4100-5/466 (4 21164 EV5 CPUs, 466 MHz, 2GB RAM); OSF/1 4.0F
Remote cc version: DEC C V5.9-005 on Digital UNIX V4.0 (Rev. 1229)
Configure environment: CC=cc CFLAGS="-ieee -I/usr/local/include" CXX=cxx CXXFLAGS="-ieee -I/usr/local/include" LDFLAGS="-Wl,-rpath,/usr/local/lib -Wl,-oldstyle_liblookup -L/usr/local/lib" LIBS="-lsnprintf" FC=f77 F77=f77
cc -std1 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -ieee -I/usr/local/include -c assuan-socket-server.c
cc: Info: assuan.h, line 283: Trailing comma found in enumerator list. (trailcomma)
} assuan_error_t;
^
cc: Warning: assuan-socket-server.c, line 90: In this statement, the referenced type of the pointer value "&len" is "unsigned long", which is not compatible with "int". (ptrmismatch)
fd = accept (ctx->listen_fd, (struct sockaddr*)&clnt_addr, &len );
-------------------------------------------------------------^
source='assuan-pipe-connect.c' object='assuan-pipe-connect.o' libtool=no \
DEPDIR=.deps depmode=tru64 /bin/ksh ../depcomp \
cc -std1 -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -ieee -I/usr/local/include -c assuan-pipe-connect.c
cc: Info: assuan.h, line 283: Trailing comma found in enumerator list. (trailcomma)
} assuan_error_t;
^
cc: Error: assuan-pipe-connect.c, line 380: In this statement, "AF_LOCAL" is not declared. (undeclared)
if ( socketpair (AF_LOCAL, SOCK_STREAM, 0, fds) )
-------------------^
============================================================
Machinetype: Sun Ultra Enterprise 2900 (4 CPUs, 1050 MHz UltraSPARC-IV, 16GB); Solaris 10
Remote gcc4 version: gcc4 (GCC) 4.0.2
Configure environment: CC=/usr/local/test/bin/gcc CFLAGS=-I/usr/local/include CXX=/usr/local/test/bin/g++ CXXFLAGS=-I/usr/local/include LDFLAGS="-R/usr/local/lib -L/usr/local/lib"
if /usr/local/test/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I/usr/local/include -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT assuan-socket-server.o -MD -MP -MF ".deps/assuan-socket-server.Tpo" -c -o assuan-socket-server.o assuan-socket-server.c; \
then mv -f ".deps/assuan-socket-server.Tpo" ".deps/assuan-socket-server.Po"; else rm -f ".deps/assuan-socket-server.Tpo"; exit 1; fi
if /usr/local/test/bin/gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I/usr/local/include -Wall -Wcast-align -Wshadow -Wstrict-prototypes -MT assuan-pipe-connect.o -MD -MP -MF ".deps/assuan-pipe-connect.Tpo" -c -o assuan-pipe-connect.o assuan-pipe-connect.c; \
then mv -f ".deps/assuan-pipe-connect.Tpo" ".deps/assuan-pipe-connect.Po"; else rm -f ".deps/assuan-pipe-connect.Tpo"; exit 1; fi
assuan-pipe-connect.c: In function 'socketpair_connect':
assuan-pipe-connect.c:380: error: 'AF_LOCAL' undeclared (first use in this function)
assuan-pipe-connect.c:380: error: (Each undeclared identifier is reported only once
assuan-pipe-connect.c:380: error: for each function it appears in.)
make[3]: *** [assuan-pipe-connect.o] Error 1
make[3]: Leaving directory `/local/build/gcc4/libassuan-0.9.0/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/local/build/gcc4/libassuan-0.9.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/local/build/gcc4/libassuan-0.9.0'
This same error happens for all tested compilers on Solaris 7, 8, 9,
and 10 (SPARC), and 10 (IA-32), completing preventing builds of
libassuan on those systems.
-------------------------------------------------------------------------------
- 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