AMBER: problem of installing carnal on macosx

From: <gtg549i.mail.gatech.edu>
Date: Fri, 20 Oct 2006 14:37:39 -0400

I tried to install the carnal program in amber7 on my Mac OS X Tiger. got the
following error when i type "make install" :

/usr/bin/ld: Undefined symbols:
_fprintf$LDBLStub
_printf$LDBLStub
_scanf$LDBLStub
_fscanf$LDBLStub
_sprintf$LDBLStub
_sscanf$LDBLStub
collect2: ld returned 1 exit status
make: *** [carnal] Error 1

By searching on internet i found that the problem is related to the confliction
of gcc4.0 and g77 on my computer. So i changed it to use gcc3.3.

lawn-128-61-118-177:~/amber7/src/carnal root# gcc -v
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1809)

lawn-128-61-118-177:~/amber7/src/carnal root# g77 -v
Reading specs from /usr/local/lib/gcc/powerpc-apple-darwin7.9.0/3.4.4/specs
Configured with: ../gcc/configure --enable-threads=posix --enable-languages=f77
Thread model: posix
gcc version 3.4.4

But i got the same error message as above. And i found there is suggestion of
append -lSystemStubs to LIBS line, but there is no LIBS line in the Makefile.
Any suggestions for this problem? Thanks in advance.

lawn-128-61-118-177:~/amber7/src/carnal root# more Makefile
# SGI: may need to add -cckr to flags
SHELL=/bin/sh


OBJ= main.o util.o rdprm.o static.o stream.o \
        group.o table.o pointax.o coord.o doit.o \
        geom.o meas.o pdbgen.o modsel.o hbond.o \
        stats.o distrib.o rms.o matrix3.o pucker.o \
        dme.o image.o energy.o cutres.o

SRC= main.c util.c rdprm.c static.c stream.c \
        group.c table.c pointax.c coord.c doit.c \
        geom.c meas.c pdbgen.c modsel.c hbond.c \
        stats.c distrib.c rms.c matrix3.c pucker.c \
        dme.c image.c energy.c cutres.c

all: carnal etc

carnal: $(OBJ)
        ../Compile LOADCC -o carnal $(OBJ) -lm

$(OBJ): head.h prm.h

.c.o:
        ../Compile CC $<

install: carnal
        mv carnal$(SFX) ../../exe/
        cd bshift ; make clean ; make install
        cd etc ; make clean ; make install

bshift:
        cd bshift ; make

etc:
        cd etc ; make

clean:
        ../Clean carnal$(SFX)
        cd bshift ; make clean
        cd etc ; make clean

--
-----------------------------------------------------------------------
The AMBER Mail Reflector
To post, send mail to amber.scripps.edu
To unsubscribe, send "unsubscribe amber" to majordomo.scripps.edu
Received on Sun Oct 22 2006 - 06:07:27 PDT
Custom Search