Newsgroups: comp.parallel.pvm
From: nkings@chromium (Nicholas J. Kings)
Reply-To: nkings@bt-sys.bt.co.uk
Subject: Help needed to run Hence on Solaris
Organization: BT, Systems Research
Date: 15 Sep 1994 14:37:38 GMT
Message-ID: <359m7i$nvc@xenon.bt-sys.bt.co.uk>

With much persuation, I've managed to build HeNCE for the SUN4SOL4 archirecture.

I can't get the linker to pick up the -ldl library, when building the 
HeNCE programs. 

I've instrumented arch_get_compile_cmd to printout what is being compiled,

Compile command cc -o mumble -Bstatic -O -DIMA_$(PVM_ARCH) -I$(PVM_ROOT)/include mumble.c cw_mumble.c -L/usr/lib -ldl -L$(PVM_ROOT)/lib/$(PVM_ARCH) -lslave3 -lhence3 -lrb -ldl -lalloc -lpvm3 -ldl -lm -lsocket -lnsl -ldl -ldl

Compile command cc -o foo -Bstatic -O -DIMA_$(PVM_ARCH) -I$(PVM_ROOT)/include foo.c cw_foo.c -L/usr/lib -ldl -L$(PVM_ROOT)/lib/$(PVM_ARCH) -lslave3 -lhence3 -lrb -ldl -lalloc -lpvm3 -ldl -lm -lsocket -lnsl -ldl -ldl

Compile command cc -o bar -Bstatic -O -DIMA_$(PVM_ARCH) -I$(PVM_ROOT)/include bar.c cw_bar.c -L/usr/lib -ldl -L$(PVM_ROOT)/lib/$(PVM_ARCH) -lslave3 -lhence3 -lrb -ldl -lalloc -lpvm3 -ldl -lm -lsocket -lnsl -ldl -ldl

Yes I know it is overkill on the -ldl but it still does not work.

BUT I still get the following error message through the HeNCE tool:
ld: fatal: library -ldl: not found

I'm trying to build on Solaris (SunOS silver 5.3 Generic_101674-01 sun4m sparc)
I'm using /apps/SUNWspro/bin/cc.

I've tried putting -ldl just at the end but I then get undefined references
for dlopen, dlsym, etc.

Any help?
Thanks
Nick

--
Nicholas J. Kings (Nick)                               ```|'''
Information Visualisation                               (o o)
Systems Research, BT Labs                        ---oOO--(~)--OOo---
nkings@bt-sys.bt.co.uk              "Purveyors of fine research to the gentry." 

