While working on the plplot package, I am running an error when I use the flag --enable-f77 (using fink's g77). When the flag --disable-f77 is used, compilation goes without a problem.
The following snippets are what I think that is related:
g77 -dynamiclib -single_module -o .libs/libplplotf77d.9.0.0.dylib .libs/sc3d.o .libs/sccont.o .libs/scstubs.o .libs/strutil.o .libs/sfstubs.o -all_load /sw/lib/libg2c.a /Volumes/MoreStuff/.src/plplot-5.2.1.cvs.20040104-1/plplot-5.2.1.cvs.20040104/lib/csa/.libs/libcsirocsa.dylib -L/sw/lib ../../src/.libs/libplplotd.dylib -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 -lSystem -install_name /sw/lib/libplplotf77d.9.dylib -compatibility_version 10 -current_version 10.0 ld: warning -dylib_install_name /sw/lib/libplplotf77d.9.dylib not found in segment address table LD_SEG_ADDR_TABLE /sw/var/lib/fink/prebound/seg_addr_table
And then tons of the following:
ld: multiple definitions of symbol _main /sw/lib/libfrtbegin.a(frtbegin.o) definition of _main in section
(__TEXT,__text) /sw/lib/libfrtbegin.a(frtbegin.o) definition of _main
in section (__TEXT,__text)
Why do you have all this /sw/lib/libg2c.a -lcrt2.o -lfrtbegin -lSystem stuff on the command line? These are things that "g77" already implies, so you are including libraries twice. In the case of static libraries this seems to be fatal.
Is this libtool that does this or did you make up that command line yourself? In the latter case, you should replace "g77" on that line by "gcc"
-- Martin
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel
