Compile without libiconv or libintl on Solaris
David Shaw
dshaw at jabberwocky.com
Tue May 6 22:08:55 CEST 2008
On Tue, May 06, 2008 at 03:50:29PM -0400, Scott Lambdin wrote:
> No, I had that pesky --enable-minimal in the configure command. It can
> compile statically with that. here is the error I get otherwise:
>
> /usr/local/bin/gcc -g -O2 -Wall --static -o gpg gpg.o build-packet.o
> compress.o compress-bz2.o free-packet.o getkey.o keydb.o keyring.o seskey.o
> kbnode.o mainproc.o armor.o mdfilter.o textfilter.o progress.o misc.o
> openfile.o keyid.o parse-packet.o status.o plaintext.o sig-check.o keylist.o
> signal.o pkclist.o skclist.o pubkey-enc.o passphrase.o seckey-cert.o
> encr-data.o cipher.o encode.o sign.o verify.o revoke.o decrypt.o keyedit.o
> dearmor.o import.o export.o trustdb.o tdbdump.o tdbio.o delkey.o keygen.o
> pipemode.o helptext.o keyserver.o photoid.o exec.o ../cipher/libcipher.a
> ../mpi/libmpi.a ../util/libutil.a ../intl/libintl.a ../zlib/libzlib.a
> -lbz2 -lsocket
> Undefined first referenced
> symbol in file
> endnetconfig /usr/lib/libsocket.a(_soutil.o)
> setnetconfig /usr/lib/libsocket.a(_soutil.o)
> getnetconfig /usr/lib/libsocket.a(_soutil.o)
> ld: fatal: Symbol referencing errors. No output written to gpg
> collect2: ld returned 1 exit status
Sun doesn't really approve of static linking on Solaris:
http://www.sun.com/bigadmin/content/misc/solaris2faq.html#q6.24
That said, what happens if you do this:
NETLIBS=-lnsl ./configure
David
More information about the Gnupg-users
mailing list