[libxml-devel] Build error: ld duplicate symbol error
cfis at savagexi.com
Wed Nov 19 12:46:47 EST 2008
> I'm trying to build libxml-ruby-0.9.1 on Mac OS X 10.5.5 but am
> encountering a duplicate symbol error. Specific error is:
> ld: duplicate symbol _INPUT_ATTR in ruby_xml_parser.o and ruby_xml_html_parser.o
> collect2: ld returned 1 exit status
> make: *** [libxml_ruby.bundle] Error 1
Hmm, ruby_xml_parser.c, ruby_xml_html_parser.c and ruby_xml_sax_parser
all have thise code:
I'm surprised that is causing an issue though since the variable is
only in the c files, and not header files at all.
> Output can be found here:
> How can I get around this? Thanks.
So can you do an experiment for me and modify the code. Just put a
static in front:
static ID INPUT_ATT
Do it for all three files, recompile, and let me know the results. I
assume you'll also have to do the same for:
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
More information about the libxml-devel