Awn

undefined reference to gdk_window_set_composited while compiling

Asked by cristian

Hello,

I'm having toubles while compiling awn on my redhat derived system (an internal IBM distribution based on RHEL 5.0).
Following your instruction (http://wiki.awn-project.org/InstallingFromSource) I've been able to dowload AWN through bazaar, run the autogen.sh script, but I've not been able to compile the whole package. This is the error I'm getting

[fc009368@lc4eb2342274353 awn]$ make
make all-recursive
make[1]: Entering directory `/home/fc009368/Desktop/awn'
Making all in libawn
make[2]: Entering directory `/home/fc009368/Desktop/awn/libawn'
make[2]: Circular stamp-awn-enum-types.h <- awn-enum-types.h dependency dropped.
make all-recursive
make[3]: Entering directory `/home/fc009368/Desktop/awn/libawn'
Making all in egg
make[4]: Entering directory `/home/fc009368/Desktop/awn/libawn/egg'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/fc009368/Desktop/awn/libawn/egg'
make[4]: Entering directory `/home/fc009368/Desktop/awn/libawn'
make[4]: Circular stamp-awn-enum-types.h <- awn-enum-types.h dependency dropped.
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/fc009368/Desktop/awn/libawn'
make[3]: Leaving directory `/home/fc009368/Desktop/awn/libawn'
make[2]: Leaving directory `/home/fc009368/Desktop/awn/libawn'
Making all in src
make[2]: Entering directory `/home/fc009368/Desktop/awn/src'
make all-am
make[3]: Entering directory `/home/fc009368/Desktop/awn/src'
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -fno-strict-aliasing -fmessage-length=0 -D_FORTIFY_SOURCE=2 -o awn awn-main.o awn-app.o awn-panel.o -L/lib -lwnck-1 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lXcomposite -lXfixes -lXrender -lX11 ../libawn/libawn.la -lm
gcc -g -O2 -Wall -fno-strict-aliasing -fmessage-length=0 -D_FORTIFY_SOURCE=2 -o .libs/awn awn-main.o awn-app.o awn-panel.o -L/lib -lwnck-1 -lXcomposite -lXfixes -lXrender -lX11 ../libawn/.libs/libawn.so -ldbus-glib-1 -ldbus-1 -lgnome-desktop-2 -lgnomeui-2 -lSM -lICE -lstartup-notification-1 -lbonoboui-2 -lgnome-keyring -lxml2 -lz -lgnomecanvas-2 -lart_lgpl_2 -lpangoft2-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgnome-2 -lpopt -lbonobo-2 -lbonobo-activation -lgnomevfs-2 -lgobject-2.0 -lgconf-2 -lORBit-2 -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 -lm -Wl,--rpath -Wl,/usr/local/lib
awn-panel.o: In function `awn_panel_add':
/home/fc009368/Desktop/awn/src/awn-panel.c:92: undefined reference to `gdk_window_set_composited'
collect2: ld returned 1 exit status
make[3]: *** [awn] Error 1
make[3]: Leaving directory `/home/fc009368/Desktop/awn/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/fc009368/Desktop/awn/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fc009368/Desktop/awn'
make: *** [all] Error 2

do you think I'm missing some libraries?

Thanks in advance
Cristian

Question information

Language:
English Edit question
Status:
Solved
For:
Awn Edit question
Assignee:
No assignee Edit question
Solved by:
moonbeam
Solved:
Last query:
Last reply:
Revision history for this message
cristian (cristian-bertoldi) said :
#1

these are the required dependencies installed on my system:

GConf2-2.14.0-9.el5
pygtk2-2.10.1-8.el5
libgnome-2.16.0-6.el5
gnome-desktop-devel-2.16.0-1.fc6
dbus-glib-devel-0.70-5
pycairo-devel-1.2.0-1.1
pygtk2-devel-2.10.1-8.el5
glib2-2.12.3-2.fc6
dbus-glib-0.70-5
pycairo-1.2.0-1.1
libgnome-devel-2.16.0-6.el5
libwnck-devel-2.16.0-4.fc6
gtk2-devel-2.10.4-19.el5
glib2-devel-2.12.3-2.fc6
libwnck-2.16.0-4.fc6
gnome-vfs2-2.16.2-4.el5
gnome-desktop-2.16.0-1.fc6
gnome-panel-2.16.1-6.el5
librsvg2-2.16.1-1.el5
gtk-doc-1.7-1.fc6
gtk2-2.10.4-19.el5
GConf2-devel-2.14.0-9.el5
gnome-vfs2-devel-2.16.2-4.el5
intltool-0.35.0-2

Revision history for this message
cristian (cristian-bertoldi) said :
#2

and these too...

gnome-python2-2.16.0-1.fc6
gnome-python2-desktop-2.16.0-1.fc6

Revision history for this message
moonbeam (rcryderman) said :
#3

It looks like work on the 0.4 milestone ( https://launchpad.net/awn/+milestone/0.4 ) has resulted in some GDK 2.12 features now being required to build awn from trunk. At this point it is unknown if this will be a permanent requirement or temporary... I'll try and get an answer to that question.

At this time it looks like there are two options. Either upgrade GDK (assuming it's <2.12) or my suggestion would be to use the 0.2.6 release of awn core ( https://launchpad.net/awn/+download )

Revision history for this message
cristian (cristian-bertoldi) said :
#4

I've tried the second option (build ver 0.2.6), but I'm having another error:

gcc -DHAVE_CONFIG_H -I. -I../.. -I/usr/include/python2.4 -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/pygtk-2.0 -I/usr/include/pycairo -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -pthread -DORBIT2=1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -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/freetype2 -I/usr/include/libpng12 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/gnome-desktop-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/startup-notification-1.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libxml2 -I/usr/include/gnome-vfs-module-2.0 -I../.. -I../../libawn -DHAVE_PYCAIRO -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -g -O2 -Wall -fno-strict-aliasing -fmessage-length=0 -D_FORTIFY_SOURCE=2 -MT awnmodule.lo -MD -MP -MF .deps/awnmodule.Tpo -c awnmodule.c -o awnmodule.o >/dev/null 2>&1
mv -f .deps/awnmodule.Tpo .deps/awnmodule.Plo
***INFO*** Generating awn.c from awn.defs
Traceback (most recent call last):
  File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1685, in ?
    sys.exit(main(sys.argv))
  File "/usr/share/pygtk/2.0/codegen/codegen.py", line 1634, in main
    ["override=", "prefix=", "register=", "outfilename=",
  File "/usr/lib/python2.4/getopt.py", line 89, in getopt
    opts, args = do_longs(opts, args[0][2:], longopts, args[1:])
  File "/usr/lib/python2.4/getopt.py", line 153, in do_longs
    has_arg, opt = long_has_args(opt, longopts)
  File "/usr/lib/python2.4/getopt.py", line 170, in long_has_args
    raise GetoptError('option --%s not recognized' % opt, opt)
getopt.GetoptError: option --py_ssize_t-clean not recognized
make[3]: *** [awn.c] Error 1
make[3]: Leaving directory `/home/fc009368/Desktop/avant-window-navigator-0.2.6/bindings/python'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/fc009368/Desktop/avant-window-navigator-0.2.6/bindings'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fc009368/Desktop/avant-window-navigator-0.2.6'
make: *** [all] Error 2

it looks to be a python error....

Revision history for this message
Best moonbeam (rcryderman) said :
#5

For reference I have confirmed the issue is as described. The required version for trunk should be bumped within the next few days.

Not sure about the python issue. Could you please file a bug for it.

Revision history for this message
Mark Lee (malept) said :
#6

I think that pygtk issue means that the version of pygtk is not sufficiently new enough.

Revision history for this message
cristian (cristian-bertoldi) said :
#7

Thanks moonbeam, that solved my question.