HP-UX 10.20 g10_log_fatal et al unresolved references
Bob Proulx
bob@proulx.com
Thu Jun 20 06:53:01 2002
--azLHFNyN32YCQGCU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
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
cd ./gnupg-1.0.7.tar.gz
./configure
make
cd ./cipher
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.
Thanks
Bob
--azLHFNyN32YCQGCU
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9EV+40pRcO8E2ULYRAodNAJ0av85dLdyRjZ6KCkhTd0CoTAjqVwCfZXnx
/fVHgkrrqiz4o8tyYxGndTY=
=Mjp9
-----END PGP SIGNATURE-----
--azLHFNyN32YCQGCU--