Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001150graphvizBuild/Installpublic2006-07-10 19:162011-04-28 04:03
ReporterDipesh Kamdar 
Assigned Toellson 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOther-Linux-7,2OS Version
Summary0001150: Build problem with graphviz
Description



 I am unable to install graphviz package on Linux RH 7.2 due to the following issue.
<CD>
/bin/sh ../../libtool --tag=CC --mode=compile /usr/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/freetype2 -I/home/dkamdar/pkgs/GVIZ/include -g -O2 -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math -MT gdft.lo -MD -MP -MF ".deps/gdft.Tpo" -c -o gdft.lo gdft.c; \
then mv -f ".deps/gdft.Tpo" ".deps/gdft.Plo"; else rm -f ".deps/gdft.Tpo"; exit 1; fi
 /usr/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/include/freetype2 -I/home/dkamdar/pkgs/GVIZ/include -g -O2 -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math -MT gdft.lo -MD -MP -MF .deps/gdft.Tpo -c gdft.c -fPIC -DPIC -o .libs/gdft.o
gdft.c:111:10: #include expects "FILENAME" or <FILENAME>
make[3]: *** [gdft.lo] Error 1



gdft.c Line 111 : #include FT_SIZES_H
</CD>



I am getting the following error after removing above line.



<CD>
cd .libs && rm -f libgvgd.la && ln -s ../libgvgd.la libgvgd.la)
/bin/sh ../../libtool --tag=CC --mode=link /usr/bin/gcc -g -O2 -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math -L/home/dkamdar/pkgs/GVIZ/lib -o annotate annotate.o ./libgvgd.la
/usr/bin/gcc -g -O2 -Wno-unknown-pragmas -Wstrict-prototypes -Wpointer-arith -Wall -ffast-math -o .libs/annotate annotate.o -L/home/dkamdar/pkgs/GVIZ/lib ./.libs/libgvgd.so /usr/lib/libfreetype.so -L/usr/lib /home/dkamdar/pkgs/GVIZ/lib/libfreetype.so /usr/lib/libjpeg.so -lpng -lz -lm -Wl,--rpath -Wl,/home/dkamdar/pkgs/GVIZ/lib/graphviz -Wl,--rpath -Wl,/home/dkamdar/pkgs/GVIZ/lib
./.libs/libgvgd.so: undefined reference to `FT_Activate_Size'
collect2: ld returned 1 exit status
</CD>



I have tried to build graphviz package by using freetype-2.1.3 and freetype-2,2.1 but no success.



I don't see -I/home/dkamdar/pkgs/FTYPE/include/freetype2 in above log.



Do i need to change anything in during configure run or am i missing anything?
Additional Information

[ellson] Configure failed to find your freetype installation for some reason.

Graphviz should work fine against the version of freetype-devel that came with the distribution. I build nightly
on RedHat-7.1 (freetype-2.0.1-4) and Redhat-7.3 (freetype-2.0.9-2) systems so I know no reason why Redhat-7.2 (freetype-2.0.3-7)
should be a problem.

[dkamdar] I am getting the following error during build.
<CD>
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../lib/gvc -I../../lib/common -I../../lib/graph -I../../lib/cdt -I../../lib/pathplan -I/home/dkamdar/pkgs/GVIZ/include -g -O2 -MT gv.lo -MD -MP -MF .deps/gv.Tpo -c gv.cpp -o gv.o >/dev/null 2>&1
c++ -perl -o gv_perl.cpp gv.i
c++: unrecognized option `-perl'
gv.i:17: syntax error before `%' token
gv.i:26: parse error before `#' token
gv.i:33: syntax error before `*' token
gv.i:191: conflicts with function declaration `void render(...)'
make[3]: [gv_perl.cpp] Error 1 (ignored)
if /bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../lib/gvc -I../../lib/common -I../../lib/graph -I../../lib/cdt -I../../lib/pathplan -I/home/dkamdar/pkgs/GVIZ/include -g -O2 -MT gv_perl.lo -MD -MP -MF ".deps/gv_perl.Tpo" -c -o gv_perl.lo gv_perl.cpp; \
then mv -f ".deps/gv_perl.Tpo" ".deps/gv_perl.Plo"; else rm -f ".deps/gv_perl.Tpo"; exit 1; fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../lib/gvc -I../../lib/common -I../../lib/graph -I../../lib/cdt -I../../lib/pathplan -I/home/dkamdar/pkgs/GVIZ/include -g -O2 -MT gv_perl.lo -MD -MP -MF .deps/gv_perl.Tpo -c gv_perl.cpp -fPIC -DPIC -o .libs/gv_perl.o
g++: gv_perl.cpp: No such file or directory
g++: no input files
make[3]: *** [gv_perl.lo] Error 1
make[3]: Leaving directory `/home/dkamdar/GVIZ/graphviz-2.8/tclpkg/gv'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/dkamdar/GVIZ/graphviz-2.8/tclpkg'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dkamdar/GVIZ/graphviz-2.8'
make: *** [all] Error 2
</CD>

[ellson] Not your fault, but the problem here is that you don't have swig installed. That line should have expanded to:
<CD>
   swig c++ -perl -o gv_perl.cpp gv.i
</CD>

 configure test for swig in graphviz 2.8 is inadequate. This has been fixed in the graphviz-2.9 development series.

[dkamdar] I do have swig package on my machine.

<CD>
lxdev8m0:/home/dkamdar/pkgs/GVIZ/sample>whereis swig
swig: /usr/bin/swig /usr/include/swig.h /usr/share/man/man1/swig.1.gz
lxdev8m0:/home/dkamdar/pkgs/GVIZ/sample>ls -ltr /usr/bin/swig
-rwxr-xr-x 1 root root 361484 Jan 24 2003 /usr/bin/swig
lxdev8m0:/home/dkamdar/pkgs/GVIZ/sample>
xdev8m0:/home/dkamdar/pkgs/GVIZ/sample>swig -version

SWIG Version 1.1 (Patch 5)
Copyright (c) 1995-98
University of Utah and the Regents of the University of California

Compiled with c++


It has -perl5 and -perl4 options not -perl.
Please see the below command.

xdev8m0:/home/dkamdar/pkgs/GVIZ/sample>swig -help
swig <options> filename

Target Language Options:
     -tcl - Generate Tcl wrappers.
     -tcl8 - Generate Tcl 8.0 wrappers.
     -python - Generate Python wrappers.
     -perl5 - Generate Perl5 wrappers.
     -perl4 - Generate Perl4 wrappers.
     -guile - Generate Guile wrappers.
     -debug - Parser debugging module.
</CD>

[ellson] OK, then please try adding: --disable-perl
to your ./configure line. This just disables the perl language binding to graphviz,
which wasn't particularly functional in graphviz-2.8 anyway.



TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID976
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed
VERSION     2.8
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