Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001010graphvizBuild/Installpublic2005-12-01 09:272011-04-28 04:03
ReporterNathan Oyler 
Assigned Toellson 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSx86-Linux-RHEL4OS Version
Summary0001010: Cannot compile from source on RHEL4
Description



./configure
make
<CD>
input.c: In function `dotneato_args_initialize':
input.c:317: error: structure has no member named `codegen'
make[3]: *** [input.lo] Error 1
make[3]: Leaving directory `/opt/graphviz-2.6/lib/common'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/graphviz-2.6/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/graphviz-2.6'
make: *** [all] Error 2






make clean
./configure --disable-codegens



gcc -g -O2 -Wno-unused-parameter -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math -o .libs/dot dot.o -L/usr/local/lib ../../lib/gvc/.libs/libgvc.so /opt/graphviz-2.6/lib/graph/.libs/libgraph.so /opt/graphviz-2.6/lib/cdt/.libs/libcdt.so /opt/graphviz-2.6/lib/pathplan/.libs/libpathplan.so /opt/graphviz-2.6/lib/gd/.libs/libgvgd.so -lm /usr/lib/libexpat.so -lz /usr/lib/libltdl.so -ldl -Wl,--rpath -Wl,/usr/local/lib/graphviz
../../lib/gvc/.libs/libgvc.so: undefined reference to `xdemitState'
../../lib/gvc/.libs/libgvc.so: undefined reference to `extend_attrs'
collect2: ld returned 1 exit status
make[3]: *** [dot] Error 1
make[3]: Leaving directory `/opt/graphviz-2.6/cmd/dot'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/graphviz-2.6/cmd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/graphviz-2.6'
make: *** [all] Error 2






rpm -qa | grep freetype
freetype-2.1.9-1
</CD>
Additional Information

[ellson] Don't --disable-codegens. They are still needed.

[noyler] Okay, then how can I correct the error when not using codegens?

[ellson] Currently codegens are required. Don't use the "--disable-codegens" switch.

I build regularly on fc4. Please check that you have a fully updated system, then
you should be able to build graphviz with just:
<CD>
   ./configure
   make
   make install
</CD>

Or from the src.rpm with:
<CD>
   rpmbuild --rebuild graphviz-2.6-1.src.rpm
</CD>

You might also want to try a recent snapshot from the graphviz-2.7 series
as it contains a number of fixes, althouth probably not for --disable-codegens.

[noyler] The error isn't with disable-codegens, I only tried it because it
referenced the error I originally get.

I don't want disable-codegens for any reason, I just thought it may
correct my first problem.

I have a fully updated rhel4 system. When I do ./configure it runs fine.
When I do make I get this error

<CD>
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I. -I.
./.. -I../.. -I../../lib/gvc -I../../lib/pack -I../../lib/fdpgen
-I../../lib/pa
thplan -I../../lib/graph -I../../lib/cdt -I../../lib/gd
-I/usr/local/include
 -g -O2 -Wno-unused-parameter -Wno-unknown-pragmas -Wstrict-prototypes
