After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 526502 - compilation of dasher failed if './configure --without-cairo' is used
compilation of dasher failed if './configure --without-cairo' is used
Status: RESOLVED FIXED
Product: dasher
Classification: Applications
Component: general
4.7.x
Other All
: Normal normal
: ---
Assigned To: dasher-maint
dasher-maint
Depends on:
Blocks:
 
 
Reported: 2008-04-06 13:55 UTC by cedric.godin
Modified: 2008-04-06 22:24 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22



Description cedric.godin 2008-04-06 13:55:46 UTC
Please describe the problem:
Using gentoo, when i try to emerge dasher and have a USE flag -cairo the configure line is the following :
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-scrollkeeper --enable-a11y --enable-speech --without-cairo --with-gnome --build=i686-pc-linux-gnu
and gives the following results :

if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../..    -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2
.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/pixman-1   -DORBIT2=1 -pthread -I/u
sr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread -I/
usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DORBIT2=1 -pthread -I/usr/include/gnome-speech-1.0 -I/usr/
include/libbonobo-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/incl
ude/bonobo-activation-2.0   -DORBIT2=1 -pthread -I/usr/include/bonobo-activation-2.0 -I/usr/include/glib-2.0 -
I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/libgnomeui-2.0
 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-keyring-1 -I/usr/include/libgnome-2.0 -
I/usr/include/libbonoboui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/gnome-vf
s-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/gail-1.0
 -I/usr/include/freetype2 -I/usr/include/atk-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/includ
e/libpng12 -I/usr/include/pixman-1 -I/usr/include/at-spi-1.0   -I/usr/include/libglade-2.0 -I/usr/include/gtk-
2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/inclu
de/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpn
g12 -I/usr/include/pixman-1   -DORBIT2=1 -pthread -I/usr/include/libgnome-2.0 -I/usr/include/orbit-2.0 -I/usr/
include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/glib-2.0 -I/usr/l
ib/glib-2.0/include -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libgnomeu
i-2.0 -I/usr/include/libart-2.0 -I/usr/include/gnome-keyring-1 -I/usr/include/libbonoboui-2.0 -I/usr/include/l
ibgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/gail-1
.0 -I/usr/include/freetype2 -I/usr/include/atk-1.0 -I/usr/lib/gtk-2.0/include -I/usr/include/cairo -I/usr/incl
ude/libpng12 -I/usr/include/pixman-1     -I./../DasherCore -DPROGDATA=\"/usr/share/dasher\" -I../../intl -I../
../intl  -march=pentium4 -O2 -pipe -ggdb -Wall -Wno-non-virtual-dtor -MT Canvas.o -MD -MP -MF ".deps/Canvas.Tp
o" -c -o Canvas.o Canvas.cpp; \
        then mv -f ".deps/Canvas.Tpo" ".deps/Canvas.Po"; else rm -f ".deps/Canvas.Tpo"; exit 1; fi
../DasherCore/./SocketInputBase.h: In member function 'void Dasher::CSocketInputBase::SetCoordinateCount(int)'
:
../DasherCore/./SocketInputBase.h:54: warning: statement has no effect
./../DasherCore/DasherNode.h: In constructor 'Dasher::CDasherNode::CDasherNode(Dasher::CDasherNode*, int, int,
 Dasher::CDasherNode::SDisplayInfo*)':
./../DasherCore/DasherNode.h:282: warning: statement has no effect
./../DasherCore/DasherNode.h:283: warning: statement has no effect
Canvas.cpp: In destructor 'virtual CCanvas::~CCanvas()':
Canvas.cpp:91: error: 'cairo_colours' was not declared in this scope
make[3]: *** [Canvas.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-accessibility/dasher-4.7.0/work/dasher-4.7.0/Src/Gtk2'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-accessibility/dasher-4.7.0/work/dasher-4.7.0/Src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-accessibility/dasher-4.7.0/work/dasher-4.7.0'
make: *** [all] Error 2




Steps to reproduce:
1. ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-scrollkeeper --enable-a11y --enable-speech --without-cairo --with-gnome --build=i686-pc-linux-gnu
2. make
3. 


Actual results:
compilation error :
Canvas.cpp: In destructor 'virtual CCanvas::~CCanvas()':
Canvas.cpp:91: error: 'cairo_colours' was not declared in this scope


Expected results:
compiles fine

Does this happen every time?
yes

Other information:
when compiling with '--with-cairo', all is OK.
cairo 1.5.16 and cairomm 1.5.0 are installed.
Comment 1 Aaron Larson 2008-04-06 22:24:08 UTC
Thanks for the bug report.  This was resolved in trunk as of r3465 as per bug 490876 comment #4.