Benjamin Reed wrote:

Claus Atzenbeck wrote:

Hi,

it seems that I have bad luck with fink currently. After the problems
with kdepim3-common (revision 22 is currently compiling :-),
graphviz-1.16-11 failed:


haha, yeah, and it's all my fault  =)

I'm working on a fix for the graphviz thing right now, I'll commit it as soon as I figure out what's wrong.

Sorry if the following has already been adressed, I was offline for a couple of days.


The lefty_panic fix was not enough. Building graphviz-1.16-11 fails if the build directory of tcltk is still around:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/sw/src/tcltk-8.4.6-2/tk8.4.6/generic -I/sw/include -I/sw/include -I/sw/include -I/usr/X11R6/include -DUSE_TCL_STUBS -DUSE_TK_STUBS -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 "-DTCL_WIDE_INT_TYPE=long long" -DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_PW_GECOS=1 -UPACKAGE_NAME -UPACKAGE_STRING -UPACKAGE_TARNAME -UPACKAGE_VERSION -g -O2 -fno-common -Wall -DNDEBUG -MT tkspline.lo -MD -MP -MF .deps/tkspline.Tpo -c tkspline.c -o tkspline.o
In file included from /usr/include/sys/event.h:154,
from /usr/include/sys/select.h:71,
from /sw/src/tcltk-8.4.6-2/tk8.4.6/unix/tkUnixPort.h:56,
from /sw/src/tcltk-8.4.6-2/tk8.4.6/generic/tkPort.h:34,
from /sw/src/tcltk-8.4.6-2/tk8.4.6/generic/tkInt.h:27,
from tkspline.c:6:
/usr/include/mach/mach.h:79: error: parse error before '->' token


This is due, again, to a spurious definition of "panic", this time in tkInt.h.

The real reason for this stupid inclusion of tcltk build directories is a too naive use of tclConfig.sh/tkConfig.sh by the graphviz configure script. This is a problem, however, for only one file, namely tkspline.c. Therefore the following additional line to the PatchScript solves the problem, at least for me:

 perl -pi.bak -e 's|\#include \<tkInt.h\>||' tkspline/tkspline.c

A more fundamental fix would involve removing a dozen lines or so from the configure script.

--
Martin







-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to