Bug 113513 - devel/swig13: graphics/graphviz fails to build when WITH_LUA defined
Summary: devel/swig13: graphics/graphviz fails to build when WITH_LUA defined
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Rong-En Fan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-10 08:50 UTC by Scot Hetzel
Modified: 2007-06-10 09:10 UTC (History)
0 users

See Also:


Attachments
file.diff (755 bytes, patch)
2007-06-10 08:50 UTC, Scot Hetzel
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Scot Hetzel 2007-06-10 08:50:02 UTC
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'
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-06-10 08:50:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->rafan

Over to maintainer
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-06-10 09:03:03 UTC
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"
Comment 3 Rong-En Fan freebsd_committer freebsd_triage 2007-06-10 09:03:07 UTC
State Changed
From-To: open->closed

Committed. Thanks!