Viv Kendon wrote:
[]
/bin/sh ../../libtool --mode=link gcc -g -O2 -Wall -Wmissing-prototypes
-Wnested-externs -Wpointer-arith -Wno-sign-compare -L/sw/lib -o
libgda-mysql.la -rpath /sw/lib/libgda/providers -export-dynamic -module
-avoid-version gda-mysql-provider.lo gda-mysql-recordset.lo libmain.lo
utils.lo -L/sw/lib -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lglib-2.0
-lintl -lxslt -lxml2 -lpthread -lz -liconv -lm
../../libgda/libgda-2.la -L/usr/lib/mysql -lmysqlclient
gcc -bundle -flat_namespace -undefined suppress -o
.libs/libgda-mysql.so .libs/
gda-mysql-provider.o .libs/gda-mysql-recordset.o .libs/libmain.o
.libs/utils.o -all_load /usr/lib/mysql/libmysqlclient.a
/sw/src/fink.build/libgda-1.0.4-4/libgda-1.0.4/libsql/.libs/libgdasql.dylib
-L/sw/lib /sw/lib/libgobject-2.0.dylib /sw/lib/libgthread-2.0.dylib
/sw/lib/libgmodule-2.0.dylib /sw/lib/libglib-2.0.dylib
/sw/lib/libintl.dylib /sw/lib/libxslt.dylib /sw/lib/libxml2.dylib
-lpthread -lz /sw/lib/libiconv.dylib -lm
../../libgda/.libs/libgda-2.dylib -L/usr/lib/mysql
/usr/bin/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
[]
collect2: ld returned 1 exit status
make[2]: *** [libgda-mysql.la] Error 1
I think we can safely blame this on libtool. The -all_load flag that it
adds will break any gcc linker command when MACOSX_DEPLOYMENT_TARGET is
set to 10.4, because then both -lgcc_s.10.4 and -lgcc are present on the
linker line and when -all_load hits libgcc.a, the above multiple
definition error will result. In addition, -all_load is not even needed
here. This has been discussed for other packages in the past, but I
don't remember the conclusion.
A workaround for libgda is to put the line
SetMACOSX_DEPLOYMENT_TARGET: 10.3
into the libgda.info file. I don't know if this will break other things,
but in any case it will avoid that error.
--
Martin
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users