Compile without libiconv or libintl on Solaris

Scott Lambdin lopaki at gmail.com
Tue May 6 22:29:39 CEST 2008


Thanks but same error.   Yes, I showed that same link to our sysadmin and he
said "do it anyway".

You know, we just run gpg in batch mode on files.  We don't need no stinkin
sockets.  Let's make the sockets go away!


On 5/6/08, David Shaw <dshaw at jabberwocky.com> wrote:
>
> 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
>
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users at gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
>



-- 
CILCIL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20080506/adaa9759/attachment.htm>


More information about the Gnupg-users mailing list