Compile without libiconv or libintl on Solaris

Scott Lambdin lopaki at gmail.com
Tue May 6 21:50:29 CEST 2008


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
make[2]: *** [gpg] Error 1
make[2]: Leaving directory `/usr/local/src/gnupg-1.4.8/g10'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/gnupg-1.4.8'
make: *** [all] Error 2

I see other folks having this problem but no fix worked for me.


On 5/6/08, Scott Lambdin <lopaki at gmail.com> wrote:
>
> If I do a config like this, and ldd the resulting gpg binary, it still
> needs libiconv and libintl.
>
>
> ./configure --prefix=/place/gnupg-1.4.8 --without-readline
> --disable-gnupg-iconv --without-intl --without-iconv
>
> I've tried a few variations on this.
>
>
>
> I would like to compile statically but that fails to compile.  OMG I just
> ran a static compile to get the error and it worked.  Someone sacrificed a
> cat somewhere or something.  Well, my question mave have become a lot less
> urgent.
>
>
>
>
>
>
>  On 5/6/08, David Shaw <dshaw at jabberwocky.com> wrote:
>>
>> On Tue, May 06, 2008 at 01:26:44PM -0400, Scott Lambdin wrote:
>> > Hello -
>> >
>> > Has anyone been able to compile 1.4.8 or 1.4.9 on Solaris without iconv
>> or
>> > intl?  The only way I have been able to do it is with --enable-minimal
>> and
>> > that disables too much.  Or am I going to have to really learn
>> Makefiles?
>>
>> Can you post what happens when you try?  Where does it fail?
>>
>> David
>>
>> _______________________________________________
>> Gnupg-users mailing list
>> Gnupg-users at gnupg.org
>> http://lists.gnupg.org/mailman/listinfo/gnupg-users
>>
>
>
>
> --
> CILCIL




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


More information about the Gnupg-users mailing list