1.0.4+patch's rndlinux fails to link on AIX 4.3.3 due to g10_log_*
Lars Hecking
lhecking@nmrc.ie
Thu, 18 Jan 2001 11:28:04 +0000
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../intl -g -O2\
> -mcpu=powerpc -Wall -DIS_MODULE -shared -o rndlinux ./rndlinux.c
> ./rndlinux.c: In function `gather_random':
> ./rndlinux.c:131: warning: implicit declaration of function `bzero'
> ./rndlinux.c:144: warning: int format, long int arg (arg 3)
> ld: 0711-317 ERROR: Undefined symbol: .g10_log_fatal
> ld: 0711-317 ERROR: Undefined symbol: .g10_log_error
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information.
> collect2: ld returned 8 exit status
> make[2]: *** [rndlinux] Error 1
> make[2]: Leaving directory `/usr/local/src/gnupg-1.0.4/cipher'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/src/gnupg-1.0.4'
> make: *** [all-recursive-am] Error 2
>
> Shouldn't a .o compiled from util/logger.c be included on the link line to
> avoid this? Should it even be trying to build rndlinux on AIX?
Hhm, I've seen this before but I don't remember where ...
As a quick fix, adding -L../util -lutil to cipher/Makefile:CFLAGS (!!)
should work. The module creation uses COMPILE only, not LINK, so that
the natural choice LDFLAGS won't work.
--
Archive is at http://lists.gnupg.org - Unsubscribe by sending mail
with a subject of "unsubscribe" to gnupg-users-request@gnupg.org