gpg 1.2.0. and Solaris compilation

Renato Martini rmartini@cipsga.org.br
Tue Sep 24 03:08:01 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi All:

I try to compiled just now the gpg 1.2.0 for ix86 Solaris 8.
The compilation was aborted in the "tools" directory, and
so stoping abnormaly the process...

gcc  -g -O2 -Wall   -o bftest  bftest.o ../cipher/libcipher.a ../mpi/libmpi.a ../util/libutil.a ../intl/libintl.a  -ldl  -lz
Undefined                       first referenced
 symbol                             in file
socket                              ../cipher/libcipher.a(rndegd.o)
connect                             ../cipher/libcipher.a(rndegd.o)
ld: fatal: Symbol referencing errors. No output written to bftest
collect2: ld returned 1 exit status
make: *** [bftest] Error 1


This fatal error in the SunOS is very ordinary, when the compilations don't 
find the libnets '-lsocket' and '-lnsl' (the sockets library functions).
I fix the problem to compile the bftest: the Makefile omits this flags, an I put the flags
- -lsocket and -lnsl in the "tools/Makefile" line 175.  

And so:

gcc  -g -O2 -Wall   -o bftest -lsocket -lnsl bftest.o ../cipher/libcipher.a ../mpi/libmpi.a ../util/libutil.a ../intl/libintl.a  -ldl  -lz (...)

No problems!


May be, the source code could be fixed...


best regards

- ----------

  __|_ _| _ \  __|  __|   \    | Renato Martini ::: Diretor Administrativo
 (     |  __/\__ \ (_ |  _ \   | http://www.cipsga.org.br
\___|___|_|  ____/\___|_/  _\  | http://gnupg.unixsecurity.com.br
- -----------------------------------------------------------------------
          **Please sign or encrypt for Internet privacy**
- -----------------------------------------------------------------------
"O Fantasia, che dei tempi e delle distanze fai il tuo giuoco audace!"
                         (Gabriele d'Annunzio)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE9j7tVYogE2yD8bPYRAkxHAJ9HcU1CfEw5E0v1stAxFD9Z/pO74ACg5yM1
oqaRz90zlNlYDB9P+q+Rfnk=
=HZey
-----END PGP SIGNATURE-----