Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46766 - aiksaurus-1.0.1 failes to build with gtk 2.4
Summary: aiksaurus-1.0.1 failes to build with gtk 2.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 45747
  Show dependency tree
 
Reported: 2004-04-04 06:35 UTC by Kristiaan Lenaerts
Modified: 2004-06-22 17:49 UTC (History)
1 user (show)

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


Attachments
the diff for configure (gtk+-2.4-fix.patch,391 bytes, patch)
2004-04-04 06:38 UTC, Kristiaan Lenaerts
Details | Diff
fixed ebuild (aiksaurus-1.0.1-r1.ebuild,818 bytes, text/plain)
2004-04-07 02:16 UTC, Kristiaan Lenaerts
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kristiaan Lenaerts 2004-04-04 06:35:47 UTC
I tried to compile aiksaurus-1.0.1 with gtk 2.4, but the compile fails when building the gtk-front end: 

if /bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I..
/.. -I../../base   -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/incl
ude/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetyp
e2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DG_DISABLE_DEPRECATED 
-DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATE
D -DGNOME_DISABLE_DEPRECATED -march=athlon-mp -O2 -pipe -fomit-frame-pointer -MT
 Toolbar.lo -MD -MP -MF ".deps/Toolbar.Tpo" \
  -c -o Toolbar.lo `test -f 'Toolbar.cpp' || echo './'`Toolbar.cpp; \
then mv -f ".deps/Toolbar.Tpo" ".deps/Toolbar.Plo"; \
else rm -f ".deps/Toolbar.Tpo"; exit 1; \
fi
 g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../base -I/usr/include/gtk-2.0
 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/u
sr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/gli
b-2.0/include -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISAB
LE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -march=athlon-
mp -O2 -pipe -fomit-frame-pointer -MT Toolbar.lo -MD -MP -MF .deps/Toolbar.Tpo -
c Toolbar.cpp  -fPIC -DPIC -o .libs/Toolbar.o
Toolbar.cpp: In constructor `
   AiksaurusGTK_impl::Toolbar::Toolbar(AiksaurusGTK_impl::DialogMediator&, 
   GtkWidget*)':
Toolbar.cpp:59: error: `gtk_combo_new' undeclared (first use this function)
Toolbar.cpp:59: error: (Each undeclared identifier is reported only once for 
   each function it appears in.)
Toolbar.cpp:60: error: `GTK_COMBO' undeclared (first use this function)
Toolbar.cpp:60: error: `gtk_combo_set_use_arrows' undeclared (first use this 
   function)
Toolbar.cpp:61: error: `gtk_combo_disable_activate' undeclared (first use this 
   function)
Toolbar.cpp: In member function `void AiksaurusGTK_impl::Toolbar::search(const 
   char*)':
Toolbar.cpp:131: error: `GTK_COMBO' undeclared (first use this function)
Toolbar.cpp:133: error: `gtk_combo_set_popdown_strings' undeclared (first use 
   this function)