-Wpointer
-arith -Wall -ffast-math -MT input.lo -MD -MP -MF ".deps/input.Tpo" -c
-o input.
lo input.c; \
then mv -f ".deps/input.Tpo" ".deps/input.Plo"; else rm -f
".deps/input.Tpo"; ex
it 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../lib/gvc
-I../../lib/pack -I
../../lib/fdpgen -I../../lib/pathplan -I../../lib/graph -I../../lib/cdt
-I../../
lib/gd -I/usr/local/include -g -O2 -Wno-unused-parameter
-Wno-unknown-pragmas -W
strict-prototypes -Wpointer-arith -Wall -ffast-math -MT input.lo -MD -MP
-MF .de
ps/input.Tpo -c input.c -fPIC -DPIC -o .libs/input.o
input.c: In function `dotneato_args_initialize':
input.c:317: error: structure has no member named `codegen'
make[3]: *** [input.lo] Error 1
make[3]: Leaving directory `/opt/graphviz-2.6/lib/common'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/graphviz-2.6/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/graphviz-2.6'
</CD>

So I'd like to know what I may do to correct that, I can try the source
rpm if you think it will help, but I'd think I'd get the same error.

[ellson] There is a partial fix for this in graphviz-2.7, but the likely root-cause
is that configure is not finding a suitable freetype installation, which is a more serious
problem.

Do you have freetype-devel installed?

What warnings do you get from configure? (The one about internal gd is OK, and any warnings
about missing scripting languages are ok.)

Or send me your config.log if you like?

The src.rpm also codes the dependencies on the various -devel packages, so likely using rpmbuild
would make this problem clearer.

[noyler]I did not have freetype-devel installed. I installed, and now my errors
change.

These are the warnings first.

<CD>
[[email protected] graphviz-2.6]# ./configure | grep warning
configure: WARNING: X11 not available.
configure: WARNING: Unable to find header libguile.h. The Guile packages
will no
t be built
configure: WARNING: Unable to find header zend.h. The PHP packages will
not be b
uilt
configure: WARNING: Unable to find header tcl.h. The Tcl packages will
not be bu
ilt
configure: WARNING: No Tcl. The Tk packages will not be built either
configure: WARNING: Optional Xpm library not available
configure: WARNING: Optional Xaw library not available
configure: WARNING: No gdlib-config found.
configure: WARNING: Using internal libgd source.
Package fontconfig was not found in the pkg-config search path.
Perhaps you should add the directory containing `fontconfig.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fontconfig' found
configure: WARNING: Optional fontconfig library not available
configure: WARNING: Optional FONTCONFIG library not available - no
fontconfig/fo
ntconfig.h
configure: WARNING: Optional png library not available - no png.h
configure: WARNING: Optional jpeg library not available - no jpeglib.h
</CD>

Is it required to correct those?

Here is my current error

<CD>
gv_ruby.cpp: In function `void SWIG_Ruby_InitRuntime()':
gv_ruby.cpp:657: error: `VALUE' undeclared (first use this function)
gv_ruby.cpp:657: error: (Each undeclared identifier is reported only
once for e
ch function it appears in.)
gv_ruby.cpp:657: error: expected `;' before "pointer"
gv_ruby.cpp:659: error: `_mSWIG' undeclared (first use this function)
gv_ruby.cpp:659: error: `Qnil' undeclared (first use this function)
gv_ruby.cpp:660: error: `rb_define_module' undeclared (first use this
function)
gv_ruby.cpp:664: error: `pointer' undeclared (first use this function)
gv_ruby.cpp:664: error: `rb_gv_get' undeclared (first use this function)
gv_ruby.cpp:666: error: expected primary-expression before '*' token
gv_ruby.cpp:666: error: expected primary-expression before ',' token
gv_ruby.cpp:666: error: `Data_Get_Struct' undeclared (first use this
function)
gv_ruby.cpp:669: error: expected `;' before "cl"
gv_ruby.cpp:671: error: `swig_runtime_data_type_pointer' undeclared
(first use
his function)
gv_ruby.cpp:671: error: `cl' undeclared (first use this function)
gv_ruby.cpp:671: error: `Data_Wrap_Struct' undeclared (first use this
function)
gv_ruby.cpp:672: error: `rb_define_readonly_variable' undeclared (first
use thi
 function)
