[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Author Index][Subject Index]

Problem linking programs (fwd)



Hello...

I have recently installed midas (ESO-MIDAS version 96NOVpl2.1 on
Sun/Solaris) at the Joint astronomy Centre in Hawaii and it seems
to be running fine.

However, I have a problem compiling/linking my personal programs.
I know these programs work fine, since I've used them many times
before in Ireland and Germany with earlier versions of MIDAS. 

I compile my fortran programs with the following:

f77 -o {$argv[1]}.exe \
${argv[1]}.for \
$MIDASHOME/96NOV/lib/libmidas.a -lX11 

However, I get the following error messages:

......................................................................
Undefined                       first referenced
 symbol                             in file
socket
/export/data/cdavis/midas_software/96NOV/li/libmidas.a(osx.o)  (symbol
belongs to implicit dependency /usr/lib/libsocket.s.1)
xdrstdio_create
/export/data/cdavis/midas_software/96NOV/li/libmidas.a(iodevr.o)  (symbol
belongs to implicit dependency /usr/lib/libnsl.s.1)
gethostbyname
/export/data/cdavis/midas_software/96NOV/li/libmidas.a(osx.o)  (symbol
belongs to implicit dependency /usr/lib/libnsl.so.1
accept
/export/data/cdavis/midas_software/96NOV/li/libmidas.a(osx.o)  (symbol
belongs to implicit dependency /usr/lib/libsocket.s.1)
bind
/export/data/cdavis/midas_software/96NOV/li/libmidas.a(osx.o)  (symbol
belongs to implicit dependency /usr/lib/libsocket.s.1)
xdr_int
/export/data/cdavis/midas_software/96NOV/li/libmidas.a(iodevr.o)  (symbol
belongs to implicit dependency /usr/lib/libnsl.s.1)
getservbyname
/export/data/cdavis/midas_software/96NOV/li/libmidas.a(osx.o)  (symbol
belongs to implicit dependency /usr/lib/libsocket.s.1)
xdr_bytes
/export/data/cdavis/midas_software/96NOV/li/libmidas.a(iodevr.o)  (symbol
belongs to implicit dependency /usr/lib/libnsl.s.1)
xdr_long
/export/data/cdavis/midas_software/96NOV/li/libmidas.a(iodevr.o)  (symbol
belongs to implicit dependency /usr/lib/libnsl.s.1)
xdr_string
/export/data/cdavis/midas_software/96NOV/lib/libmidas.a(iodevr.o)  (symbol
belongs to implicit dependency /usr/lib/libnsl.so.1)
listen
/export/data/cdavis/midas_software/96NOV/lib/libmidas.a(osx.o)  (symbol
belongs to implicit dependency /usr/lib/libsocket.so.1)
connect
/export/data/cdavis/midas_software/96NOV/lib/libmidas.a(osx.o)  (symbol
belongs to implicit dependency /usr/lib/libsocket.so.1)
ld: fatal: Symbol referencing errors. No output written to cosmics.exe
.........................................................................

I have the following in my .login:

alias inmidas
'/export/data/cdavis/midas_software/96NOV/system/unix/inmidas'
alias gomidas=/export/data/cdavis/midas_software/96NOV/system/unix/gomidas
alias
helpmidas=/export/data/cdavis/midas_software/96NOV/system/unix/helpmidas
 
setenv LD_LIBRARY_PATH
/export/data/cdavis/midas_software/96NOV/lib:${LD_LIBRARY
_PATH}:/usr/lib
setenv MIDASHOME  /export/data/cdavis/midas_software
setenv MID_WORK  /export/data/cdavis/midas_software/setup
 

Any help you could give would be greatly appreciated.

Kind Regards,
Chris Davis


**************************************************************
 Chris Davis			       Joint Astronomy Centre
 Tel: (808) 961 3756                   660 N. A'Ohoku Place
 Fax: (808) 961 6516                   University Park,
 email: cdavis@jach.hawaii.edu         Hilo, Hawaii 96720
 http://www.jach.hawaii.edu/~cdavis/
**************************************************************