[MINC-development] linking errors on os x

Vicka Corey minc-development@bic.mni.mcgill.ca
Fri, 6 Feb 2004 18:00:42 -0500


hmm.  ok, i downloaded the new dist, and added flat_namespace to my flags.
but that doesn't seem to be it:

gcc -I/Users/nmrroot/dev/include -I/usr/pubsw/include -I/Users/nmrroot/dev/include -I/usr/pubsw/include -g -DDEBUG -DDarwin -flat_namespace -DDECLARE_PROGNAME -c -o fsgdf.o fsgdf.c
gcc -dynamiclib fsgdf.o fsgdf_wrap.o -L/Users/nmrroot/dev/lib/Darwin -L/usr/pubsw/lib -lm -lutils -lunix -lhipsstubs -limage -lutils -lrgb -ltiff -ljpeg -lz -ldicom -lvolume_io -lnetcdf -lminc -ltk8.3 -ltcl8.3 -lBLT -o libtclfsgdf.dylib
ld: warning prebinding disabled because dependent library: /sw/lib/libtiff.3.dylib is not prebound
ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option
/usr/pubsw/lib/libminc.a(minc_globdef.o) definition of common _minc_call_depth (size 4)
/usr/pubsw/lib/libminc.a(minc_globdef.o) definition of common _minc_trash_var (size 4)
/usr/pubsw/lib/libnetcdf.a(v2i.o) definition of common _cdf_routine_name (size 4)
/usr/pubsw/lib/libminc.a(minc_globdef.o) definition of common _minc_callers_ncopts (size 4)
/usr/bin/libtool: internal link edit command failed
make: *** [tcl] Error 1

...any ideas?

thanks,
--vicka

On Sun, Jan 18, 2004 at 10:51:36AM -0500, Jason Lerch wrote:
> 
> On Jan 16, 2004, at 2:23 PM, Vicka Corey wrote:
> 
> > hi -- i've been trying to build freesurfer on an osx 10.3 laptop.  i 
> > am using
> > the minc 1.2 cd from the workshop, and am running into some errors:
> >
> > building libfsgdf stuff
> > /usr/bin/libtool: internal link edit command failed
> > ld: warning prebinding disabled because dependent library: 
> > /sw/lib/libtiff.3.dylib is not prebound
> > ld: common symbols not allowed with MH_DYLIB output format with the 
> > -multi_module option
> > /usr/pubsw/lib/libminc.a(minc_globdef.o) definition of common 
> > _minc_call_depth (size 4)
> > /usr/pubsw/lib/libminc.a(minc_globdef.o) definition of common 
> > _minc_trash_var (size 4)
> > /usr/pubsw/lib/libnetcdf.a(v2i.o) definition of common 
> > _cdf_routine_name (size 4)
> > /usr/pubsw/lib/libminc.a(minc_globdef.o) definition of common 
> > _minc_callers_ncopts (size 4)
> > gmake[2]: *** [tcl] Error 1
> >
> >
> > any ideas?
> 
> Might be the OSX namespace issue. Try
> setenv CC 'gcc -flat_namespace'
> (or the same for CXX if you are using c++).
> 
> No idea if this is your problem, but it is worh a try.
> 
> >  also, any sign of the bugfixes from awhile back...?
> >
> Working on it as I write this.
> 
> Jason
> 
> _______________________________________________
> MINC-development mailing list
> MINC-development@bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-development