Re: Xcode build error

Thomas Huffman <[email protected]> Sat, 1 Mar 2008 23:42:39 -0600
Newsgroups gmane.comp.video.cinepaint.devel
Message-ID <[email protected]>
Robin,

I ran into this problem trying to build with autotools on Mac.

I don't even pretend to undersand it, but I was able to figure out  
what it is doing.  For whatever reason, libtool is trying to create  
everything from the static libraries.  Apparently it grabs all of the  
static libraries it needs and extracts everything under the .libs  
directory.  It is extracting all of the functions from the systems  
glib library and it combines it back into a single library to create  
libcinepaint.  It has already done this in the wire subdir with glib,  
and so you end up with two instances of all the glib functions.  One  
from the systems glib and the other from the wire subdir where they  
are already part of the library.  If you go in and remove the .libs/ 
libcinepaint.law/libglib.a/*.o references from the gcc command that  
causes the error it finishes correctly.

It doesn't fix the problem, however. Make still dies when run as it  
still wants to include all those duplicate object files.

The solution I used was to replace the libtool in cinepaints root  
directory (I used the one from libpng-1.2.25).  With this done, the  
lib directory built without issue.

hope this helps.

Laters,
Tom


> I'm getting this error when I try to build CinePaint on Mac ppc:
>
> 818 ld: warning -L: directory name (/sw/lib) does not exist
> 819 ld: multiple definitions of symbol _g_array_append_vals
> 820 .libs/libcinepaint.lax/libwire.a/garray.o definition of
> _g_array_append_vals in         section (__TEXT,__text)
> 821 .libs/libcinepaint.lax/libglib.a/garray.o definition of
> _g_array_append_vals in         section (__TEXT,__text)
> 822 ld: multiple definitions of symbol _g_array_free
> 823 .libs/libcinepaint.lax/libwire.a/garray.o definition of  
> _g_array_free in
> section         (__TEXT,__text)
> 824 .libs/libcinepaint.lax/libglib.a/garray.o definition of  
> _g_array_free in
> section         (__TEXT,__text)
> 825 ld: multiple definitions of symbol _g_array_insert_vals
>
> It fails in the final link.
>
> Ideas?
>
> Robin
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Cinepaint-developers mailing list
> Cinepaint-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/cinepaint-developers


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/