compilation error on Intel Solaris 8

Anant Tamgole anant_tamgole@yahoo.com
Wed Oct 16 17:31:02 2002


--0-1761737067-1034781893=:1440
Content-Type: text/plain; charset=us-ascii


Thanks Renato,
It solved problem.
regards
anant
 
 
 Renato Martini <rmartini@cipsga.org.br> wrote:On Tue, 15 Oct 2002 07:46:02 -0700 (PDT)
Anant Tamgole 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)

> ATTACHMENT part 2 application/pgp-signature 


---------------------------------
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos, & more
faith.yahoo.com
--0-1761737067-1034781893=:1440
Content-Type: text/html; charset=us-ascii

<P>Thanks Renato,
<P>It solved problem.
<P>regards
<P>anant
<P>&nbsp;
<P>&nbsp;
<P>&nbsp;<B><I>Renato Martini &lt;rmartini@cipsga.org.br&gt;</I></B> wrote:
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">On Tue, 15 Oct 2002 07:46:02 -0700 (PDT)<BR>Anant Tamgole <ANANT_TAMGOLE@YAHOO.COM>wrote:<BR><BR>Hi Anant!<BR><BR>I found this fatal errorn, and I reported it to the gpg Mailing List (Sep 24 03:08:01 2002),<BR>see: http://lists.gnupg.org/pipermail/gnupg-users/2002-September/015132.html.<BR><BR>I paste here the message:<BR><BR>-------------<BR>I try to compiled just now the gpg 1.2.0 for ix86 Solaris 8.<BR>The compilation was aborted in the "tools" directory, and<BR>so stoping abnormaly the process...<BR><BR>gcc -g -O2 -Wall -o bftest bftest.o ../cipher/libcipher.a ../mpi/libmpi.a ../util/libutil.a ../intl/libintl.a -ldl -lz<BR>Undefined first referenced<BR>symbol in file<BR>socket ../cipher/libcipher.a(rndegd.o)<BR>connect ../cipher/libcipher.a(rndegd.o)<BR>ld: fatal: Symbol referencing errors. No output written to bftest<BR>collect2: ld returned 1 exit status<BR>make: *** [bftest] Error 1<BR><BR><BR>This fatal error in the SunOS is very ordinary, when the compilations don't <BR>find the libnets '-lsocket' and '-lnsl' (the sockets library functions).<BR>I fix the problem to compile the bftest: the Makefile omits this flags, an I put the flags<BR>- -lsocket and -lnsl in the "tools/Makefile" line 175. <BR><BR>And so:<BR><BR>gcc -g -O2 -Wall -o bftest -lsocket -lnsl bftest.o ../cipher/libcipher.a ../mpi/libmpi.a ../util/libutil.a ../intl/libintl.a -ldl -lz (...)<BR><BR>No problems!<BR><BR><BR>May be, the source code could be fixed...<BR><BR>--------------------<BR><BR><BR>Okay?<BR>The gpg 1.2.0 for Solaris workd fine! No problems!<BR><BR>best regards<BR><BR><BR><BR>----------------------<BR>&gt; I am getting following error while compiling gnupg-1.2.0 on Solaris 8 ( Intel )<BR>&gt; <BR>&gt; Making all in tools<BR>&gt; make[2]: Entering directory `/home/gnupg-1.2.0/tools'<BR>&gt; gcc -g -O2 -Wall -o bftest bftest.o ../cipher/libcipher.a ../mpi/libmpi.a ..<BR>&gt; /util/libutil.a ../intl/libintl.a -ldl -lz<BR>&gt; Undefined first referenced<BR>&gt; symbol in file<BR>&gt; socket ../cipher/libcipher.a(rndegd.o)<BR>&gt; connect ../cipher/libcipher.a(rndegd.o)<BR>&gt; ld: fatal: Symbol referencing errors. No output written to bftest<BR>&gt; collect2: ld returned 1 exit status<BR>&gt; make[2]: *** [bftest] Error 1<BR>&gt; make[2]: Leaving directory `/home/gnupg-1.2.0/tools'<BR>&gt; make[1]: *** [all-recursive] Error 1<BR>&gt; make[1]: Leaving directory `/home/gnupg-1.2.0'<BR>&gt; make: *** [all] Error 2<BR>&gt; #<BR>&gt; <BR>&gt; <BR>&gt; How to remove this error.<BR>&gt; <BR>&gt; <BR>&gt; <BR><BR><BR><BR><BR>----------<BR><BR>__|_ _| _ \ __| __| \ | Renato Martini ::: Diretor Administrativo<BR>( | __/\__ \ (_ | _ \ | http://www.cipsga.org.br<BR>\___|___|_| ____/\___|_/ _\ | http://gnupg.unixsecurity.com.br<BR>-----------------------------------------------------------------------<BR>http://bancada.softwarelivre.org.br: visite a bancada do software livre<BR>-----------------------------------------------------------------------<BR>"O Fantasia, che dei tempi e delle distanze fai il tuo giuoco audace!"<BR>(Gabriele d'Annunzio)<BR><BR>&gt; ATTACHMENT part 2 application/pgp-signature </BLOCKQUOTE><p><br><hr size=1>Do you Yahoo!?<br>
<a href="http://faith.yahoo.com">Faith Hill</a> - Exclusive Performances, Videos, & more<br>
<a href="http://faith.yahoo.com">faith.yahoo.com</a>
--0-1761737067-1034781893=:1440--