Previous Thread
Next Thread
Print Thread
Help with Solaris 5.8 installation
#627 12/01/03 03:49 PM
Joined: Nov 2003
Posts: 2
blk Offline OP
Forum Member
OP Offline
Forum Member
Joined: Nov 2003
Posts: 2
Hello,

I am trying to install CHARMM on a Sun Ultra 80 running
Solaris 5.8 using the GNU gcc version 3.3.2 compiler.

After removing the 'malign-double' switch from all
compilation commands, the install script runs until the
step where it actually builds the charmm.exe file.
It complains that it cannot recognize the calls to
gethostbyname in the machdep.a file. These calls appear
in the source/machdep/cstuff.c and source/machdep/socket.c .

Is this a problem with my compiler?

Any help greatly appreciated.

- Ben


g77 -O3 -ffast-math -funroll-loops -fugly-complex -fno-backslash -fno-globals -W
no-globals -o charmm.exe /home/blk/CHARMM/c30b1/lib/gnu/*.o /home/blk/CHARMM/c30
b1/lib/gnu/adumb.a /home/blk/CHARMM/c30b1/lib/gnu/flucq.a /home/blk/CHARMM/c30b1
/lib/gnu/cadint.a /home/blk/CHARMM/c30b1/lib/gnu/cff.a /home/blk/CHARMM/c30b1/li
b/gnu/correl.a /home/blk/CHARMM/c30b1/lib/gnu/dimb.a /home/blk/CHARMM/c30b1/lib/
gnu/dynamc.a /home/blk/CHARMM/c30b1/lib/gnu/energy.a /home/blk/CHARMM/c30b1/lib/
gnu/gamint.a /home/blk/CHARMM/c30b1/lib/gnu/gukint.a /home/blk/CHARMM/c30b1/lib/
gnu/gener.a /home/blk/CHARMM/c30b1/lib/gnu/image.a /home/blk/CHARMM/c30b1/lib/gn
u/io.a /home/blk/CHARMM/c30b1/lib/gnu/machdep.a /home/blk/CHARMM/c30b1/lib/gnu/m
anip.a /home/blk/CHARMM/c30b1/lib/gnu/mbond.a /home/blk/CHARMM/c30b1/lib/gnu/mc.
a /home/blk/CHARMM/c30b1/lib/gnu/minmiz.a /home/blk/CHARMM/c30b1/lib/gnu/misc.a
/home/blk/CHARMM/c30b1/lib/gnu/mmff.a /home/blk/CHARMM/c30b1/lib/gnu/molvib.a /h
ome/blk/CHARMM/c30b1/lib/gnu/nbonds.a /home/blk/CHARMM/c30b1/lib/gnu/pert.a /hom
e/blk/CHARMM/c30b1/lib/gnu/quantum.a /home/blk/CHARMM/c30b1/lib/gnu/rxncor.a /ho
me/blk/CHARMM/c30b1/lib/gnu/shapes.a /home/blk/CHARMM/c30b1/lib/gnu/solvation.a
/home/blk/CHARMM/c30b1/lib/gnu/util.a /home/blk/CHARMM/c30b1/lib/gnu/vibran.a /h
ome/blk/CHARMM/c30b1/lib/gnu/adumb.a /home/blk/CHARMM/c30b1/lib/gnu/flucq.a /hom
e/blk/CHARMM/c30b1/lib/gnu/cadint.a /home/blk/CHARMM/c30b1/lib/gnu/cff.a /home/b
lk/CHARMM/c30b1/lib/gnu/correl.a /home/blk/CHARMM/c30b1/lib/gnu/dimb.a /home/blk
/CHARMM/c30b1/lib/gnu/dynamc.a /home/blk/CHARMM/c30b1/lib/gnu/energy.a /home/blk
/CHARMM/c30b1/lib/gnu/gamint.a /home/blk/CHARMM/c30b1/lib/gnu/gukint.a /home/blk
/CHARMM/c30b1/lib/gnu/gener.a /home/blk/CHARMM/c30b1/lib/gnu/image.a /home/blk/C
HARMM/c30b1/lib/gnu/io.a /home/blk/CHARMM/c30b1/lib/gnu/machdep.a /home/blk/CHAR
MM/c30b1/lib/gnu/manip.a /home/blk/CHARMM/c30b1/lib/gnu/mbond.a /home/blk/CHARMM
/c30b1/lib/gnu/mc.a /home/blk/CHARMM/c30b1/lib/gnu/minmiz.a /home/blk/CHARMM/c30
b1/lib/gnu/misc.a /home/blk/CHARMM/c30b1/lib/gnu/mmff.a /home/blk/CHARMM/c30b1/l
ib/gnu/molvib.a /home/blk/CHARMM/c30b1/lib/gnu/nbonds.a /home/blk/CHARMM/c30b1/l
ib/gnu/pert.a /home/blk/CHARMM/c30b1/lib/gnu/quantum.a /home/blk/CHARMM/c30b1/li
b/gnu/rxncor.a /home/blk/CHARMM/c30b1/lib/gnu/shapes.a /home/blk/CHARMM/c30b1/li
b/gnu/solvation.a /home/blk/CHARMM/c30b1/lib/gnu/util.a /home/blk/CHARMM/c30b1/l
ib/gnu/vibran.a /home/blk/CHARMM/c30b1/lib/gnu/adumb.a /home/blk/CHARMM/c30b1/li
b/gnu/flucq.a /home/blk/CHARMM/c30b1/lib/gnu/cadint.a /home/blk/CHARMM/c30b1/lib
/gnu/cff.a /home/blk/CHARMM/c30b1/lib/gnu/correl.a /home/blk/CHARMM/c30b1/lib/gn
u/dimb.a /home/blk/CHARMM/c30b1/lib/gnu/dynamc.a /home/blk/CHARMM/c30b1/lib/gnu/
energy.a /home/blk/CHARMM/c30b1/lib/gnu/gamint.a /home/blk/CHARMM/c30b1/lib/gnu/
gukint.a /home/blk/CHARMM/c30b1/lib/gnu/gener.a /home/blk/CHARMM/c30b1/lib/gnu/i
mage.a /home/blk/CHARMM/c30b1/lib/gnu/io.a /home/blk/CHARMM/c30b1/lib/gnu/machde
p.a /home/blk/CHARMM/c30b1/lib/gnu/manip.a /home/blk/CHARMM/c30b1/lib/gnu/mbond.
a /home/blk/CHARMM/c30b1/lib/gnu/mc.a /home/blk/CHARMM/c30b1/lib/gnu/minmiz.a /h
ome/blk/CHARMM/c30b1/lib/gnu/misc.a /home/blk/CHARMM/c30b1/lib/gnu/mmff.a /home/
blk/CHARMM/c30b1/lib/gnu/molvib.a /home/blk/CHARMM/c30b1/lib/gnu/nbonds.a /home/
blk/CHARMM/c30b1/lib/gnu/pert.a /home/blk/CHARMM/c30b1/lib/gnu/quantum.a /home/b
lk/CHARMM/c30b1/lib/gnu/rxncor.a /home/blk/CHARMM/c30b1/lib/gnu/shapes.a /home/b
lk/CHARMM/c30b1/lib/gnu/solvation.a /home/blk/CHARMM/c30b1/lib/gnu/util.a /home/
blk/CHARMM/c30b1/lib/gnu/vibran.a
Undefined first referenced
symbol in file
gethostbyname /home/blk/CHARMM/c30b1/lib/gnu/machdep.a(cst
uff.o)
ld: fatal: Symbol referencing errors. No output written to charmm.exe
collect2: ld returned 1 exit status
make: *** [/home/blk/CHARMM/c30b1/exec/gnu/charmm] Error 1

Re: Help with Solaris 5.8 installation
blk #628 12/01/03 10:03 PM
Joined: Nov 2003
Posts: 2
blk Offline OP
Forum Member
OP Offline
Forum Member
Joined: Nov 2003
Posts: 2
Hello,

I was able to compile CHARMM after all by changing the
value of the FFLAG variable in the Makefile_gnu file. The
gethostbyname function is part of libsocket in Solaris and
gcc could not find the function without specifying the library.

FFLAGS = -L/usr/lib -lsocket -lnsl -O3 -ffast-math -funroll-loops -fugly-complex
-fno-backslash -fno-globals -Wno-globals

I did not have the -L/usr/lib -lsocket -lnsl options specified.

Maybe this will be useful for other Sun users.

- Ben



Moderated by  lennart, rmv 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 5.6.33-0+deb8u1 Page Time: 0.009s Queries: 18 (0.004s) Memory: 0.8969 MB (Peak: 0.9608 MB) Data Comp: Off Server Time: 2020-10-01 20:05:27 UTC
Valid HTML 5 and Valid CSS