[libxml-devel] Build error: ld duplicate symbol error

Greg prufrocks at gmail.com
Wed Nov 19 12:34:25 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

The command that I ran was (note that I'm building against
libxml2-2.7.2 rev1 from MacPorts):
sudo env ARCHFLAGS="-arch i386" gem install libxml-ruby --
--with-xml2-include=/opt/local/include/libxml2
--with-xml2-lib=/opt/local/lib

Output can be found here:
http://pastie.org/318853

How can I get around this?  Thanks.


More information about the libxml-devel mailing list