compilation error on Intel Solaris 8

Renato Martini rmartini@cipsga.org.br
Tue Oct 15 20:35:01 2002


--=.HTOFUp4_MqDdz9
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Tue, 15 Oct 2002 07:46:02 -0700 (PDT)
Anant Tamgole <anant_tamgole@yahoo.com> wrote:

Hi Anant!

I found this fatal errorn, and I reported it to the gpg Mailing List (Sep 24 03:08:01 2002),
see: http://lists.gnupg.org/pipermail/gnupg-users/2002-September/015132.html.

I paste here the message:

-------------
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...

--------------------


Okay?
The gpg 1.2.0 for Solaris workd fine! No problems!

best regards



----------------------
> I am getting following error while compiling gnupg-1.2.0 on Solaris 8 ( Intel )
> 
> Making all in tools
> make[2]: Entering directory `/home/gnupg-1.2.0/tools'
> 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[2]: *** [bftest] Error 1
> make[2]: Leaving directory `/home/gnupg-1.2.0/tools'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/gnupg-1.2.0'
> make: *** [all] Error 2
> #
> 
> 
> How to remove this error.
> 
>  
> 




----------

  __|_ _| _ \  __|  __|   \    | Renato Martini ::: Diretor Administrativo
 (     |  __/\__ \ (_ |  _ \   | http://www.cipsga.org.br
\___|___|_|  ____/\___|_/  _\  | http://gnupg.unixsecurity.com.br
-----------------------------------------------------------------------
http://bancada.softwarelivre.org.br: visite a bancada do software livre
-----------------------------------------------------------------------
"O Fantasia, che dei tempi e delle distanze fai il tuo giuoco audace!"
                         (Gabriele d'Annunzio)


--=.HTOFUp4_MqDdz9
Content-Type: application/pgp-signature

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

iD8DBQE9rFI4YogE2yD8bPYRAjpYAKC1ADZHsZeHmunhu6X2EaFPm8L5nACeNmfr
Jj1SfYILC/lzxF0BZJHicgE=
=JUK1
-----END PGP SIGNATURE-----

--=.HTOFUp4_MqDdz9--