Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147262 - libglademm-2.6.3 fails to compile
Summary: libglademm-2.6.3 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: GNOME C++ Bindings Maintainers (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 147373 147375 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-09-11 23:31 UTC by Michael Zeising
Modified: 2007-06-28 10:28 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libglademm-2.6.3-xml.cc.patch (libglademm-2.6.3-xml.cc.patch,653 bytes, patch)
2007-06-28 10:28 UTC, Thomas S. Howard
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Zeising 2006-09-11 23:31:08 UTC
Hi there!

libglademm 2.6.3 fails with:

i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"libglademm\" -I../../lib glade -I../../libglade -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/ usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I /usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6 - I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I /usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/ usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/inclu de/libpng12 -I/usr/include/atk-1.0 -I/usr/include/libglade-2.0 -I/usr/include/li bxml2 -march=athlon-xp -O2 -pipe -mmmx -m3dnow -msse -msse2 -mfpmath=sse -fomit- frame-pointer -MT init.lo -MD -MP -MF .deps/init.Tpo -c init.cc  -fPIC -DPIC -o .libs/init.o
xml.cc:145: Error: no method 
Comment 1 Michael Zeising 2006-09-11 23:31:08 UTC
Hi there!

libglademm 2.6.3 fails with:

i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"libglademm\" -I../../lib glade -I../../libglade -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/ usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I /usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6 - I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I /usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/ usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/inclu de/libpng12 -I/usr/include/atk-1.0 -I/usr/include/libglade-2.0 -I/usr/include/li bxml2 -march=athlon-xp -O2 -pipe -mmmx -m3dnow -msse -msse2 -mfpmath=sse -fomit- frame-pointer -MT init.lo -MD -MP -MF .deps/init.Tpo -c init.cc  -fPIC -DPIC -o .libs/init.o
xml.cc:145: Error: no method »GType Gnome::Glade::Xml_Class::lookup _type_vfunc_callback(GladeXML*, const char*)« defined in class »Gnome::Glade::Xml_Class «
make[4]: *** [xml.lo] Error 1

(I've translated the error message from german)


Here's my emerge --info:

Portage 2.1.1 (default-linux/x86/2005.1, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.4
Last Sync: Mon, 11 Sep 2006 22:00:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -mmmx -m3dnow -msse -msse2 -mfpmath=sse -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -O2 -pipe -mmmx -m3dnow -msse -msse2 -mfpmath=sse -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac acpi alsa apache2 apm asf avi berkdb bitmap-fonts bzip2 cairo cdr cli crypt dbus dlloader dri dts dvd dvdr dvi eds elibc_glibc emboss encode exif firefox foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal imlib input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog java jpeg jpeg2k kdehiddenvisibility kernel_linux libg++ libnotify libwww linguas_de lm_sensors logrotate mad mikmod mmap mmx mmxext mono motif moznocompose moznoirc mozsvg mp3 mpeg mysql nautilus ncurses nls nptl nptlonly ogg oggvorbis openal opengl oss pam pcre pdf pdflib perl png pppd python qt3 qt4 quicktime rar readline real reflection sdl session spell spl sse sse2 ssl svg tcpd threads tiff truetype truetype-fonts type1-fonts unicode usb userland_GNU userlocales v4l v4l2 vcd video_cards_nv video_cards_nvidia video_cards_v4l video_cards_vesa vorbis win32codecs wma wmf xine xml xml2 xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 Heinz Hombergs 2006-09-11 23:50:11 UTC
Same here.

My emerge --info:

Portage 2.1.1 (default-linux/x86/2006.0, gcc-3.4.6/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.4
Last Sync: Tue, 12 Sep 2006 01:30:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://mirror.switch.ch/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts audiofile avi berkdb bitmap-fonts cdparanoia cli crypt cups dlloader dri dvd dvdr eds elibc_glibc emboss encode esd foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imap imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog jpeg jpeg2k kde kernel_linux libg++ libwww linguas_de mad maildir mikmod mmx mmx2 motif mp3 mpeg mysql ncurses nls nptl nptlonly ogg opengl oss pam pam-mysql pcre pdflib perl png povray pppd python qt3 qt4 quicktime readline reflection sasl sdl session smime spell spl sqlite3 sse sse2 ssl tcpd truetype truetype-fonts type1-fonts udev userland_GNU video_cards_nv vorbis xml xmms xorg xscreensaver xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 John Boker 2006-09-12 01:03:26 UTC
me too

        then mv -f ".deps/init.Tpo" ".deps/init.Plo"; else rm -f ".deps/init.Tpo"; exit 1; fi
xml.cc:146: error: no `GType Gnome::Glade::Xml_Class::lookup_type_vfunc_callback(GladeXML*, const char*)' member function declared in class `Gnome::Glade::Xml_Class'
make[4]: *** [xml.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"libglademm\" -I../../libglade -I../../libglade -I/usr/include/gtkmm-2.4 -I/usr/lib64/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib64/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib64/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0 -I/usr/include/libglade-2.0 -I/usr/include/libxml2 -march=k8 -O2 -pipe -MT init.lo -MD -MP -MF .deps/init.Tpo -c init.cc  -fPIC -DPIC -o .libs/init.o
make[4]: Leaving directory `/var/tmp/portage/libglademm-2.6.3/work/libglademm-2.6.3/libglade/libglademm'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/libglademm-2.6.3/work/libglademm-2.6.3/libglade/libglademm'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/libglademm-2.6.3/work/libglademm-2.6.3/libglade'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/libglademm-2.6.3/work/libglademm-2.6.3/libglade'
make: *** [all-recursive] Error 1

!!! ERROR: dev-cpp/libglademm-2.6.3 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  libglademm-2.6.3.ebuild, line 38:   Called gnome2_src_compile
  gnome2.eclass, line 64:   Called die


emerge --info
Portage 2.1.1 (default-linux/amd64/2006.0, gcc-3.4.6/amd64-vanilla, glibc-2.4-r3, 2.6.17.13 x86_64)
=================================================================
System uname: 2.6.17.13 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.4
Last Sync: Tue, 12 Sep 2006 04:50:01 +0000
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS=" http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.mirrors.pair.com/ http://mirrors.acm.cs.rpi.edu/gentoo/ http://prometheus.cs.wmich.edu/gentoo http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.llarian.net/ http://gentoo.binarycompass.org http://mirror.datapipe.net/gentoo http://gentoo.cs.lewisu.edu/gentoo/ http://modzer0.cs.uaf.edu/public/gentoo/ http://mirror.phy.olemiss.edu/mirror/gentoo http://mirror.mcs.anl.gov/pub/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://mirror.clarkson.edu/pub/distributions/gentoo/"
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 X alsa apache2 audio audiofile avi berkdb bitmap-fonts cdr cli crypt cups dlloader dri dts dvd dvdr dvdread eds elibc_glibc emboss encode foomaticdb fortran freetype gdpcre geoip gif gnome gpm gstreamer gtk gtk2 hal imlib input_devices_joystick input_devices_keyboard input_devices_mouse ipv6 isdnlog java jit jpeg kde kernel_linux lzw lzw-tiff mad mono mp3 mpeg mysql ncurses nptl nptlonly opengl pam pcre pdflib perl php png pppd python qt3 qt4 quicktime readline reflection sdl server session spell spl ssl tcpd tiff truetype-fonts type1-fonts unicode usb userland_GNU video_cards_radeon xorg xpm xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Marijn Schouten (RETIRED) gentoo-dev 2006-09-12 08:28:13 UTC
fails for me too:

xml.cc:145: error: no 'GType Gnome::Glade::Xml_Class::lookup_type_vfunc_callback(GladeXML*, const char*)' member function declared in class 'Gnome::Glade::Xml_Class'

Portage 2.1.1 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.4
Last Sync: Tue, 12 Sep 2006 12:50:01 +0000
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -pipe -O2 -ggdb1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -pipe -O2 -ggdb1"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms splitdebug strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LC_ALL="nl_NL@euro.UTF-8"
LINGUAS="nl en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X Xaw3d a52 aac aalib acpi aim alsa artworkextra avi bash-completion berkdb bidi bitmap-fonts bzip2 canna cdr cjk cli crypt cups dbus dga directfb divx4linux dlloader dri dvd dvdr eds elibc_glibc emboss encode fbcon firefox foomaticdb fortran freewnn ftp gdbm gif ginac gnome gpm gstreamer gtk gtk2 gtkhtml guile hal hardened icq ieee1394 imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog jabber java javascript jpeg kde kdeenablefinal kernel_linux ldap libcaca libwww linguas_en linguas_nl lzw lzw-tiff mad mozilla mp3 mpeg mplayer msn mule ncurses nls nptl nptlonly offensive ogg opengl oscar pam pcre pdflib perl php png pppd python qt qt3 qt4 quicktime readline reflection sasl sdl session speex spell spl ssl svg tcpd theora tidy tiff truetype-fonts type1-fonts unicode usb userland_GNU v4l vcd video_cards_ati video_cards_fbdev video_cards_radeon video_cards_vesa videos vorbis wmf xine xmms xorg xpm xv xvid yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 John N. Laliberte (RETIRED) gentoo-dev 2006-09-12 08:36:20 UTC
somehow I missed this while masking stuff for 2.16.

masked now.

thanks for the info.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-09-12 13:56:08 UTC
*** Bug 147373 has been marked as a duplicate of this bug. ***
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-09-12 14:10:53 UTC
*** Bug 147375 has been marked as a duplicate of this bug. ***
Comment 8 Thomas S. Howard 2007-06-28 10:28:33 UTC
Created attachment 123291 [details, diff]
libglademm-2.6.3-xml.cc.patch

The problem is that the declaration is #ifdef'ed, but the function itself isn't.
Patch attached.