gv_ruby.cpp: In function `void SWIG_Ruby_define_class(swig_type_info*)':
gv_ruby.cpp:680: error: `VALUE' undeclared (first use this function)
gv_ruby.cpp:680: error: expected `;' before "klass"
gv_ruby.cpp:681: error: `malloc' undeclared (first use this function)
gv_ruby.cpp:682: error: `sprintf' undeclared (first use this function)
gv_ruby.cpp:683: error: `_cSWIG_Pointer' undeclared (first use this
function)
gv_ruby.cpp:683: error: `NIL_P' undeclared (first use this function)
gv_ruby.cpp:684: error: `_mSWIG' undeclared (first use this function)
gv_ruby.cpp:684: error: `rb_cObject' undeclared (first use this
function)
gv_ruby.cpp:684: error: `rb_define_class_under' undeclared (first use
this func
ion)
gv_ruby.cpp:685: error: `CLASS_OF' undeclared (first use this function)
gv_ruby.cpp:685: error: `rb_undef_method' undeclared (first use this
function)
gv_ruby.cpp:687: error: `klass' undeclared (first use this function)
gv_ruby.cpp:688: error: `free' undeclared (first use this function)
gv_ruby.cpp: At global scope:
gv_ruby.cpp:692: error: `VALUE' does not name a type
gv_ruby.cpp:718: error: `VALUE' does not name a type
gv_ruby.cpp:730: error: `SWIG_Ruby_MangleStr' declared as an `inline'
variable
gv_ruby.cpp:730: error: `VALUE' was not declared in this scope
gv_ruby.cpp:731: error: expected `,' or `;' before '{' token
gv_ruby.cpp:738: error: `VALUE' was not declared in this scope
gv_ruby.cpp:738: error: expected primary-expression before "void"
gv_ruby.cpp:738: error: expected primary-expression before '*' token
gv_ruby.cpp:738: error: `ty' was not declared in this scope
gv_ruby.cpp:738: error: expected primary-expression before "int"
gv_ruby.cpp:739: error: initializer expression list treated as compound
express
on
gv_ruby.cpp:739: error: expected `,' or `;' before '{' token
gv_ruby.cpp:780: error: `SWIG_Ruby_MustGetPtr' declared as an `inline'
variable
gv_ruby.cpp:780: error: `VALUE' was not declared in this scope
gv_ruby.cpp:780: error: expected primary-expression before '*' token
gv_ruby.cpp:780: error: `ty' was not declared in this scope
gv_ruby.cpp:780: error: expected primary-expression before "int"
gv_ruby.cpp:780: error: expected primary-expression before "int"
gv_ruby.cpp:781: error: initializer expression list treated as compound
express
on
gv_ruby.cpp:781: error: expected `,' or `;' before '{' token
gv_ruby.cpp:789: error: `SWIG_Ruby_CheckConvert' declared as an `inline'
variab
e
gv_ruby.cpp:789: error: `VALUE' was not declared in this scope
gv_ruby.cpp:789: error: expected primary-expression before '*' token
gv_ruby.cpp:789: error: `ty' was not declared in this scope
gv_ruby.cpp:790: error: initializer expression list treated as compound
express
on
gv_ruby.cpp:790: error: expected `,' or `;' before '{' token
gv_ruby.cpp:797: error: `VALUE' does not name a type
gv_ruby.cpp:810: error: variable or field `SWIG_Ruby_ConvertPacked'
declared vo
d
gv_ruby.cpp:810: error: `VALUE' was not declared in this scope
gv_ruby.cpp:810: error: expected primary-expression before "void"
gv_ruby.cpp:810: error: expected primary-expression before "int"
gv_ruby.cpp:810: error: expected primary-expression before '*' token
gv_ruby.cpp:810: error: `ty' was not declared in this scope
gv_ruby.cpp:810: error: expected primary-expression before "int"
gv_ruby.cpp:810: error: initializer expression list treated as compound
express
on
gv_ruby.cpp:810: error: expected `,' or `;' before '{' token
gv_ruby.cpp:859: error: `VALUE' does not name a type
gv_ruby.cpp:861: error: variable or field `SWIG_AsVal' declared void
gv_ruby.cpp:861: error: `VALUE' was not declared in this scope
gv_ruby.cpp:861: error: expected primary-expression before "int"
gv_ruby.cpp:862: error: initializer expression list treated as compound
express
on
gv_ruby.cpp:862: error: expected `,' or `;' before '{' token
In file included from ../../lib/common/types.h:20,
                 from ../../lib/gvc/gvc.h:20,
                 from gv_ruby.cpp:867:
/usr/include/stdio.h:332: error: `int sprintf(char*, const char*, ...)'
used pr
or to declaration
In file included from ../../lib/graph/graph.h:26,
                 from ../../lib/gvc/gvc.h:21,
                 from gv_ruby.cpp:867:
/usr/include/stdlib.h:584: error: `void* malloc(size_t)' used prior to
declarat
on
/usr/include/stdlib.h:597: error: `void free(void*)' used prior to
declaration
gv_ruby.cpp:957: error: `VALUE' does not name a type
gv_ruby.cpp:973: error: `VALUE' does not name a type
gv_ruby.cpp:989: error: `VALUE' does not name a type
gv_ruby.cpp:1005: error: `VALUE' does not name a type
gv_ruby.cpp:1021: error: `VALUE' does not name a type
gv_ruby.cpp:1037: error: `VALUE' does not name a type
gv_ruby.cpp:1053: error: `VALUE' does not name a type
gv_ruby.cpp:1069: error: `VALUE' does not name a type
gv_ruby.cpp:1103: error: `VALUE' does not name a type
gv_ruby.cpp:1121: error: `VALUE' does not name a type
gv_ruby.cpp:1160: error: `VALUE' does not name a type
gv_ruby.cpp:1178: error: `VALUE' does not name a type
gv_ruby.cpp:1196: error: `VALUE' does not name a type
gv_ruby.cpp:1214: error: `VALUE' does not name a type
gv_ruby.cpp:1232: error: `VALUE' does not name a type
gv_ruby.cpp:1252: error: `VALUE' does not name a type
gv_ruby.cpp:1333: error: `VALUE' does not name a type
gv_ruby.cpp:1353: error: `VALUE' does not name a type
gv_ruby.cpp:1375: error: `VALUE' does not name a type
gv_ruby.cpp:1395: error: `VALUE' does not name a type
gv_ruby.cpp:1415: error: `VALUE' does not name a type
gv_ruby.cpp:1435: error: `VALUE' does not name a type
gv_ruby.cpp:1457: error: `VALUE' does not name a type
gv_ruby.cpp:1477: error: `VALUE' does not name a type
gv_ruby.cpp:1497: error: `VALUE' does not name a type
gv_ruby.cpp:1686: error: `VALUE' does not name a type
gv_ruby.cpp:1704: error: `VALUE' does not name a type
gv_ruby.cpp:1724: error: `VALUE' does not name a type
gv_ruby.cpp:1742: error: `VALUE' does not name a type
gv_ruby.cpp:1760: error: `VALUE' does not name a type
gv_ruby.cpp:1778: error: `VALUE' does not name a type
gv_ruby.cpp:1798: error: `VALUE' does not name a type
gv_ruby.cpp:1816: error: `VALUE' does not name a type
gv_ruby.cpp:1834: error: `VALUE' does not name a type
gv_ruby.cpp:1983: error: `VALUE' does not name a type
gv_ruby.cpp:1999: error: `VALUE' does not name a type
gv_ruby.cpp:2015: error: `VALUE' does not name a type
gv_ruby.cpp:2031: error: `VALUE' does not name a type
gv_ruby.cpp:2076: error: `VALUE' does not name a type
gv_ruby.cpp:2094: error: `VALUE' does not name a type
gv_ruby.cpp:2112: error: `VALUE' does not name a type
gv_ruby.cpp:2130: error: `VALUE' does not name a type
gv_ruby.cpp:2148: error: `VALUE' does not name a type
gv_ruby.cpp:2166: error: `VALUE' does not name a type
gv_ruby.cpp:2184: error: `VALUE' does not name a type
gv_ruby.cpp:2244: error: `VALUE' does not name a type
gv_ruby.cpp:2260: error: `VALUE' does not name a type
gv_ruby.cpp:2276: error: `VALUE' does not name a type
gv_ruby.cpp:2292: error: `VALUE' does not name a type
gv_ruby.cpp:2308: error: `VALUE' does not name a type
gv_ruby.cpp:2324: error: `VALUE' does not name a type
gv_ruby.cpp:2369: error: `VALUE' does not name a type
gv_ruby.cpp:2385: error: `VALUE' does not name a type
gv_ruby.cpp:2401: error: `VALUE' does not name a type
gv_ruby.cpp:2417: error: `VALUE' does not name a type
gv_ruby.cpp:2433: error: `VALUE' does not name a type
gv_ruby.cpp:2449: error: `VALUE' does not name a type
gv_ruby.cpp:2504: error: `VALUE' does not name a type
gv_ruby.cpp:2520: error: `VALUE' does not name a type
gv_ruby.cpp:2538: error: `VALUE' does not name a type
gv_ruby.cpp:2554: error: `VALUE' does not name a type
gv_ruby.cpp:2572: error: `VALUE' does not name a type
gv_ruby.cpp:2588: error: `VALUE' does not name a type
gv_ruby.cpp:2606: error: `VALUE' does not name a type
gv_ruby.cpp:2622: error: `VALUE' does not name a type
gv_ruby.cpp:2640: error: `VALUE' does not name a type
gv_ruby.cpp:2656: error: `VALUE' does not name a type
gv_ruby.cpp:2691: error: `VALUE' does not name a type
gv_ruby.cpp:2709: error: `VALUE' does not name a type
gv_ruby.cpp:2756: error: `VALUE' does not name a type
gv_ruby.cpp:2772: error: `VALUE' does not name a type
gv_ruby.cpp:2807: error: `VALUE' does not name a type
gv_ruby.cpp:2825: error: `VALUE' does not name a type
gv_ruby.cpp:2872: error: `VALUE' does not name a type
gv_ruby.cpp:2888: error: `VALUE' does not name a type
gv_ruby.cpp:2906: error: `VALUE' does not name a type
gv_ruby.cpp:2922: error: `VALUE' does not name a type
gv_ruby.cpp:2940: error: `VALUE' does not name a type
gv_ruby.cpp:2956: error: `VALUE' does not name a type
gv_ruby.cpp:2991: error: `VALUE' does not name a type
gv_ruby.cpp:3009: error: `VALUE' does not name a type
gv_ruby.cpp:3056: error: `VALUE' does not name a type
gv_ruby.cpp:3072: error: `VALUE' does not name a type
gv_ruby.cpp:3090: error: `VALUE' does not name a type
gv_ruby.cpp:3106: error: `VALUE' does not name a type
gv_ruby.cpp:3124: error: `VALUE' does not name a type
gv_ruby.cpp:3140: error: `VALUE' does not name a type
gv_ruby.cpp:3175: error: `VALUE' does not name a type
gv_ruby.cpp:3193: error: `VALUE' does not name a type
gv_ruby.cpp:3240: error: `VALUE' does not name a type
gv_ruby.cpp:3256: error: `VALUE' does not name a type
gv_ruby.cpp:3274: error: `VALUE' does not name a type
gv_ruby.cpp:3292: error: `VALUE' does not name a type
gv_ruby.cpp:3312: error: `VALUE' does not name a type
gv_ruby.cpp:3328: error: `VALUE' does not name a type
gv_ruby.cpp:3346: error: `VALUE' does not name a type
gv_ruby.cpp:3362: error: `VALUE' does not name a type
gv_ruby.cpp:3422: error: `VALUE' does not name a type
gv_ruby.cpp:3440: error: `VALUE' does not name a type
gv_ruby.cpp:3524: error: `VALUE' does not name a type
gv_ruby.cpp:3537: error: `VALUE' does not name a type
gv_ruby.cpp:3550: error: `VALUE' does not name a type
gv_ruby.cpp:3563: error: `VALUE' does not name a type
gv_ruby.cpp:3608: error: `VALUE' does not name a type
gv_ruby.cpp:3623: error: `VALUE' does not name a type
gv_ruby.cpp:3638: error: `VALUE' does not name a type
gv_ruby.cpp:3655: error: `VALUE' does not name a type
gv_ruby.cpp:3672: error: `VALUE' does not name a type
gv_ruby.cpp:3689: error: `VALUE' does not name a type
gv_ruby.cpp: In function `void Init_gv()':
gv_ruby.cpp:3814: error: `mGv' undeclared (first use this function)
gv_ruby.cpp:3814: error: `rb_define_module' undeclared (first use this
function

gv_ruby.cpp:3821: error: expected primary-expression before ')' token
gv_ruby.cpp:3821: error: `VALUE' undeclared (first use this function)
gv_ruby.cpp:3821: error: expected `)' before "_wrap_digraph"
gv_ruby.cpp:3822: error: expected primary-expression before ')' token
gv_ruby.cpp:3822: error: expected `)' before "_wrap_strictgraph"
gv_ruby.cpp:3823: error: expected primary-expression before ')' token
gv_ruby.cpp:3823: error: expected `)' before "_wrap_strictdigraph"
gv_ruby.cpp:3824: error: expected primary-expression before ')' token
gv_ruby.cpp:3824: error: expected `)' before "_wrap_readstring"
gv_ruby.cpp:3825: error: expected primary-expression before ')' token
gv_ruby.cpp:3825: error: expected `)' before "_wrap_read"
gv_ruby.cpp:3826: error: expected primary-expression before ')' token
gv_ruby.cpp:3826: error: expected `)' before "_wrap_graph"
gv_ruby.cpp:3827: error: expected primary-expression before ')' token
gv_ruby.cpp:3827: error: expected `)' before "_wrap_node"
gv_ruby.cpp:3828: error: expected primary-expression before ')' token
gv_ruby.cpp:3828: error: expected `)' before "_wrap_edge"
gv_ruby.cpp:3829: error: expected primary-expression before ')' token
gv_ruby.cpp:3829: error: expected `)' before "_wrap_setv"
gv_ruby.cpp:3830: error: expected primary-expression before ')' token
gv_ruby.cpp:3830: error: expected `)' before "_wrap_getv"
gv_ruby.cpp:3831: error: expected primary-expression before ')' token
gv_ruby.cpp:3831: error: expected `)' before "_wrap_nameof"
gv_ruby.cpp:3832: error: expected primary-expression before ')' token
gv_ruby.cpp:3832: error: expected `)' before "_wrap_findsubg"
gv_ruby.cpp:3833: error: expected primary-expression before ')' token
gv_ruby.cpp:3833: error: expected `)' before "_wrap_findnode"
gv_ruby.cpp:3834: error: expected primary-expression before ')' token
gv_ruby.cpp:3834: error: expected `)' before "_wrap_findedge"
gv_ruby.cpp:3835: error: expected primary-expression before ')' token
gv_ruby.cpp:3835: error: expected `)' before "_wrap_findattr"
gv_ruby.cpp:3836: error: expected primary-expression before ')' token
gv_ruby.cpp:3836: error: expected `)' before "_wrap_headof"
gv_ruby.cpp:3837: error: expected primary-expression before ')' token
gv_ruby.cpp:3837: error: expected `)' before "_wrap_tailof"
gv_ruby.cpp:3838: error: expected primary-expression before ')' token
gv_ruby.cpp:3838: error: expected `)' before "_wrap_graphof"
gv_ruby.cpp:3839: error: expected primary-expression before ')' token
gv_ruby.cpp:3839: error: expected `)' before "_wrap_rootof"
gv_ruby.cpp:3840: error: expected primary-expression before ')' token
gv_ruby.cpp:3840: error: expected `)' before "_wrap_ok"
gv_ruby.cpp:3841: error: expected primary-expression before ')' token
gv_ruby.cpp:3841: error: expected `)' before "_wrap_firstsubg"
gv_ruby.cpp:3842: error: expected primary-expression before ')' token
gv_ruby.cpp:3842: error: expected `)' before "_wrap_nextsubg"
gv_ruby.cpp:3843: error: expected primary-expression before ')' token
gv_ruby.cpp:3843: error: expected `)' before "_wrap_firstsupg"
gv_ruby.cpp:3844: error: expected primary-expression before ')' token
gv_ruby.cpp:3844: error: expected `)' before "_wrap_nextsupg"
gv_ruby.cpp:3845: error: expected primary-expression before ')' token
gv_ruby.cpp:3845: error: expected `)' before "_wrap_firstedge"
gv_ruby.cpp:3846: error: expected primary-expression before ')' token
gv_ruby.cpp:3846: error: expected `)' before "_wrap_nextedge"
gv_ruby.cpp:3847: error: expected primary-expression before ')' token
gv_ruby.cpp:3847: error: expected `)' before "_wrap_firstout"
gv_ruby.cpp:3848: error: expected primary-expression before ')' token
gv_ruby.cpp:3848: error: expected `)' before "_wrap_nextout"
gv_ruby.cpp:3849: error: expected primary-expression before ')' token
gv_ruby.cpp:3849: error: expected `)' before "_wrap_firsthead"
gv_ruby.cpp:3850: error: expected primary-expression before ')' token
gv_ruby.cpp:3850: error: expected `)' before "_wrap_nexthead"
gv_ruby.cpp:3851: error: expected primary-expression before ')' token
gv_ruby.cpp:3851: error: expected `)' before "_wrap_firstin"
gv_ruby.cpp:3852: error: expected primary-expression before ')' token
gv_ruby.cpp:3852: error: expected `)' before "_wrap_nextin"
gv_ruby.cpp:3853: error: expected primary-expression before ')' token
gv_ruby.cpp:3853: error: expected `)' before "_wrap_firsttail"
gv_ruby.cpp:3854: error: expected primary-expression before ')' token
gv_ruby.cpp:3854: error: expected `)' before "_wrap_nexttail"
gv_ruby.cpp:3855: error: expected primary-expression before ')' token
gv_ruby.cpp:3855: error: expected `)' before "_wrap_firstnode"
gv_ruby.cpp:3856: error: expected primary-expression before ')' token
gv_ruby.cpp:3856: error: expected `)' before "_wrap_nextnode"
gv_ruby.cpp:3857: error: expected primary-expression before ')' token
gv_ruby.cpp:3857: error: expected `)' before "_wrap_firstattr"
gv_ruby.cpp:3858: error: expected primary-expression before ')' token
gv_ruby.cpp:3858: error: expected `)' before "_wrap_nextattr"
gv_ruby.cpp:3859: error: expected primary-expression before ')' token
gv_ruby.cpp:3859: error: expected `)' before "_wrap_rm"
gv_ruby.cpp:3860: error: expected primary-expression before ')' token
gv_ruby.cpp:3860: error: expected `)' before "_wrap_layout"
gv_ruby.cpp:3861: error: expected primary-expression before ')' token
gv_ruby.cpp:3861: error: expected `)' before "_wrap_render"
make[3]: *** [gv_ruby.lo] Error 1
make[3]: Leaving directory `/opt/graphviz-2.6/tclpkg/gv'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/graphviz-2.6/tclpkg'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/graphviz-2.6'
make: *** [all] Error 2
</CD>

