On 5 Dec 2005, at 12:03, Daniel Macks wrote:
On Sun, Dec 04, 2005 at 09:12:16PM -0500, Kevin Horton wrote:
I used the following gcc command line:
gcc -g basics.c -o basics `pkg-config --cflags gtk+-2.0` `pkg-config
--libs gtk+-2.0 gtkdatabox`
And it failed like this:
/usr/bin/ld: warning multiple definitions of symbol _locale_charset
/sw/lib/libiconv.dylib(localcharset.o) definition of _locale_charset
/sw/lib/libintl.dylib(localcharset.o) definition of _locale_charset
/usr/bin/ld: warning suggest use of -bind_at_load, as lazy binding
may result in errors or different symbols being used
symbol _locale_charset used from dynamic library /sw/lib/
libiconv.dylib(localcharset.o) not from earlier dynamic library /sw/
lib/libintl.3.dylib(localcharset.o)
[...]
Why can't I compile with both libgettext3-dev and libiconv-dev
installed? Should they conflict against each other, or be tweaked in
some way?
As that message you quoted says, it's a warning, not an error. If
compiling failed, it's because of some other problem. There is indeed
something goofy in how fink's libiconv/gettext packages are compiled,
but I have never heard of it causing an actual problem. OTOH, if this
warning concerns you, you can "use -bind_at_load" to solve it, just
like the message says.
I added the -bind_at_load flag, which gets rid of that ld warning.
And it turns out that the compile isn't actually failing. I had
simply misinterpreted the gcc output. The program runs, once I
thought to try it. Hey, I'm learning :)
Thanks for your help.
Kevin Horton
Ottawa, Canada
-------------------------------------------------------
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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel