PDA

View Full Version : Error Compiling mimetic




kainjow
Dec 5, 2005, 10:02 PM
I'm trying to compile mimetic (http://codesink.org/mimetic_mime_library.html), a C++ library for extracting MIME info out of emails and such.

But I get the following errors (it looks like this is where it starts):
ld: warning multiple definitions of symbol ___eprintf
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/libgcc.a(_eprintf.o) private external definition of ___eprintf in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/libstdc++.dylib(single module) definition of ___eprintf
ld: multiple definitions of symbol ___divdi3
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/libgcc.a(_divdi3.o) private external definition of ___divdi3 in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libgcc_s.10.4.dylib(_divdi3_s.o) definition of ___divdi3
ld: multiple definitions of symbol ___udivdi3
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/libgcc.a(_udivdi3.o) private external definition of ___udivdi3 in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libgcc_s.10.4.dylib(_udivdi3_s.o) definition of ___udivdi3
ld: multiple definitions of symbol ___umoddi3
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/libgcc.a(_umoddi3.o) private external definition of ___umoddi3 in section (__TEXT,__text)
/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../libgcc_s.10.4.dylib(_umoddi3_s.o) definition of ___umoddi3
/usr/bin/libtool: internal link edit command failed
make[2]: *** [libmimetic.la] Error 1
make[1]: *** [check-recursive] Error 1
make: *** [check-recursive] Error 1

I'm using just the basic ./configure and make, but that's where it spits out errors (it goes a while before the errors show).

Any ideas? Maybe someone else could try compiling it...

Also, does anyone know how to compile this source directly into a Cocoa application? I'm kinda newb at generic compiling of *nix stuff.

Thanks in advance.



kainjow
Dec 5, 2005, 10:20 PM
Got the answer :)

I guess somehow there's a problem with the code and GCC 4, so you have to use GCC 3.3. This was what I used and it worked!
env MACOSX_DEPLOYMENT_TARGET=10.3 ./configure
env MACOSX_DEPLOYMENT_TARGET=10.3 make