After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 382933 - libgda link failure due to multiple definitions on Darwin
libgda link failure due to multiple definitions on Darwin
Status: RESOLVED FIXED
Product: libgda
Classification: Other
Component: general
1.99.x
Other Mac OS
: Normal normal
: ---
Assigned To: Rodrigo Moya
gnome-db Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-12-06 09:16 UTC by Min Sik Kim
Modified: 2006-12-27 16:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to build libgda on Darwin (479 bytes, patch)
2006-12-06 09:16 UTC, Min Sik Kim
none Details | Review

Description Min Sik Kim 2006-12-06 09:16:19 UTC
libgda fails to link on Darwin (Mac OS X 10.4.8) with the following error:

/bin/sh ../../libtool --tag=CC --mode=link gcc  -pipe -O2 -I/Users/msk/pkg/include -I/usr/include  -L/Users/msk/pkg/lib -L/usr/lib -L/usr/X11R6/lib -o libgda_sql_delimiter-3.la -rpath /Users/msk/pkg/lib -version-info 3:0:0  parser.lo lexer.lo gda-sql-delimiter.lo gda-delimiter-tree.lo  
gcc -dynamiclib ${wl}-flat_namespace ${wl}-undefined ${wl}suppress -o .libs/libgda_sql_delimiter-3.3.0.0.dylib  .libs/parser.o .libs/lexer.o .libs/gda-sql-delimiter.o .libs/gda-delimiter-tree.o  -L/Users/msk/pkgsrc/databases/libgda/work/.buildlink/lib -L/Users/msk/pkgsrc/databases/libgda/work/.x11-buildlink/lib  -install_name  /Users/msk/pkg/lib/libgda_sql_delimiter-3.3.dylib -Wl,-compatibility_version -Wl,4 -Wl,-current_version -Wl,4.0
ld: multiple definitions of symbol _all_sql_results
.libs/parser.o definition of _all_sql_results in section (__DATA,__common)
.libs/gda-sql-delimiter.o definition of _all_sql_results in section (__DATA,__common)
/usr/bin/libtool: internal link edit command failed
gnumake[3]: *** [libgda_sql_delimiter-3.la] Error 1

Declaring the variable as "extern" in parser.y will fix the problem.
Comment 1 Min Sik Kim 2006-12-06 09:16:43 UTC
Created attachment 77798 [details] [review]
Patch to build libgda on Darwin
Comment 2 Murray Cumming 2006-12-27 16:20:03 UTC
Committed. Thanks.

It would have been fine to put this in one patch along with bug #382936.