HP-UX 10.20 g10_log_fatal et al unresolved references
bob at proulx.com
Thu Jun 20 07:53:01 CEST 2002
gnupg-1.0.7 on HP-UX 10.20 fails to build due to unresolved symbols
for g10_log_fatal and g10_log_error when trying to build rndunix,
tiger, etc. in ./cipher. Those exist in ./util/libutil.a which is not
included. How does this work on GNU/Linux? I don't know.
On Debian GNU/Linux 'unstable' today's bits:
tar xzvf gnupg-1.0.7.tar.gz
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../intl -g \
-O2 -Wall -DIS_MODULE -shared -fPIC -v -c ./rndunix.c
That last just to create a .o file so I can set up the question. Then
do the following.
gcc -g -shared -o rndunix ./rndunix.o
That works and creates rndunix. Where did g10_log_fatal get linked
from? I don't know.
gcc -g -o rndunix ./rndunix.o
That fails with these messages.
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x18): undefined reference to `main'
./rndunix.o: In function `start_gatherer':
./rndunix.c:652: undefined reference to `g10_log_info'
./rndunix.c:687: undefined reference to `g10_log_error'
./rndunix.o: In function `gather_random':
./rndunix.c:786: undefined reference to `g10_log_bug0'
./rndunix.c:810: undefined reference to `g10_log_error'
collect2: ld returned 1 exit status
Which leaves me very confused. How does this work on GNU/Linux? It
does not look like it *should* work and therefore I can't debug this
further on HP-UX.
All else on HP-UX 10.20 build went smoothly with no trouble. The only
special thing I needed to do was to add --disable-asm since the
included assembly language routines were giving suspicious warnings.
And for me correct functionality is more important that speed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 196 bytes
Desc: not available
Url : /pipermail/attachments/20020620/57ade70a/attachment.bin
More information about the Gnupg-devel