From: Michel P. <Mic...@en...> - 2003-12-29 18:22:47
|
> (2) after "make install" > > cd /tmp > cp -a $prefix/lib/plplot-5.2.1.cvs.20031228/examples . > cd examples/f77 > make x01f Here is the result of this command (after setting the PATH in order to have plplot_libtool in my search path) : make x01f plplot_libtool --mode=link g77 x01f.f -I/Users/mpeyrard/plplotcvs/include/plplot -L/Users/mpeyrard/plplotcvs/lib -lplplotf77d -o x01f mkdir .libs g77 x01f.f -I/Users/mpeyrard/plplotcvs/include/plplot -o x01f -L/Users/mpeyrard/plplotcvs/lib /Users/mpeyrard/plplotcvs/lib/libplplotf77d.a /Users/mpeyrard/plplotcvs/lib/libplplotd.a /Users/mpeyrard/plplotcvs/lib/libcsirocsa.a -L/usr/X11R6/lib -lX11 -lcrt2.o -L/sw/lib/gcc/powerpc-apple-darwin7.2.0/3.4 -L/sw/lib/gcc/powerpc-apple-darwin7.2.0/3.4/../../.. -lfrtbegin /sw/lib/libg2c.a -lm -lSystem /usr/bin/ld: multiple definitions of symbol ___darwin_gcc3_preregister_frame_info /sw/lib/gcc/powerpc-apple-darwin7.2.0/3.4/crt2.o definition of ___darwin_gcc3_preregister_frame_info in section (__TEXT,__text) /sw/lib/gcc/powerpc-apple-darwin7.2.0/3.4/crt2.o definition of ___darwin_gcc3_preregister_frame_info in section (__TEXT,__text) /usr/bin/ld: warning prebinding disabled because dependent library: /usr/lib/system/libmathCommon.A.dylib can't be searched collect2: ld returned 1 exit status make: *** [x01f] Error 1 I checked that the library /usr/lib/system/libmathCommon.A.dylib does exist in my system. If I compile x01f.f with g77 and the appropriate libraries with the command: g77 -O3 -Wunused -Wuninitialized -fno-backslash -o x01f x01f.f -I/Users/mpeyrard/plplotcvs/include/plplot -L/Users/mpeyrard/plplotcvs/lib -L/usr/X11R6/lib/ -lpgplot -lX11 -lplplotf77d -lplplotd -lcsirocsa -lgcc -lcc_dynamic it compiles without any problem. (the direcetory /Users/mpeyrard/plplotcvs was my prefix) > > > The library libplplotf77d does not exist in my install directory/lib > > after the make install Sorry. This was a stupid mistake: on the Mac I installed g77 with fink and I need to set up the path to include /sw/bin in order to access it. I have done this in a script for myself, but not for root. Therefore ./configure had not found g77 and thus not built the fortran library. Now I have it. In order to be able to compile, I still need --disable-shared --disable-dyndrivers Michel |