Failure to build graphviz package

73 views
Skip to first unread message

mjs

unread,
Mar 1, 2013, 3:45:00 PM3/1/13
to sage-s...@googlegroups.com
I'm trying to build the graphviz-2.16.1.p0 package in Sage 5.7 on Red Hat Enterprise 6.4.  The build fails with the following error:

 gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/tk-private/generic -I/usr/include/tcl-private/generic -I/usr/include/tcl-private/generic -I/usr/include/tk-private/generic -I../../tclpkg/tkstubs -I/usr/local/sage-5.7/local/include -I/usr/local/sage-5.7/local/include -DUSE_TCL_STUBS -DUSE_TK_STUBS -DPACKAGE_NAME=\"tk\" -DPACKAGE_TARNAME=\"tk\" -DPACKAGE_VERSION=\"8.5\" "-DPACKAGE_STRING=\"tk 8.5\"" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 "-DMODULE_SCOPE=extern __attribute__((__visibility__(\"hidden\")))" -DTCL_SHLIB_EXT=\".so\" -DTCL_CFG_OPTIMIZED=1 -DTCL_CFG_DEBUG=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_PW_GECOS=1 -DHAVE_LIBXFT=1 -DHAVE_XFT=1 -UPACKAGE_NAME -UPACKAGE_STRING -UPACKAGE_TARNAME -UPACKAGE_VERSION -g -O2 -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math -MT tkspline.lo -MD -MP -MF .deps/tkspline.Tpo -c tkspline.c  -fPIC -DPIC -o .libs/tkspline.o
In file included from /usr/include/tk-private/generic/tkInt.h:27,
                 from tkspline.c:22:
/usr/include/tk-private/generic/tkPort.h:32:25: error: tkUnixPort.h: No such file or directory
make[4]: *** [tkspline.lo] Error 1
make[4]: Leaving directory `/usr/local/sage-5.7/spkg/build/graphviz-2.16.1.p0/src/tclpkg/tkspline'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/sage-5.7/spkg/build/graphviz-2.16.1.p0/src/tclpkg/tkspline'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/sage-5.7/spkg/build/graphviz-2.16.1.p0/src/tclpkg'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/sage-5.7/spkg/build/graphviz-2.16.1.p0/src'
make: *** [all] Error 2
Error building Graphviz

The problem is that the tkUnix*.h header files don't reside in /usr/include/tk-private/generic/, they are in /usr/include/tk-private/unix/, which is not listed as an include directory on the compiler command line.  This is tk-devel-8.5.7-5.el6.x86_64.  As a hack, I tried symlinking those files from /usr/include/tk-private/generic/, but then the build fails with a different error:

 g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/gvc -I../../lib/common -I../../lib/graph -I../../lib/cdt -I../../lib/pathplan -I/usr/lib64/ocaml -I/usr/lib64/perl5/CORE -I/usr/local/sage-5.7/local/include/python2.7 -I/usr/local/sage-5.7/local/include -I/usr/local/sage-5.7/local/include -MT gv_tcl.lo -MD -MP -MF .deps/gv_tcl.Tpo -c gv_tcl.cpp  -fPIC -DPIC -o .libs/gv_tcl.o
In file included from /usr/include/limits.h:153,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/limits.h:122,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/syslimits.h:7,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/include/limits.h:11,
                 from gv_tcl.cpp:1898:
/usr/include/bits/xopen_lim.h:95:6: error: missing binary operator before token "("
/usr/include/bits/xopen_lim.h:98:7: error: missing binary operator before token "("
make[3]: *** [gv_tcl.lo] Error 1
make[3]: Leaving directory `/usr/local/sage-5.7/spkg/build/graphviz-2.16.1.p0/src/tclpkg/gv'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/sage-5.7/spkg/build/graphviz-2.16.1.p0/src/tclpkg'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/sage-5.7/spkg/build/graphviz-2.16.1.p0/src'
make: *** [all] Error 2
Error building Graphviz

Any suggestions for getting this package built in this environment?  (Ultimately, I want to install pygraphviz, but that needs this package.)

Red Hat includes graphviz-2.26.0-10.

Thanks.

Reply all
Reply to author
Forward
0 new messages