Bugs item #21249, was opened at 2008-07-16 14:25 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21249&group_id=494
Category: General Group: None >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Thomas Hurst (freaky) >Assigned to: Charlie Savage (cfis) Summary: Build fails on FreeBSD due to incomplete include paths Initial Comment: The 0.8.0 gem doesn't include /usr/local/include in the search path in the extension Makefile, resulting in: make cc -I. -I. -I/usr/local/lib/ruby/1.8/amd64-freebsd7 -I. -I/usr/local/include/libxml2 -DRUBY_EXTCONF_H=\extconf.h\ -fPIC -pipe -g -g -fPIC -I. -I/usr/local/lib/ruby/1.8/amd64-freebsd7 -I. -I/usr/local/include/libxml2 -c cbg.c In file included from /usr/local/include/libxml2/libxml/parser.h:796, from /usr/local/include/libxml2/libxml/globals.h:18, from /usr/local/include/libxml2/libxml/xmlIO.h:117, from cbg.c:2: /usr/local/include/libxml2/libxml/encoding.h:28:19: error: iconv.h: No such file or directory In file included from /usr/local/include/libxml2/libxml/parser.h:796, from /usr/local/include/libxml2/libxml/globals.h:18, from /usr/local/include/libxml2/libxml/xmlIO.h:117, from cbg.c:2: /usr/local/include/libxml2/libxml/encoding.h:136: error: expected specifier-qualifier-list before 'iconv_t' *** Error code 1 Stop in /usr/local/lib/ruby/gems/1.8/gems/libxml-ruby-0.8.0/ext/libxml. I'm not familiar enough with mkmf to see what the best fix is, but hacking it into $INCFLAGS does the trick. ---------------------------------------------------------------------- >Comment By: Charlie Savage (cfis) Date: 2008-07-16 14:46 Message: Can't say mkmf is my thing either, but what you can do is: ruby extconf.rb --with-incov-dir=/usr/local/include And then run the makefile. However, it seems reasonable to add this path by default, so I checked in this fix to extconf.rb: $INCFLAGS << " -I/usr/local/include" Thanks for the report. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21249&group_id=494 _______________________________________________ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel