Hi! I have got some sort of problem linking a program called necpp under Mac OS 10.4.10, fink, xcode_2.4.1_8m1910_6936315.dmg: http://www.physics.otago.ac.nz/research/electronics/nec/necpp-1.2.3.tar.gz ( http://www.physics.otago.ac.nz/research/electronics/nec/ )
- Apparently the problem is that necpp-1.2.3 has dependencies that I do not know about. Other programs seems to the same problem: Re: [Bacula-users] ld: can't locate file for: -lcrt0.o http://www.mail-archive.com/[EMAIL PROTECTED]/msg25807.html "Solution"?: http://forums.macosxhints.com/archive/index.php/t-273.html or another solution?: dlcompat (Dynamic loading compatibility library (dummy) ): http://pdb.finkproject.org/pdb/package.php/dlcompat?version=20030629-15&rel_id=11 fink install dlcompat http://gretl.sourceforge.net/osx.html but this is apparently not needed in 10.4: dlcompat: old files for the "dlcompat" library (libdl), which was moved out of fink and into its own fink package (and later became obsolete with the 10.3 distribution) http://wiki.finkproject.org/index.php/Fink:CVS Please help. - cli commands and responses: abc:/# cd /Volumes/MacOSX4/nec2/ abc:/Volumes/MacOSX4/nec2 root# tar -zxf necpp-1.2.3.tar.gz abc:/Volumes/MacOSX4/nec2 root# cd necpp-1.2.3 abc:/Volumes/MacOSX4/nec2/necpp-1.2.3 root# make clean Making clean in src rm -f nec2diff nec2diff rm -f nec2++ nec2++ test -z "libnecpp.la" || rm -f libnecpp.la rm -f "./so_locations" rm -rf .libs _libs rm -f *.o core *.core rm -f *.lo Making clean in . rm -rf .libs _libs rm -f *.lo abc:/Volumes/MacOSX4/nec2/necpp-1.2.3 root# ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... gcc3 checking build system type... i686-apple-darwin8.10.1 checking host system type... i686-apple-darwin8.10.1 checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking dependency style of gcc... gcc3 checking for a sed that does not truncate output... /sw/bin/sed checking for egrep... grep -E checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -p checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking how to run the C++ preprocessor... g++ -E checking for g77... no checking for f77... no checking for xlf... no checking for frt... no checking for pgf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for f90... no checking for xlf90... no checking for pgf90... no checking for epcf90... no checking for f95... no checking for fort... no checking for xlf95... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for gfortran... gfortran checking whether we are using the GNU Fortran 77 compiler... yes checking whether gfortran accepts -g... yes checking the maximum length of command line arguments... 65536 checking command to parse /usr/bin/nm -p output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc static flag works... yes checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fno-common checking if gcc PIC flag -fno-common works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin8.10.1 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... no checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fno-common checking if g++ PIC flag -fno-common works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin8.10.1 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes appending configuration tag "F77" to libtool checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for gfortran option to produce PIC... -fno-common checking if gfortran PIC flag -fno-common works... yes checking if gfortran supports -c -o file.o... yes checking whether the gfortran linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin8.10.1 dyld checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands abc:/Volumes/MacOSX4/nec2/necpp-1.2.3 root# make make all-recursive Making all in src if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT c_evlcom.lo -MD -MP -MF ".deps/c_evlcom.Tpo" \ -c -o c_evlcom.lo `test -f 'c_evlcom.cpp' || echo './'`c_evlcom.cpp; \ then mv -f ".deps/c_evlcom.Tpo" ".deps/c_evlcom.Plo"; \ else rm -f ".deps/c_evlcom.Tpo"; exit 1; \ fi mkdir .libs g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT c_evlcom.lo -MD -MP -MF .deps/c_evlcom.Tpo -c c_evlcom.cpp -fno-common -DPIC -o .libs/c_evlcom.o g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT c_evlcom.lo -MD -MP -MF .deps/c_evlcom.Tpo -c c_evlcom.cpp -o c_evlcom.o >/dev/null 2>&1 if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT c_geometry.lo -MD -MP -MF ".deps/c_geometry.Tpo" \ -c -o c_geometry.lo `test -f 'c_geometry.cpp' || echo './'`c_geometry.cpp; \ then mv -f ".deps/c_geometry.Tpo" ".deps/c_geometry.Plo"; \ else rm -f ".deps/c_geometry.Tpo"; exit 1; \ fi g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT c_geometry.lo -MD -MP -MF .deps/c_geometry.Tpo -c c_geometry.cpp -fno-common -DPIC -o .libs/c_geometry.o g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT c_geometry.lo -MD -MP -MF .deps/c_geometry.Tpo -c c_geometry.cpp -o c_geometry.o >/dev/null 2>&1 if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT c_ggrid.lo -MD -MP -MF ".deps/c_ggrid.Tpo" \ -c -o c_ggrid.lo `test -f 'c_ggrid.cpp' || echo './'`c_ggrid.cpp; \ then mv -f ".deps/c_ggrid.Tpo" ".deps/c_ggrid.Plo"; \ else rm -f ".deps/c_ggrid.Tpo"; exit 1; \ fi g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT c_ggrid.lo -MD -MP -MF .deps/c_ggrid.Tpo -c c_ggrid.cpp -fno-common -DPIC -o .libs/c_ggrid.o g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT c_ggrid.lo -MD -MP -MF .deps/c_ggrid.Tpo -c c_ggrid.cpp -o c_ggrid.o >/dev/null 2>&1 if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT c_plot_card.lo -MD -MP -MF ".deps/c_plot_card.Tpo" \ -c -o c_plot_card.lo `test -f 'c_plot_card.cpp' || echo './'`c_plot_card.cpp; \ then mv -f ".deps/c_plot_card.Tpo" ".deps/c_plot_card.Plo"; \ else rm -f ".deps/c_plot_card.Tpo"; exit 1; \ fi g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT c_plot_card.lo -MD -MP -MF .deps/c_plot_card.Tpo -c c_plot_card.cpp -fno-common -DPIC -o .libs/c_plot_card.o g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT c_plot_card.lo -MD -MP -MF .deps/c_plot_card.Tpo -c c_plot_card.cpp -o c_plot_card.o >/dev/null 2>&1 if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT libNEC.lo -MD -MP -MF ".deps/libNEC.Tpo" \ -c -o libNEC.lo `test -f 'libNEC.cpp' || echo './'`libNEC.cpp; \ then mv -f ".deps/libNEC.Tpo" ".deps/libNEC.Plo"; \ else rm -f ".deps/libNEC.Tpo"; exit 1; \ fi g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT libNEC.lo -MD -MP -MF .deps/libNEC.Tpo -c libNEC.cpp -fno-common -DPIC -o .libs/libNEC.o g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT libNEC.lo -MD -MP -MF .deps/libNEC.Tpo -c libNEC.cpp -o libNEC.o >/dev/null 2>&1 if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT matrix_algebra.lo -MD -MP -MF ".deps/matrix_algebra.Tpo" \ -c -o matrix_algebra.lo `test -f 'matrix_algebra.cpp' || echo './'`matrix_algebra.cpp; \ then mv -f ".deps/matrix_algebra.Tpo" ".deps/matrix_algebra.Plo"; \ else rm -f ".deps/matrix_algebra.Tpo"; exit 1; \ fi g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT matrix_algebra.lo -MD -MP -MF .deps/matrix_algebra.Tpo -c matrix_algebra.cpp -fno-common -DPIC -o .libs/matrix_algebra.o g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT matrix_algebra.lo -MD -MP -MF .deps/matrix_algebra.Tpo -c matrix_algebra.cpp -o matrix_algebra.o >/dev/null 2>&1 if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT misc.lo -MD -MP -MF ".deps/misc.Tpo" \ -c -o misc.lo `test -f 'misc.cpp' || echo './'`misc.cpp; \ then mv -f ".deps/misc.Tpo" ".deps/misc.Plo"; \ else rm -f ".deps/misc.Tpo"; exit 1; \ fi g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT misc.lo -MD -MP -MF .deps/misc.Tpo -c misc.cpp -fno-common -DPIC -o .libs/misc.o g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT misc.lo -MD -MP -MF .deps/misc.Tpo -c misc.cpp -o misc.o >/dev/null 2>&1 if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT nec_context.lo -MD -MP -MF ".deps/nec_context.Tpo" \ -c -o nec_context.lo `test -f 'nec_context.cpp' || echo './'`nec_context.cpp; \ then mv -f ".deps/nec_context.Tpo" ".deps/nec_context.Plo"; \ else rm -f ".deps/nec_context.Tpo"; exit 1; \ fi g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT nec_context.lo -MD -MP -MF .deps/nec_context.Tpo -c nec_context.cpp -fno-common -DPIC -o .libs/nec_context.o nec_context.cpp:2573:3: warning: #warning weird problem to test here. replaced loop variable called ip g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT nec_context.lo -MD -MP -MF .deps/nec_context.Tpo -c nec_context.cpp -o nec_context.o >/dev/null 2>&1 if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT nec_exception.lo -MD -MP -MF ".deps/nec_exception.Tpo" \ -c -o nec_exception.lo `test -f 'nec_exception.cpp' || echo './'`nec_exception.cpp; \ then mv -f ".deps/nec_exception.Tpo" ".deps/nec_exception.Plo"; \ else rm -f ".deps/nec_exception.Tpo"; exit 1; \ fi g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT nec_exception.lo -MD -MP -MF .deps/nec_exception.Tpo -c nec_exception.cpp -fno-common -DPIC -o .libs/nec_exception.o g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT nec_exception.lo -MD -MP -MF .deps/nec_exception.Tpo -c nec_exception.cpp -o nec_exception.o >/dev/null 2>&1 if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT nec_ground.lo -MD -MP -MF ".deps/nec_ground.Tpo" \ -c -o nec_ground.lo `test -f 'nec_ground.cpp' || echo './'`nec_ground.cpp; \ then mv -f ".deps/nec_ground.Tpo" ".deps/nec_ground.Plo"; \ else rm -f ".deps/nec_ground.Tpo"; exit 1; \ fi g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT nec_ground.lo -MD -MP -MF .deps/nec_ground.Tpo -c nec_ground.cpp -fno-common -DPIC -o .libs/nec_ground.o g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT nec_ground.lo -MD -MP -MF .deps/nec_ground.Tpo -c nec_ground.cpp -o nec_ground.o >/dev/null 2>&1 if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT nec_output.lo -MD -MP -MF ".deps/nec_output.Tpo" \ -c -o nec_output.lo `test -f 'nec_output.cpp' || echo './'`nec_output.cpp; \ then mv -f ".deps/nec_output.Tpo" ".deps/nec_output.Plo"; \ else rm -f ".deps/nec_output.Tpo"; exit 1; \ fi g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT nec_output.lo -MD -MP -MF .deps/nec_output.Tpo -c nec_output.cpp -fno-common -DPIC -o .libs/nec_output.o g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT nec_output.lo -MD -MP -MF .deps/nec_output.Tpo -c nec_output.cpp -o nec_output.o >/dev/null 2>&1 if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT nec_radiation_pattern.lo -MD -MP -MF ".deps/nec_radiation_pattern.Tpo" \ -c -o nec_radiation_pattern.lo `test -f 'nec_radiation_pattern.cpp' || echo './'`nec_radiation_pattern.cpp; \ then mv -f ".deps/nec_radiation_pattern.Tpo" ".deps/nec_radiation_pattern.Plo"; \ else rm -f ".deps/nec_radiation_pattern.Tpo"; exit 1; \ fi g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT nec_radiation_pattern.lo -MD -MP -MF .deps/nec_radiation_pattern.Tpo -c nec_radiation_pattern.cpp -fno-common -DPIC -o .libs/nec_radiation_pattern.o g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT nec_radiation_pattern.lo -MD -MP -MF .deps/nec_radiation_pattern.Tpo -c nec_radiation_pattern.cpp -o nec_radiation_pattern.o >/dev/null 2>&1 /bin/sh ../libtool --mode=link g++ -g -O2 -o libnecpp.la -rpath /usr/local/lib -lm -lstdc++ c_evlcom.lo c_geometry.lo c_ggrid.lo c_plot_card.lo libNEC.lo matrix_algebra.lo misc.lo nec_context.lo nec_exception.lo nec_ground.lo nec_output.lo nec_radiation_pattern.lo g++ -dynamiclib -single_module -flat_namespace -undefined suppress -o .libs/libnecpp.0.0.0.dylib .libs/c_evlcom.o .libs/c_geometry.o .libs/c_ggrid.o .libs/c_plot_card.o .libs/libNEC.o .libs/matrix_algebra.o .libs/misc.o .libs/nec_context.o .libs/nec_exception.o .libs/nec_ground.o .libs/nec_output.o .libs/nec_radiation_pattern.o -lm -lstdc++ -install_name /usr/local/lib/libnecpp.0.dylib -compatibility_version 1 -current_version 1.0 (cd .libs && rm -f libnecpp.0.dylib && ln -s libnecpp.0.0.0.dylib libnecpp.0.dylib) (cd .libs && rm -f libnecpp.dylib && ln -s libnecpp.0.0.0.dylib libnecpp.dylib) ar cru .libs/libnecpp.a c_evlcom.o c_geometry.o c_ggrid.o c_plot_card.o libNEC.o matrix_algebra.o misc.o nec_context.o nec_exception.o nec_ground.o nec_output.o nec_radiation_pattern.o ranlib .libs/libnecpp.a creating libnecpp.la (cd .libs && rm -f libnecpp.la && ln -s ../libnecpp.la libnecpp.la) if g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT necDiff.o -MD -MP -MF ".deps/necDiff.Tpo" \ -c -o necDiff.o `test -f 'necDiff.cpp' || echo './'`necDiff.cpp; \ then mv -f ".deps/necDiff.Tpo" ".deps/necDiff.Po"; \ else rm -f ".deps/necDiff.Tpo"; exit 1; \ fi /bin/sh ../libtool --mode=link g++ -g -O2 -o nec2diff necDiff.o g++ -g -O2 -o nec2diff necDiff.o -Wl,-bind_at_load if g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT nec2cpp.o -MD -MP -MF ".deps/nec2cpp.Tpo" \ -c -o nec2cpp.o `test -f 'nec2cpp.cpp' || echo './'`nec2cpp.cpp; \ then mv -f ".deps/nec2cpp.Tpo" ".deps/nec2cpp.Po"; \ else rm -f ".deps/nec2cpp.Tpo"; exit 1; \ fi if g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT XGetopt.o -MD -MP -MF ".deps/XGetopt.Tpo" \ -c -o XGetopt.o `test -f 'XGetopt.cpp' || echo './'`XGetopt.cpp; \ then mv -f ".deps/XGetopt.Tpo" ".deps/XGetopt.Po"; \ else rm -f ".deps/XGetopt.Tpo"; exit 1; \ fi /bin/sh ../libtool --mode=link g++ -g -O2 -o nec2++ -all-static nec2cpp.o XGetopt.o ../src/libnecpp.la g++ -g -O2 -o nec2++ -static nec2cpp.o XGetopt.o -Wl,-bind_at_load ../src/.libs/libnecpp.a -lm -lstdc++ /usr/bin/ld: can't locate file for: -lcrt0.o collect2: ld returned 1 exit status make[2]: *** [nec2++] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 abc:/Volumes/MacOSX4/nec2/necpp-1.2.3 root# - end - ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users