Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Libtool linking errors when building tunepimp on 10.4.x



I've been attempting to compile the tunepimp library (part of the MusicBrainz project) on MacOS X 10.4.2. I've been running into some problems on the linking side that started to occur when I upgraded to 10.4.x.
http://musicbrainz.org/products/tunepimp/


First, tunepimp CVS compiles and links fine on MacOS 10.3.9 and tunepimp v0.3.0 compiles under MacOS 10.4.2 (if env var MACOSX_DEPLOYMENT_TARGET=10.3). However, the CVS version does not compile/link successfully. I have brought this up on the tunepimp/ musicbrainz mailing lists and we haven't been able to figure it out yet there. I'm hoping this audience might have additional insight.

The problem:
------------
After checking out the latest code on CVS, and ./autogen.sh; ./ configure; make. I get the following errors:


/bin/sh ../libtool --mode=link g++ -g -O2 -o libtunepimp.la - rpath /usr/local/lib -version-info 3:0:0 tunepimp.lo filecache.lo filelookup.lo analyzer.lo dirsearch.lo metadata.lo submit.lo astrcmp.lo track.lo lookup.lo lookuptools.lo write.lo c_wrapper.lo watchdog.lo plugins.lo readmeta.lo fileio.lo threads/posix/ libtpthread.la utf8/libutf8.la -lmusicbrainz -lz ../libltdl/ libltdlc.la -lm -framework CoreFoundation
g++ -dynamiclib -single_module -flat_namespace -undefined suppress - o .libs/libtunepimp.3 .libs/tunepimp.o .libs/filecache.o .libs/ filelookup.o .libs/analyzer.o .libs/dirsearch.o .libs/ metadata.o .libs/submit.o .libs/astrcmp.o .libs/track.o .libs/ lookup.o .libs/lookuptools.o .libs/write.o .libs/c_wrapper.o .libs/ watchdog.o .libs/plugins.o .libs/readmeta.o .libs/fileio.o -all_load threads/posix/.libs/libtpthread.a utf8/.libs/libutf8.a ../ libltdl/.libs/libltdlc.a -lpthread /usr/lib/libiconv.dylib /usr/ local/lib/libmusicbrainz.dylib -lz -ldl -lm -framework CoreFoundation -install_name /usr/local/lib/libtunepimp.3 -Wl,- compatibility_version -Wl,4 -Wl,-current_version -Wl,4.0
ld: warning multiple definitions of symbol ___eprintf
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc.a(_eprintf.o) private external definition of ___eprintf in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libstdc++.dylib(single module) definition of ___eprintf
ld: multiple definitions of symbol ___divdi3
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc.a(_divdi3.o) private external definition of ___divdi3 in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc_s.dylib(_divdi3.o) definition of ___divdi3
ld: multiple definitions of symbol ___udivdi3
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc.a(_udivdi3.o) private external definition of ___udivdi3 in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc_s.dylib(_udivdi3.o) definition of ___udivdi3
ld: multiple definitions of symbol ___umoddi3
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc.a(_umoddi3.o) private external definition of ___umoddi3 in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/libgcc_s.dylib(_umoddi3.o) definition of ___umoddi3
/usr/bin/libtool: internal link edit command failed
make[3]: *** [libtunepimp.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2



Web searching reveals others (including people on this list) have encountered similar errors and found solutions:
http://lists.apple.com/archives/Unix-porting/2005/May/msg00004.html
http://lists.apple.com/archives/scitech/2005/May/msg00204.html
http://bugzilla.opendarwin.org/show_bug.cgi?id=2927
http://fink.sourceforge.net/doc/porting/libtool.php (Section 3.4)


The solutions proposed in these examples have not worked for me. For brevity, I'll just post a link to the discussion we've been having on this topic on the musicbrainz mailing list where we've been exploring some options:
http://lists.musicbrainz.org/pipermail/musicbrainz-devel/2005- September/001358.html


I've tried compiling on two different MacOS X 10.4.2 machines with the same results. I would be grateful if anyone on this list has additional suggestions.

Thanks,
--Sunil
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Unix-porting mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/unix-porting/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.