Re: Response to Fortran compilation reply received on Mar. 8

James Kolata <[email protected]>
Newsgroups gmane.os.apple.fink.beginners
Message-ID <[email protected]>
> You need to provide more context from the build log. Look for the 
> command that actually failed and what the missing symbols are. "ld: 
> symbol not found" is just the generic output that declares the type of 
> error, but doesn't give any details as to who or why.



Here is a portion of the output from the build log…first from a file that compiled correctly.  The output here, though,
looks a lot different than on my previous system, specifically the multiple mentions of “no symbols”:

make[1]: Entering directory '/opt/upak-macosx/upak/Dxglib'
ranlib xglib.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: xglib.a(boxit.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: xglib.a(doaxis.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: xglib.a(dracir.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: xglib.a(getgco.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: xglib.a(lablman.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: xglib.a(lablout.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: xglib.a(markit1.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: xglib.a(markit2.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: xglib.a(markits.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: xglib.a(markum1.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: xglib.a(newfig.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: xglib.a(nucur.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: xglib.a(numac.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: xglib.a(plotpix.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: xglib.a(plotxy.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: xglib.a(plotxyl.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: xglib.a(texout.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: xglib.a(xcomdef.o) has no symbols
xglib.a is up-to-date
install -d ../../hhirf
install -p xglib.a ../../hhirf


There were a number of these, most with only one or two “no symbols” notation.

Here is where the failures begin:

make[1]: Entering directory '/opt/upak-macosx/upak/Dasap'
gfortran-fsf-9 -O -O -DLITTLEENDIAN -DGFORTRAN -fno-automatic -fsecond-underscore -fno-range-check asap.o ../Dasaplib/asaplib.a ../../hhirf/milibb.a ../../hhirf/orphlib.a -L/opt/sw/lib -lgfortran -lgcc -o asap
ld: warning: tentative definition of '_ttt_' with size 152 from '../Dasaplib/asaplib.a(asapr.o)' is being replaced by real definition of smaller size 88 from '../Dasaplib/asaplib.a(sapnit.o)'
ld: warning: tentative definition of '_lll_' with size 272 from '../Dasaplib/asaplib.a(setter.o)' is being replaced by real definition of smaller size 264 from '../Dasaplib/asaplib.a(sapnit.o)'
Undefined symbols for architecture x86_64:
  "_date_and_time__", referenced from:
      _milymdhms_ in orphlib.a(milymdhms.o)
  "_do_fio", referenced from:
      _MAIN__ in asap.o
      _looper_ in milibb.a(looper.o)
      _messlog_ in orphlib.a(messlog.o)
      _asapr_ in asaplib.a(asapr.o)
      _equate_ in milibb.a(equate.o)
      _helpopen_ in orphlib.a(helpopen.o)
      _isval_ in milibb.a(isval.o)

There were many more of these “Undefined symbols” errors.  Note that this is the first call to gfortran.  The build log from my previous system
differs in that it calls for “gfortran-fsf-4.8” which doesn’t exist on the new machine.  Otherwise, the call looks the same.  The two ld: warnings
above did not appear on my previous system.

After all the “undefined symbols” errors, this is the final output:

ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:11: asap] Error 1
make[1]: Leaving directory '/opt/upak-macosx/upak/Dasap'
make: *** [Makefile:112: asap] Error 2


I compared the hdf5 files with those from the previous system and they were the same.

> Also, there is no good upgrade path to 10.15 from earlier systems since 
> Apple forced us to move away from /sw to /opt/sw. You can capture the 
> list of previously installed packages on 10.11 and then ask the 10.15 
> Fink to install those packages. See the top news item (2019-10-27) here 
> <http://www.finkproject.org/news/index.php?phpLang=en> <http://www.finkproject.org/news/index.php?phpLang=en%3E>; for the 
> instructions to do that.



I did this when I first installed fink.


Jim Kolata

_______________________________________________
Fink-beginners mailing list
[email protected]
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.