[ellson]
<CD>
> I did not have freetype-devel installed. I installed, and now my errors
> change.
>
> These are the warnings first.
>
> [[email protected] graphviz-2.6]# ./configure | grep warning
> configure: WARNING: X11 not available.
>

xorg-x11-devel

> configure: WARNING: Unable to find header libguile.h. The Guile packages
> will no
> t be built
>

guile-devel-1.6.7-2
guile-1.6.7-2

> configure: WARNING: Unable to find header zend.h. The PHP packages will
> not be b
> uilt
>

php

> configure: WARNING: Unable to find header tcl.h. The Tcl packages will
> not be bu
> ilt
> configure: WARNING: No Tcl. The Tk packages will not be built either
>

tcl
tcl-devel
tk
tk-devel

> configure: WARNING: Optional Xpm library not available
> configure: WARNING: Optional Xaw library not available
>

xorg-x11-libs
xorg-x11-devel

> configure: WARNING: No gdlib-config found.
> configure: WARNING: Using internal libgd source.
> Package fontconfig was not found in the pkg-config search path.
> Perhaps you should add the directory containing `fontconfig.pc'
> to the PKG_CONFIG_PATH environment variable
> No package 'fontconfig' found
> configure: WARNING: Optional fontconfig library not available
> configure: WARNING: Optional FONTCONFIG library not available - no
> fontconfig/fo
> ntconfig.h
>

fontconfig
fonconfig-devel

> configure: WARNING: Optional png library not available - no png.h
>

libpng
libpng-devel
libpng10
libpng10-devel

> configure: WARNING: Optional jpeg library not available - no jpeglib.h
>

libjpeg
libjpeg-devel

> Is it required to correct those?

Not strictly all of them, but probably easiest if we correct all.
You may just be missing the -devel packages.

>
>
> Here is my current error
>
> gv_ruby.cpp: In function `void SWIG_Ruby_InitRuntime()':
> gv_ruby.cpp:657: error: `VALUE' undeclared (first use this function)
> gv_ruby.cpp:657: error: (Each undeclared identifier is reported only
> once for e
> ch function it appears in.)
>

This doesn't seem very well behaved, but I suspect that you need:

ruby
ruby-devel

And perhaps:

swig
</CD>

[noyler] I installed all of those, plus gd-devel

Now I'm getting
<CD>
make[3]: Entering directory `/opt/graphviz-2.6/contrib/diffimg'
/bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2
-Wno-unused-parameter -Wn
o-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math
-L/usr/
local/lib -o diffimg diffimg.o ../../lib/gd/libgvgd.la
gcc -g -O2 -Wno-unused-parameter -Wno-unknown-pragmas
-Wstrict-prototypes -Wpoin
ter-arith -Wall -ffast-math -o .libs/diffimg diffimg.o -L/usr/local/lib
../../l
ib/gd/.libs/libgvgd.so -lfontconfig /usr/lib/libfreetype.so -lpng -lz
-lm -Wl,--
rpath -Wl,/usr/local/lib/graphviz
diffimg.o(.text+0x26d): In function `imageLoad':
/opt/graphviz-2.6/contrib/diffimg/diffimg.c:100: undefined reference to
`gdImage
CreateFromJpeg'
collect2: ld returned 1 exit status
make[3]: *** [diffimg] Error 1
make[3]: Leaving directory `/opt/graphviz-2.6/contrib/diffimg'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/graphviz-2.6/contrib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/graphviz-2.6'
make: *** [all] Error 2
</CD>


I appreciate all of the help, but I wonder if there are documents I may
have missed that explains some of the requirements?
These are all fc4-core packages. Just not installed by default.

[ellson] I think you still missing libjpeg or libjpeg-devel ?

This missing conditional causing teh compile error if libjpeg is missing
has been fixed since 2.6. You are building from source, is there some reason
that you are not building the latest graphviz-2.7 snapshot?

Basically, on Fedora systems, dependencies are coded in the graphviz.spec file,
but that doesn't help you much if you build from tar.gz

There are some build notes at:
   http://www.graphviz.org/doc/build.html [^]

[noyler]
Excuse me, I had missed a package on the last go round. It works now,
thank you for all of your help.

TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID831
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed
VERSION     2.6
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => user695


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker