building gnupg on Solaris

Dimitri PAPADOPOULOS-ORFANOS papadopo at shfj.cea.fr
Thu Aug 1 21:52:02 CEST 2002


Package: gnupg
Version: 1.0.7

Hi,

I'm trying to build gnupg 1.0.7 on Solaris 8 + Forte 6 update 2.
I get some interesting warnings and the build eventually fails:

	$ tar xzf gnupg-1.0.7.tar.gz
	$ cd gnupg-1.0.7
	$ setenv CC cc
	$ ./configure --prefix=/usr/local/gnupg-1.0.7
	[...]
	$ gmake
	[...]
	"rndunix.c", line 898: warning: assignment type mismatch:
	        pointer to void "=" pointer to function(void) returning int
	[...]
	"sha1.c", line 402: warning: assignment type mismatch:
	        pointer to void "=" pointer to function(void) returning void
	[...]
	"rmd160.c", line 629: warning: assignment type mismatch:
	        pointer to void "=" pointer to function(void) returning void
	[...]
	make[3]: Entering directory `/tmp/gnupg-1.0.7/cipher'
	cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../include -I../intl    -O 
-DIS_MODULE -shared -KPIC -o rndlinux ./rndlinux.c
	"./rndlinux.c", line 226: warning: assignment type mismatch:
	        pointer to void "=" pointer to function(void) returning int
	ld: fatal: option -h and building a dynamic executable are incompatible
	ld: fatal: Flags processing errors
	gmake[3]: *** [rndlinux] Error 1
	gmake[3]: Leaving directory `/tmp/gnupg-1.0.7/cipher'
	[...]


The warnings are interesting because a data pointer may not be
the same size as a function pointer on exotic systems.

As for the linking error, what is the Makefile attempting
to build? A shared library / module? In this case it should
be using "-G" instead of "-shared". Using "-G" fixes this
issue for me and the build succeeds.

Regards,
Dimitri





More information about the Gnupg-devel mailing list