Toolbar.cpp: In member function `void AiksaurusGTK_impl::Toolbar::focus()':
Toolbar.cpp:143: error: `GTK_COMBO' undeclared (first use this function)
Toolbar.cpp: In member function `const char* 
   AiksaurusGTK_impl::Toolbar::getText() const':
Toolbar.cpp:148: error: `GTK_COMBO' undeclared (first use this function)
Toolbar.cpp: In static member function `static void 
   AiksaurusGTK_impl::Toolbar::_searchBarChanged(GtkWidget*, void*)':
Toolbar.cpp:198: error: `GTK_COMBO' undeclared (first use this function)
make[3]: *** [Toolbar.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/aiksaurus-1.0.1/work/aiksaurus-1.0.
1/gtk/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/aiksaurus-1.0.1/work/aiksaurus-1.0.
1/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/aiksaurus-1.0.1/work/aiksaurus-1.0.
1'
make: *** [all] Error 2

!!! ERROR: app-text/aiksaurus-1.0.1 failed.
!!! Function src_compile, Line 29, Exitcode 2
!!! (no error message)

They are using the (deprecated in 2.4) gtk_combo, but in the makefile they also specify -DGTK_DISABLE_DEPRECATED, so gtk_combo is not available. The quick fix is to omit the -D flag, I made a diff that does just that (patch for configure), but I'm not so well at making a patch that portage wants to apply, so I'll just attach the diff. After that it seems to work...

before I forget, my emerge info:
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6
-gentoo)
=================================================================
System uname: 2.6.4-gentoo i686 AMD Athlon(tm) MP 2600+
Gentoo Base System version 1.4.3.13p1
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-mp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3
hare/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/
ipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/conf
/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/contro
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-mp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ft
easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http:/
entoo.linux.no/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage/"
USE="3dnow S3TC X aalib acpi alsa apache2 apm avi berkdb bonobo cdr crypt cups
url dedicated dga doc dv dvd encode esd evo ffmpeg flac flash foomaticdb gd gd
 gif gnome gnomedb gphoto2 gpm gstreamer gtk gtk2 gtkhtml imagemagick imap iml
 java jikes jpeg junit libg++ libwww mad mikmod mmx motif mozcalendar mozilla 
znoirc mpeg ncurses nptl nvidia oci8 oggvorbis opengl pam pdflib perl plotutil
png ppd python quicktime readline samba sdl slang speex spell sse ssl svga tcl
 tcpd tetex tiff transcode truetype unicode usb videos wxwindows x86 xml xml2 
ms xv xvid zlib"
Comment 1 Kristiaan Lenaerts 2004-04-04 06:38:02 UTC
Created attachment 28679 [details, diff]
the diff for configure
Comment 2 Alastair Tse (RETIRED) gentoo-dev 2004-04-06 15:49:59 UTC

*** This bug has been marked as a duplicate of 45747 ***
Comment 3 Kristiaan Lenaerts 2004-04-07 02:16:20 UTC
Created attachment 28823 [details]
fixed ebuild

updated the ebuild to apply the patch, I'm not sure if there should be a
revision bump (if you have it compiled before, there is no reason to switch,
it's only a compile issue)
Comment 4 Daath 2004-04-09 11:05:25 UTC
If Kristiaan Lenaerts' updated ebuild works, can it be incorporated in portage? I'm having this problem too...

BTW why is it "Resolved - Duplicate" when the bug is still there?
Comment 5 Alastair Tse (RETIRED) gentoo-dev 2004-04-09 11:08:26 UTC
my mistake
Comment 6 Daath 2004-04-09 11:35:23 UTC
I just tried Kristiaan Lenaerts' ebuild.
It complains that $EPATCH_SOURCE doesn't exist, which is of course:

/usr/portage/app-text/aiksaurus/files/gtk+-2.4-fix.patch

So that doesn't work either, how do I get it to build? I need lyx :(
Comment 7 Kristiaan Lenaerts 2004-04-10 01:11:52 UTC
Are you sure you placed the patch (wrongly named "the diff for configure", my fault) in the rigth directory? The only way I can reproduce your problem is when I rename the patch to something else, or when there is no patch at all.

The reason I started this bug was for lyx too, you can always install aiksaurus-0.15 and go on from there, that worked fine over here.
Comment 8 Kristiaan Lenaerts 2004-04-21 02:55:06 UTC
Daath, does this patch work for you now? Over here, I have not a single problem, but if it doesn't work for you, and there is no extra info, the solution will never get into portage.

I'm marking this bug as blocking the GTK+-2.4 Tracking bug, mayby this will generate some more interest...
Comment 9 Yi Quang (RETIRED) gentoo-dev 2004-04-21 16:36:47 UTC
Thanks for your report, fixed in cvs.  Please test.  
Comment 10 Mark Gilbert 2004-06-22 17:49:03 UTC
1.2.1 released