[Insight-users] Problem compiling itk1.6 on MacOSX

Brad King brad.king at kitware.com
Wed, 25 Feb 2004 16:01:07 -0500


Florence Meusburger wrote:
> Hi,
> 
> Has anyone managed to compile itk1.6 with shared libs?
> I tried to do it. I get the following message :
> 
> ld: common symbols not allowed with MH_DYLIB output format with the
> -multi_module option
> rpoly.o definition of common _global_ (size 4232)
> /usr/bin/libtool: internal link edit command failed
> 
> I'm using gcc 3.3 and cmake1.8 on MacOSX 10.2.8.

This has already been fixed in the CVS and 1.6 release branch versions 
of ITK.  The fix will be included in 1.6.1.  You can fix your source 
tree now by editing the file

   Utilities/vxl/v3p/netlib/rpoly.c

and changing line 16 from

struct {

to

static struct {

-Brad