Re: gh2root compilation

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Feb 25 2000 - 08:16:10 MET


Hi Steve,
These missing references are called by libpacklib.
Add the following libs in your link sequence
   -lnsl -lsocket -lgen

Rene Brun

Steve Udriot wrote:
> 
> Hello,
> 
> I am trying to compile gh2root with the following command and as You can
> see no output is written. What do I do wrong ?
> 
> Steve
> 
> cmsc_sudriot[315]> f77 -g gh2root.f -o gh2root -L/cern/pro/lib -lpacklib
> gh2root.f:
>  MAIN gh2root:
>         convert:
> "gh2root.f", line 83: Warning: incompatible lengths for common block
> "pawc"
>         getname:
>         print1:
>         print2:
>         print3:
>         print4:
>         print5:
>         g2rin:
> "gh2root.f", line 83: Warning: incompatible lengths for common block
> "pawc"
>         g2fin:
> "gh2root.f", line 83: Warning: incompatible lengths for common block
> "pawc"
> Undefined                       first referenced
>  symbol                             in file
> socket                              /cern/pro/lib/libpacklib.a(stream.o)
> getpeername                         /cern/pro/lib/libpacklib.a(open.o)
> recv                                /cern/pro/lib/libpacklib.a(read.o)
> gethostbyname                       /cern/pro/lib/libpacklib.a(stream.o)
> send                                /cern/pro/lib/libpacklib.a(socket.o)
> setsockopt                          /cern/pro/lib/libpacklib.a(open.o)
> getservbyname
> /cern/pro/lib/libpacklib.a(connect.o)
> gethostbyaddr                       /cern/pro/lib/libpacklib.a(open.o)
> getsockopt                          /cern/pro/lib/libpacklib.a(stream.o)
> inet_netof                          /cern/pro/lib/libpacklib.a(remote.o)
> inet_addr                           /cern/pro/lib/libpacklib.a(stream.o)
> yp_all
> /cern/pro/lib/libpacklib.a(ypgetacctent.o)
> inet_ntoa                           /cern/pro/lib/libpacklib.a(open.o)
> getsockname
> /cern/pro/lib/libpacklib.a(getifnam.o)
> yp_match
> /cern/pro/lib/libpacklib.a(ypgetacctent.o)
> yp_get_default_domain
> /cern/pro/lib/libpacklib.a(ypgetacctent.o)
> connect                             /cern/pro/lib/libpacklib.a(stream.o)
> ld: fatal: Symbol referencing errors. No output written to gh2root
> 
>   ------------------------------------------------------------------------
> 
>   Steve Udriot <Steve.Udriot@CERN.ch>
>   Ph. D. Student
>   ETH Zurich
>   High Energy Physics
> 
>   Steve Udriot
>   Ph. D. Student                         <Steve.Udriot@CERN.ch>
>   ETH Zurich
>   High Energy Physics
>   CERN Division EP;CH-1211 Geneve 23;;;  Cellular: +41-79-276.43.47
>                                          Work: +41-22-767.17.71
>                                          Netscape Conference Address
>   Additional Information:
>   Last Name     Udriot
>   First Name    Steve
>   Version       2.1



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:19 MET