fix and question relating to HP-UX 11.00

Stephan Austermuehle
Wed, 24 Jul 2002 15:00:42 +0200


I just try'd to compile libgcrypt 1.1.8 on HP-UX 11.00 with HP's ANSI
C compiler. This worked well beside one small problem:

	cc -DHAVE_CONFIG_H -I. -I. -I..     -Ae -g -Ae -D_HPUX_SOURCE -c `test -f 'stdmem.c' || echo './'`stdmem.c
	cc: "stdmem.c", line 138: error 1539: Cannot do arithmetic with pointers to objects of unknown size.
	cc: "stdmem.c", line 138: warning 563: Argument #1 is not the correct type.
	make: *** [stdmem.o] Error 1

Changing src/stdmem.c:119 from

	void *b;


	char *b;

makes the compile process work.

Now I have another problem: Loading the shared library fails because
something semms to be missing:

	make  check-TESTS
	make[2]: Entering directory `/SWDEPOT/src/libgcrypt-1.1.8/tests'
	/usr/lib/ Unresolved symbol: _gcry_rndunix_constructor (code)  from /SWDEPOT/src/libgcrypt-1.1.8/tests/../src/.libs/
	/bin/sh: 4003 Abort(coredump)
	FAIL: basic
	PASS: tsexp
	1 of 2 tests failed

Similar problem with the static library. The missing function is
marked external in the shared library:

	$ nm |grep rndunix
	_gcry_rndunix_constructor|          |undef |code   |
	_gcry_rndunix_constructor|    347012|uext  |stub   |
	rndunix_constructor |    355072|extern|entry  |
	rndunix_constructor |    355120|extern|code   |$CODE$

Does anybody know what's going on here?

Thanks for your help,