While trying to rebuild KDE after the xorg 7.2 and gcc 4.2 imports, the compile failed while building graphics/graphviz because the gv_lua.cpp file that is generated by swig13 includes luarun.swg. The luarun.swg file has "#include <malloc.h>" in it, and it generates an error due to __STDC__ is defined. Fix: Apply that attached patch to the devel/swig13 port which changes malloc.h to stdlib.h, since malloc.h has been depreciated since Nov 2001. Patch attached with submission follows: How-To-Repeat: cd /usr/ports/graphics/graphviz make build : c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../lib/gvc -I../../lib/common -I../../lib/graph -I../../lib/cdt -I../../lib/pathplan -I/usr/local/lib/perl5/5.8.8/mach/CORE -I/usr/local/include/python2.4 -I/usr/local/lib/ruby/1.8/amd64-freebsd7 -I/usr/local/include/tcl8.4 -I/usr/local/include/tcl8.4/generic -I/usr/local/include -I/usr/local/include -I/usr/local/include/tcl8.4 -I/usr/local/include/tk8.4 -I/usr/local/include/lua51 -I/usr/local/include -O2 -fno-strict-aliasing -pipe -MT gv_lua.lo -MD -MP -MF .deps/gv_lua.Tpo -c gv_lua.cpp -fPIC -DPIC -o .libs/gv_lua.o In file included from gv_lua.cpp:711: /usr/include/malloc.h:3:2: error: #error "<malloc.h> has been replaced by <stdlib.h>" gmake[3]: *** [gv_lua.lo] Error 1 gmake[3]: Leaving directory `/usr/ports/graphics/graphviz/work/graphviz-2.12/tclpkg/gv'
Responsible Changed From-To: freebsd-ports-bugs->rafan Over to maintainer
rafan 2007-06-10 08:02:56 UTC FreeBSD ports repository Modified files: devel/swig13 Makefile Log: - Fix LUA interface by replacing malloc.h to stdlib.h PR: ports/113513 Submitted by: Scot Hetzel <swhetzel at gmail.com> Revision Changes Path 1.75 +3 -0 ports/devel/swig13/Makefile _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed. Thanks!