HP-UX 10.20 g10_log_fatal et al unresolved references

Werner Koch wk at gnupg.org
Thu Jun 20 11:07:02 CEST 2002


On Wed, 19 Jun 2002 22:53:12 -0600, Bob Proulx said:

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

>   gcc -g -shared -o rndunix ./rndunix.o

The -shared allows for unresolved symbols under gcc.  From configure:

     hpux*)
	# if using the vendor (ANSI) compiler, arrange to have `-b' passed
	# to the linker.  If using gcc, it supports `-shared' to do the same.
        if test -n "$GCC" ; then
           DYNLINK_MOD_CFLAGS="-shared $CFLAGS_PIC"
        else
           DYNLINK_MOD_CFLAGS='-Wl,-b'
        fi
        ;;

I'd suggest to do a

./configure --enabale-static-rnd=unix

so that it gets linked statically (or better use egd).  Ignore the
errors when building the extension modules.

> 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

I'd suggest that you try without - it used to work on HPUX and it is
really faster.


Salam-Shalom,

   Werner





More information about the Gnupg-devel mailing list