Bugs item #21249, was opened at 2008-07-16 20:25
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21249&group_id=494
Category: General
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Thomas Hurst (freaky)
Assigned to: Nobody (None)
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.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21249&group_id=494
_______________________________________________
libxml-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/libxml-devel