On Wed, 5 Jan 2005, David Berry wrote:
> Any Mac owners got views on this?
I think this may have been partly my fault. I changed the link to use the
g77 compiler (to pull in Norman's OS X magic fixes for the restFP
problem), but that seems to have introduced even more problems, so just
before the vacation I backed out of that change... so someone needs to try
this again and see what happens after the static AST pass2 problem was
resolved.
David,
on a related issue, I tested building AST under Cygwin with the new pass2
scheme and it doesn't work. Libtool is way too clever and spots the slight
of hand and just removes the repeated library, which isn't so good. What
we actually need to do is edit the libast_pass2.la file to reference the
symbolic links, not the original files. Anyone know of a standard way to
do that? Alternatively can we create a deep-copy of a libtool library
(without needing to recompile all the modules)?
Peter
> On Wed, 22 Dec 2004, Brad Cavanagh wrote:
>
> > Brad Cavanagh wrote:
> > > David Berry wrote:
> > >
> > >>
> > >> Peter, could this be a consequence of the changes you made yesterday to
> > >> configure.ac and Makefile.am ?
> > >
> > >
> > > Hopefully not, because this was actually a checkout from Friday. I
> > > didn't have
> > > enough time Friday afternoon to finish the build, so I had to complete
> > > it on
> > > Saturday, and thus the email Monday morning. I wanted to confirm that we
> > > could
> > > duplicate it (my officemate, Douglas Pierce-Price, just got a Powerbook)
> > > before sending the email.
> > >
> > > I'll try checking out again to see if it's fixed now.
> >
> > Hate to be the bearer of bad news, but it's broken differently now, and the
> > error message doesn't really make much sense to me:
> >
> > /bin/sh ./libtool --mode=link g77 -g -O2 -I/local-star-make-world/include
> > -fno-second-underscore -L/local-star-make-world/lib -o convert_idl.la -rpath
> > /local-star-make-world/lib -module read_ndf.lo write_ndf.lo probe_ndf.lo
> > crehds.lo hds2idl.lo idlstructdef.lo idlstructarrdef.lo idlstructfill.lo
> > idlprimfill.lo hdsstructwrite.lo hdsprimwrite.lo gethdstype.lo getidltype.lo
> > getidlstringsize.lo getobjectdetails.lo getstringarray.lo tagstrip.lo
> > getcomp.lo checkarr.lo IDL_Load.lo hds.lo dat.lo dummy.lo `ndf_link`
> > -lcc_dynamic
> > g77 -Wl,-bind_at_load -flat_namespace -undefined suppress -o
> > .libs/convert_idl.0.0.0.so -bundle .libs/read_ndf.o .libs/write_ndf.o
> > .libs/probe_ndf.o .libs/crehds.o .libs/hds2idl.o .libs/idlstructdef.o
> > .libs/idlstructarrdef.o .libs/idlstructfill.o .libs/idlprimfill.o
> > .libs/hdsstructwrite.o .libs/hdsprimwrite.o .libs/gethdstype.o
> > .libs/getidltype.o .libs/getidlstringsize.o .libs/getobjectdetails.o
> > .libs/getstringarray.o .libs/tagstrip.o .libs/getcomp.o .libs/checkarr.o
> > .libs/IDL_Load.o .libs/hds.o .libs/dat.o .libs/dummy.o -all_load
> > /sw/lib/libg2c.a -L/local-star-make-world/lib
> > /local-star-make-world/lib/libndf.dylib
> > /local-star-make-world/lib/libary.dylib
> > /local-star-make-world/lib/libhds.dylib
> > /local-star-make-world/lib/liberr_standalone.dylib
> > /local-star-make-world/lib/libpsx.dylib
> > /local-star-make-world/lib/libchr.dylib
> > /local-star-make-world/lib/libprm.dylib
> > /local-star-make-world/lib/libprm_a.dylib
> > /local-star-make-world/lib/libast_wcslib.dylib
> > /local-star-make-world/lib/libast_slalib.dylib
> > /local-star-make-world/lib/libsla.dylib
> > /local-star-make-world/lib/libast_grf_2.0.dylib
> > /local-star-make-world/lib/libast_grf_3.2.dylib
> > /local-star-make-world/lib/libast.dylib
> > /local-star-make-world/lib/libast_ems.dylib
> > /local-star-make-world/lib/libemsf.dylib
> > /local-star-make-world/lib/libems.dylib
> > /local-star-make-world/lib/libcnf.dylib -lm
> > -L/sw/lib/gcc/powerpc-apple-darwin7.5.0/3.4.1
> > -L/sw/lib/gcc/powerpc-apple-darwin7.5.0/3.4.1/../../.. -lfrtbegin -lSystem
> > -lcc_dynamic
> > /usr/bin/ld: multiple definitions of symbol _main
> > /sw/lib/gcc/powerpc-apple-darwin7.5.0/3.4.1/../../../libfrtbegin.a(frtbegin.o)
> > definition of _main in section (__TEXT,__text)
> > /sw/lib/gcc/powerpc-apple-darwin7.5.0/3.4.1/../../../libfrtbegin.a(frtbegin.o)
> > definition of _main in section (__TEXT,__text)
> > /usr/bin/ld: multiple definitions of symbol _abort_
> > /sw/lib/libg2c.a(Labort.o) definition of _abort_ in section (__TEXT,__text)
> > /sw/lib/gcc/powerpc-apple-darwin7.5.0/3.4.1/../../../libg2c.a(Labort.o)
> > definition of _abort_ in section (__TEXT,__text)
> > /usr/bin/ld: multiple definitions of symbol _derf_
> > /sw/lib/libg2c.a(Lderf.o) definition of _derf_ in section (__TEXT,__text)
> > /sw/lib/gcc/powerpc-apple-darwin7.5.0/3.4.1/../../../libg2c.a(Lderf.o)
> > definition of _derf_ in section (__TEXT,__text)
> > /usr/bin/ld: multiple definitions of symbol _derfc_
> > /sw/lib/libg2c.a(Lderfc.o) definition of _derfc_ in section (__TEXT,__text)
> > /sw/lib/gcc/powerpc-apple-darwin7.5.0/3.4.1/../../../libg2c.a(Lderfc.o)
> > definition of _derfc_ in section (__TEXT,__text)
> >
> >
> >
> >
> > It goes on in this vein for what's probably every symbol defined in libg2c.
> > Now it seems to me from these errors that it's doing something incredibly
> > stupid and trying to bring in libg2c twice, once from /sw/lib/libg2c and once
> > from /sw/lib/gcc/powerpc-apple-darwin7.5.0/3.4.1/libg2c. How does one get it
> > to stop doing this sort of thing?
> >
> > Brad.
> >
>
|