Bug 113473 - graphics/graphviz compile error with portupgrade
Summary: graphics/graphviz compile error with portupgrade
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: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-08 09:00 UTC by David Southwell
Modified: 2007-06-12 06:13 UTC (History)
0 users

See Also:


Attachments
graphviz-2.12.log (28.80 KB, text/x-log; charset="us-ascii")
2007-06-08 15:55 UTC, David Southwell
no flags Details
config.log (231.71 KB, text/x-log; charset="us-ascii")
2007-06-08 15:36 UTC, David Southwell
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Southwell 2007-06-08 09:00:09 UTC
        then mv -f ".deps/gv_lua.Tpo" ".deps/gv_lua.Plo"; else 
rm -f ".deps/gv_lua.Tpo"; exit 1; fi
 
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-freebsd6 -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/php/Zend -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 "<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'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory 
`/usr/ports/graphics/graphviz/work/graphviz-2.12/tclpkg'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/graphics/graphviz/work/graphviz-2.12'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/graphics/graphviz.
*** Error code 1

Stop in /usr/ports/graphics/graphviz.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.89319.49 
env UPGRADE_TOOL=portupgrade UPGRADE_PORT=graphviz-2.12_1 
UPGRADE_PORT_VER=2.12_1 make
** Fix the problem and try again.

********************************

Is the file "gv_lua.cpp:711" being created on the fly by swig?????

Fix: 

Not known..but it looks as though the file causing the problem might be created on the fly by swig
How-To-Repeat: With graphviz-2.12_1 installed and an up to date ports run
# portupgrade -a
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-06-08 09:00:19 UTC
Class Changed
From-To: maintainer-update->change-request

Fix category (submitter is not maintainer)
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2007-06-08 09:00:26 UTC
Responsible Changed
From-To: freebsd-ports-bugs->dinoex

Over to maintainer
Comment 3 Dirk Meyer freebsd_committer freebsd_triage 2007-06-08 14:49:55 UTC
State Changed
From-To: open->feedback


I can't reporduce the problem: 

Plase check that your Swig installation is up to date. 

What Options do you use? 

Compare the output of make configure with this log: 
http://pointyhat.freebsd.org/errorlogs/amd64-6-latest-logs/graphviz-2.12_2.log
Comment 4 David Southwell 2007-06-08 15:36:53 UTC
The log file seems to be in a different format.

I have attached the file from:
/usr/ports/graphics/graphviz/work/graphviz-2.12/config.log

I hope this will help trace the problem.

david

PS my version is given as graphviz-2.12 NOT graphviz-2.12_2
Comment 5 Dirk Meyer freebsd_committer freebsd_triage 2007-06-08 15:55:10 UTC
State Changed
From-To: feedback->patched

please update your port so you can build 2.12_1 or 2.12_2
Comment 6 David Southwell 2007-06-08 15:55:12 UTC
I belatedly  realised you were referring to the file which is now attached.

Sorry about that

david
Comment 7 David Southwell 2007-06-08 16:28:28 UTC
I hoped I might have slipped up and missed an update but no such luck...
Actually it was 2.12_1 (I read the version number without the freebsd _* po=
rt=20
identifyer) and I have =A0just attempted a recompile after upgrading gcc bu=
t it=20
makes no difference. Here are the concluding lines of the failure ( I thoug=
ht=20
I would check my ports tree- you can see no difference:


ua.Tpo -c gv_lua.cpp =A0-fPIC -DPIC -o .libs/gv_lua.o
In file included from gv_lua.cpp:711:
/usr/include/malloc.h:3:2: #error "<malloc.h> has been replaced by <stdlib.=
h>"
gmake[3]: *** [gv_lua.lo] Error 1
gmake[3]: Leaving directory=20
`/usr/ports/graphics/graphviz/work/graphviz-2.12/tclpkg/gv'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory=20
`/usr/ports/graphics/graphviz/work/graphviz-2.12/tclpkg'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/graphics/graphviz/work/graphviz-2.1=
2'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/graphics/graphviz.
*** Error code 1

Stop in /usr/ports/graphics/graphviz.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.26382=
=2E0=20
env UPGRADE_TOOL=3Dportupgrade UPGRADE_PORT=3Dgraphviz-2.12_1=20
UPGRADE_PORT_VER=3D2.12_1 make
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
=A0 =A0 =A0 =A0 ! graphics/graphviz (graphviz-2.12_1) =A0 (reference to mal=
loc.h)
=2D--> =A0Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
[root@dns1 /usr/ports/graphics/graphviz]# ls -l
total 36
=2Drw-r--r-- =A01 root =A0wheel =A0 8224 Jun =A04 14:24 Makefile
=2Drw-r--r-- =A01 root =A0wheel =A0 =A0197 Mar =A04 00:20 distinfo
drwxr-xr-x =A02 root =A0wheel =A0 =A0512 Mar =A09 03:38 files
=2Drw-r--r-- =A01 root =A0wheel =A0 =A0576 Aug 17 =A02006 pkg-descr
=2Drw-r--r-- =A01 root =A0wheel =A016685 Mar =A08 23:28 pkg-plist
drwxr-xr-x =A03 root =A0wheel =A0 =A0512 Jun =A08 08:11 work
[root@dns1 /usr/ports/graphics/graphviz]# cvsup /var/cvsupconfig/ports-supf=
ile
Connected to cvsup8.FreeBSD.org
Updating collection ports-all/cvs
=A0Edit ports/news/nntp/Makefile
=A0Checkout ports/news/nntp/files/patch-acttimes.c
=A0Edit ports/print/cups-base/Makefile
=A0Edit ports/print/cups-base/pkg-install
=A0Edit ports/print/cups-base/pkg-plist
=A0Edit ports/security/p5-PGP-Sign/Makefile
=A0Edit ports/security/p5-PGP-Sign/distinfo
=46inished successfully
[root@dns1 /usr/ports/graphics/graphviz]# =A0

I have been trolling the net and found some other reports on other systems =
of=20
a similar problem. Google for graphviz malloc.h error -- this seems to be a=
=20
bug which has had to be resolved for other platforms=20

David
Comment 8 Dirk Meyer freebsd_committer freebsd_triage 2007-06-10 15:06:33 UTC
State Changed
From-To: patched->feedback


what is you version of swig? and libtool?
Comment 9 David Southwell 2007-06-10 18:28:33 UTC
Thanks for keeping onto this
swig-1.3.31 
libtool-1.5.22_4 
David
Comment 10 Dirk Meyer freebsd_committer freebsd_triage 2007-06-11 10:02:10 UTC
State Changed
From-To: feedback->analyzed


That problem is fixed in: 
http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/swig13/Makefile 

Please update and try again.
Comment 11 David Southwell 2007-06-11 12:23:05 UTC
Great
FIXED

That compiled with todays cvsup and portupgrade -a.
Scots commit of swig enabled the graphviz upgrade to compile.
Thank you everyone
david
Comment 12 Dirk Meyer freebsd_committer freebsd_triage 2007-06-12 06:12:44 UTC
State Changed
From-To: analyzed->closed

problem solved