libassuan-0.9.0 build problems

Werner Koch wk at
Tue Sep 19 11:54:36 CEST 2006

On Mon, 18 Sep 2006 19:49, Nelson H. F. Beebe said:

> The validation tests failed on several systems because /etc/motd does
> not exist: here is what happens:

Okay, replaced by fdpassing.c

> There are complete failures on these systems:
> 	Apple Mac OS X PowerPC

Folks succeeded building gpgms for MAC OS X. I need to check how they
did it.

> 	DEC OSF/1 Alpha
> 	Sun Solaris 7, 8, 9, 10 SPARC
> 	Sun Solaris 10 IA-32

Hopefully solved now.  May I send you another tarball for testing?

>   An enumerated type is mixed with another type.
>         rc = _assuan_read_line (ctx);
>            ^

I fixed this by defining the assuan error codes and not using an
enum. Also typedefed assuan_error_t to int. 

>> 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 );

Well, that should be socklen_t.

> cc-1162 c89: ERROR File = assuan-pipe-connect.c, Line = 324
>   Too few arguments in function call.
>             unsetenv ("_assuan_connection_fd");

Silly wrong repaclement macro which defiend it to setenv.

> assuan-pipe-connect.c: In function `pipe_connect_unix':
> assuan-pipe-connect.c:324: error: too few arguments to function `_assuan_setenv'

Not sure about this.

> 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

Add a function definition.  However the real cause might be a wrong
detection of putc_unlocked.

> 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))

> /usr/bin/ld: Undefined symbols:
> _pth_fdmode
> _pth_read
> _pth_select
> _pth_waitpid
> _pth_write

Well, we use a the ELF weak pragma to use the pth functions if they
are available (i.e. the binary is linked with pth).  This is not
really portable but the best we can do for now.  When switching to a
shared library we will do one library for each threading model.

> assuan-pipe-connect.c:380: error: 'AF_LOCAL' undeclared (first use in this function)

defed to AF_UNIX

Many thanks,


More information about the Gnupg-devel mailing list