Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002169graphvizBuild/Installpublic2011-12-09 11:062011-12-09 12:05
Assigned To 
PlatformLinuxOSRHELOS Version5.6
Summary0002169: undefined reference to `gts_object_is_from_class'
DescriptionHey there,

I am having trouble with the following build.

I cannot build from source.

./configure --enable-python27 LDFLAGS='-L/usr/local/lib' CFLAGS='-I/usr/local/include/python2.7'

make[3]: Entering directory `/home/pmcatalog/0.2.0/src/graphviz-2.28.0/cmd/dot'
  CC dot-dot.o
  CC dot-no_builtins.o
  CCLD dot
  CC dot_builtins-dot.o
  CC dot_builtins-dot_builtins.o
  CCLD dot_builtins
../../plugin/neato_layout/.libs/ undefined reference to `gts_object_is_from_class'
collect2: ld returned 1 exit status
make[3]: *** [dot_builtins] Error 1
make[3]: Leaving directory `/home/pmcatalog/0.2.0/src/graphviz-2.28.0/cmd/dot'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/pmcatalog/0.2.0/src/graphviz-2.28.0/cmd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pmcatalog/0.2.0/src/graphviz-2.28.0'
make: *** [all] Error 2
Additional Information
> wget [^]
> yum install --nogpgcheck gts-0.7.6-11.el5.i386.rpm
> wget [^]
> yum install --nogpgcheck gtkglext-libs-1.2.0-6.el5.i386.rpm
> wget [^]
> yum install --nogpgcheck gtkglarea2-1.99.0-8.el5.i386.rpm
> wget [^]
> yum install --nogpgcheck graphviz-2.28.0-1.el5.i386.rpm
> wget [^]
> yum install --nogpgcheck graphviz-gd-2.28.0-1.el5.i386.rpm
> wget [^]
> yum install --nogpgcheck graphviz-tcl-2.28.0-1.el5.i386.rpm
> wget [^]
> yum install --nogpgcheck webdot-2.26-1.el5.noarch.rpm
> wget [^]
> yum install --nogpgcheck graphviz-python-2.28.0-1.el5.i386.rpm

# Get the environment ready for rebuilding.

> wget [^]
> yum install --nogpgcheck gts-devel-0.7.6-11.el5.i386.rpm
> wget [^]
> yum install --nogpgcheck gtkglext-devel-1.2.0-6.el5.i386.rpm
> wget [^]
> yum install --nogpgcheck gtkglarea2-devel-1.99.0-8.el5.i386.rpm
> wget [^]
> yum install --nogpgcheck graphviz-devel-2.28.0-1.el5.i386.rpm

# Rebuild for python2.7

> yum install swig gd-devel libjpeg-devel libXpm-devel libXaw-devel freeglut-devel ghostscript-devel tcl-devel tk-devel
> wget [^]
> ./configure --enable-python27 LDFLAGS='-L/usr/local/lib' CFLAGS='-I/usr/local/include/python2.7'
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
User avatar (0000125)
ellson (administrator)
2011-12-09 11:38

Not sure whats going wrong, but why do you add:
      LDFLAGS='-L/usr/local/lib' CFLAGS='-I/usr/local/include/python2.7'

If you are installing in /usr/local (the default for manual builds, since you have no --prefix) then /usr/local is automatically in all searches.

Python includes are supposed to be obtained automatically from the pythong interpreter.

It sounds like /usr/lib/ is not being found. Either not installed, or the -L path is damaged?

To ensure you have all dependencies, you might want to try:
   rpmbuild --rebuild graphviz-2.28.0-1.el5.src.rpm
before working on your modified tree.
User avatar (0000126)
erg (administrator)
2011-12-09 11:48

I have encountered this before. If the GTS library is built with the
#define G_CAN_INLINE
then the function gts_object_is_from_class is never built because it is assumed it can always be provided as an inline function. If you then build with a compiler setting that doesn't allow inlining, your code will include references to a function gts_object_is_from_class that doesn't exist.
User avatar (0000127)
rh0dium (reporter)
2011-12-09 11:54

Hey erg and elision -

Thanks so much!! Can you please tell me how to implement this fix?
User avatar (0000128)
erg (administrator)
2011-12-09 12:05

John's suggestion that you are simply not getting libgts should certainly be checked first. If you are, then you need to track down why G_CAN_INLINE is not set. Normally, this is set in lib/glib-2.0/include/glibconfig.h

- Issue History
Date Modified Username Field Change
2011-12-09 11:06 rh0dium New Issue
2011-12-09 11:38 ellson Note Added: 0000125
2011-12-09 11:48 erg Note Added: 0000126
2011-12-09 11:54 rh0dium Note Added: 0000127
2011-12-09 12:05 erg Note Added: 0000128

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