IUBio

restFP and saveFP error in phred/phrap installation.

Casey Finnerty caseyfinnerty at earthlink.net
Thu Nov 13 04:14:38 EST 2003


I realize this question is tangential to staden, but I can't find a 
phred/phrap discussion group. I could really use some help installing 
phred and phrap (and Consed). I am a relative Unix newbie who is trying 
to install  phred, phrap and consed on my G4 Powerbook running 10.2.8. 
After decompressing  the tarballs in /usr/local, I cd to the phred 
directory and type ‘make’ as per the installation instructions. The 
result is the following error:

cc -O -DANSI_C  -c utilities.c
cc -O -DANSI_C  -c version.c
cc -O -DANSI_C  -c viewPhred.c
cc -O -DANSI_C  -c writeData.c
cc -O -DANSI_C  -c writePhd.c
cc -O -DANSI_C  -c writeQual.c
cc -O -DANSI_C  -c writeRunInfo.c
cc -O -DANSI_C  -c writeSCF2.c
cc -O -DANSI_C  -c writeSCF3.c
cc -O -DANSI_C  -c writeSeq.c
cc -O -DANSI_C  -o phred autoPhred.o  baseQual.o  callSeq.o  
checkFileStatus.o  checkParam.o  chromat2phred.o  chromatData.o  
compareFiles.o  compressMotif.o  delFile.o  errorMessage.o  
evaluateTrace.o  fft.o  findStartPred.o  findTraceExtrema.o  
fit_capture.o  fit_compress.o  fit_peaks.o  fit_sine.o  fit_sine.supp.o 
  freeChemList.o  freeParam.o  freePhredData.o  freeProcParSet.o  
getOption.o  helpParam.o  initParam.o  loadInternalQualValSet.o  
loadProcParSet.o  loadQualTableABI373_377Prim.o  
loadQualTableABI373_377Term.o  loadQualTableABI3700Prim.o  
loadQualTableABI3700Term.o  loadQualTableABI3100Prim.o  
loadQualTableABI3100Term.o  loadQualTableABMegaBACE1000SV1Prim.o  
loadQualTableABMegaBACE1000SV1Term.o  
loadQualTableABMegaBACE1000SV3Prim.o  
loadQualTableABMegaBACE1000SV3Term.o  loadQualTableBeckmanCEQ2000Prim.o 
  loadQualTableBeckmanCEQ2000Term.o  loadQualTableLICOR4000Prim.o  
loadQualTableLICOR4000Term.o  logFile.o  makePeakSignal.o  
matchProcParToChemList.o  maxTraceVal.o  phred.o  polyData.o  pstring.o 
  readABI.o  readData.o  readDIR.o  readEnvVar.o  readESD.o  readFOF.o  
readParam.o  readParamFile.o  readPrivateDataSCF.o  readRC.o  readSCF.o 
  readSCF2.o  readSCF3.o  readSCFUtil.o  readType.o  report.o  
reportFileStatus.o  rmFile.o  rwUtil.o  selectProcParSet.o  setFlags.o  
setQual.o  showDoc.o  testCompress.o  traceQuality.o  trimAlt.o  
trimPhred.o  trimSeq.o  trimSet.o  uncompressFile.o  
updateRelativeArea.o  utilities.o  version.o  viewPhred.o  writeData.o  
writePhd.o  writeQual.o  writeRunInfo.o  writeSCF2.o  writeSCF3.o  
writeSeq.o -lm
ld: Undefined symbols:
restFP
saveFP
*** Error code 1

Stop in /usr/local/phred.
[caseyPBG4:/usr/local/phred] casey%

I should mention that I have installed gcc3.3 using the Apple 
August2003 updater.

One hint came from the installation instructions for the program:

Apple OS X.
    -----------

      a) If phred does not link under OS X, you may need to modify the
         'Makefile' in this distribution by changing the line with

           CLIB= -lm

         to

           CLIB= -lcc

      b) If the C compiler is not installed on your system, you may be
         be able to obtain it with the 'development tools' from the
         Open Source 'Darwin' distribution.

Unfortunately this did not fix the problem. I just got the following:

al.o  writeRunInfo.o  writeSCF2.o  writeSCF3.o  writeSeq.o -lcc
ld: can't locate file for: -lcc
*** Error code 1

Stop in /usr/local/phred.


I also searched for suggestions via google and various discussion 
groups, and similar errors seem to occur when others are trying to 
build unix programs under 10.2. The consensus seems to be that 
libraries are not being correctly linked. The most helpful tip I came 
across was the following from the Apple unix-porting discussion group:

List-Subscribe: 
<http://www.lists.apple.com/mailman/listinfo/unix-porting>,
	<mailto:unix-porting-request at lists.apple.com?subject=subscribe>

At 11/29/02 9:26 AM, Yves de Champlain <yves at gnu-darwin.org> wrote:
 >
 > I get these undefined symbols quite often with 10.2 :
 >
 > saveFP
 > restFP

Link with either /usr/lib/libcc_dynamic.a or /usr/lib/libgcc.a, 
depending on
your needs.  It's always handy to do:

%cd /usr/lib
%nm -o lib* | egrep 'T saveFP'

for example.

-Conrad
_______________________________________________

I tried
%cd /usr/lib
%nm -o lib* | egrep 'T saveFP'

and got the following:

[caseyPBG4:/usr/lib] casey% nm -o lib* | egrep 'T saveFP'
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
libcc_dynamic.a:darwin-fpsave.o:00000000 T saveFP
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
libcc_kext.a:darwin-fpsave.o:00000000 T saveFP
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
nm: no name list
libgcc.a:darwin-fpsave.o:00000000 T saveFP
nm: no name list
nm: no name list
[caseyPBG4:/usr/lib] casey%



It seems like I need to link to libcc_dynamic, libcc_kext or libgcc (or 
perhaps all three). Two questions:
Do I need to link all three libraries or just one? I’m thinking libgcc 
is the one I need.
How do I link these libraries for building? Please give precise 
instructions.

One other question: The program’s authors suggest the following 
makefile edit:
Edit 'Makefile'.

    In particular, you may want to modify CFLAGS for the highest
    level of optimization offered by your compiler.

Here is the relevant makefile section:

# UNIX specific definitions (default)
#
CC= cc
CFLAGS= -O -DANSI_C $(LXFLAGS)
CLIB= -lcc

How exactly do I modify CFLAGS?

Thanks in advance for your help.



***************************
Casey M. Finnerty, Ph. D.
Dept. of Microbiology
University of Guelph
Guelph, ON, Canada
N1G 2W1
Fax: 519.837.1802
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 7210 bytes
Desc: not available
Url : http://iubio.bio.indiana.edu/bionet/mm/staden/attachments/20031113/f98f8ec3/attachment.bin


More information about the Staden mailing list

Send comments to us at biosci-help [At] net.bio.net