Donate Share

StarDict

Tracker: Bugs

5 2.4.[23] won't compile against gtk 2.4 / gnome 2.6 - ID: 923835
Last Update: Settings changed ( huzheng )

here is the compilation error it gives me :

g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wall -DORBIT2=1
-pthread -I/usr/include/libgnomeui-2.0
-I/usr/include/libgnome-2.0
-I/usr/include/libgnomecanvas-2.0
-I/usr/include/gtk-2.0 -I/usr/include/libart-2.0
-I/usr/include/gconf/2 -I/usr/include/libbonoboui-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/gnome-vfs-2.0
-I/usr/lib/gnome-vfs-2.0/include
-I/usr/include/bonobo-activation-2.0
-I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/X11R6/include
-I/usr/include/libxml2 -DDATADIR=\""/usr/share"\"
-DGNOME_ICONDIR=\""/usr/share/pixmaps"\"
-DSTARDICT_LOCALEDIR=\""/usr/share/locale"\"
-DSTARDICT_DATA_DIR=\""/usr/share/stardict"\"
-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED
-DGTK_DISABLE_DEPRECATED
-DGDK_PIXBUF_DISABLE_DEPRECATED
-DGNOME_DISABLE_DEPRECATED -I/usr/X11R6/include
-march=athlon-xp -O3 -pipe
-fomit-frame-pointer -c -o mainwin.o `test -f
'mainwin.cpp' || echo './'`mainwin.cpp
In file included from stardict.h:27,
from stardict.cpp:35:
prefsdlg.h:42: error: `GtkOptionMenu' was not declared
in this scope
prefsdlg.h:42: error: `option_menu' was not declared in
this scope
prefsdlg.h:42: error: erreur d'analyse syntaxique
before `*' token
stardict.cpp: Dans static member function « static gboolean
AppCore::on_window_state_event(GtkWidget*,
GdkEventWindowState*, AppCore*)
»:
stardict.cpp:255: error: `GTK_COMBO' undeclared (first
use this function)
stardict.cpp:255: error: (Each undeclared identifier is
reported only once for
each function it appears in.)
stardict.cpp: Dans static member function « static gboolean
AppCore::vKeyPressReleaseCallback(GtkWidget*,
GdkEventKey*, AppCore*) »:
stardict.cpp:334: error: `GTK_COMBO' undeclared (first
use this function)
stardict.cpp: Dans member function « void
AppCore::TopWinEnterWord(const
gchar*) »:
stardict.cpp:1065: error: `GTK_COMBO' undeclared (first
use this function)
stardict.cpp: Dans member function « void
AppCore::ListClick(const gchar*) »:
stardict.cpp:1148: error: `GTK_COMBO' undeclared (first
use this function)
stardict.cpp: Dans function « gint
client_die_cb(GnomeClient*, void*) »:
stardict.cpp:1434: attention : no return statement in
function returning
non-void
stardict.cpp: Dans function « gint
save_yourself_cb(GnomeClient*, int,
GnomeRestartStyle, int, GnomeInteractStyle, int,
void*) »:
stardict.cpp:1457: error: `GTK_COMBO' undeclared (first
use this function)
In file included from stardict.h:27,
from mainwin.cpp:6:
prefsdlg.h:42: error: `GtkOptionMenu' was not declared
in this scope
prefsdlg.h:42: error: `option_menu' was not declared in
this scope
prefsdlg.h:42: error: erreur d'analyse syntaxique
before `*' token
make[3]: *** [stardict.o] Erreur 1
make[3]: *** Attente des tâches non terminées....
mainwin.cpp: Dans member function « void
TopWin::Create(GtkWidget*) »:
mainwin.cpp:71: error: `gtk_combo_new' undeclared
(first use this function)
mainwin.cpp:71: error: (Each undeclared identifier is
reported only once for
each function it appears in.)
mainwin.cpp:74: error: `GTK_COMBO' undeclared (first
use this function)
mainwin.cpp:74: error: `gtk_combo_set_case_sensitive'
undeclared (first use
this function)
mainwin.cpp:75: error: `gtk_combo_disable_activate'
undeclared (first use this
function)
mainwin.cpp:76: error: `gtk_combo_set_use_arrows'
undeclared (first use this
function)
mainwin.cpp: Dans static member function « static gboolean
TopWin::on_back_button_press(GtkWidget*,
GdkEventButton*, TopWin*) »:
mainwin.cpp:164: error: `GTK_COMBO' undeclared (first
use this function)
mainwin.cpp: Dans member function « void
TopWin::do_back() »:
mainwin.cpp:259: error: `GTK_COMBO' undeclared (first
use this function)
mainwin.cpp: Dans member function « void
TopWin::do_previous() »:
mainwin.cpp:316: error: `GTK_COMBO' undeclared (first
use this function)
mainwin.cpp: Dans member function « void
TopWin::do_next() »:
mainwin.cpp:384: error: `GTK_COMBO' undeclared (first
use this function)
mainwin.cpp: Dans member function « void
TopWin::SetText(const gchar*) »:
mainwin.cpp:586: error: `GTK_COMBO' undeclared (first
use this function)
mainwin.cpp: Dans member function « void
TopWin::SetText_without_notify(const
gchar*) »:
mainwin.cpp:597: error: `GTK_COMBO' undeclared (first
use this function)
mainwin.cpp: Dans member function « const gchar*
TopWin::GetText() »:
mainwin.cpp:603: error: `GTK_COMBO' undeclared (first
use this function)
mainwin.cpp: Dans member function « void
TopWin::GrabFocus() »:
mainwin.cpp:608: error: `GTK_COMBO' undeclared (first
use this function)
mainwin.cpp: Dans member function « void
TopWin::TextSelectAll() »:
mainwin.cpp:613: error: `GTK_COMBO' undeclared (first
use this function)
mainwin.cpp: Dans member function « gboolean
TopWin::TextSelected() »:
mainwin.cpp:618: error: `GTK_COMBO' undeclared (first
use this function)
mainwin.cpp: Dans member function « void
TopWin::InsertHisList(const gchar*)
»:
mainwin.cpp:662: error: `GTK_COMBO' undeclared (first
use this function)
mainwin.cpp:670: error: `gtk_combo_set_popdown_strings'
undeclared (first use
this function)
mainwin.cpp: Dans member function « void
TopWin::InsertBackList(const gchar*)
»:
mainwin.cpp:689: error: `GTK_COMBO' undeclared (first
use this function)
mainwin.cpp: Dans static member function « static void

BottomWin::on_internetsearch_menu_item_activate(GtkMenuItem*,
gchar*) »:
mainwin.cpp:1858: error: `GTK_COMBO' undeclared (first
use this function)
mainwin.cpp: Dans static member function « static void
BottomWin::InternetSearchCallback(GtkButton*,
BottomWin*) »:
mainwin.cpp:1896: error: `GTK_COMBO' undeclared (first
use this function)
make[3]: *** [mainwin.o] Erreur 1
make[3]: Leaving directory
`/usr/portage/tmp/portage/stardict-2.4.2/work/stardict-2.4.2/src'
make[2]: *** [all-recursive] Erreur 1
make[2]: Leaving directory
`/usr/portage/tmp/portage/stardict-2.4.2/work/stardict-2.4.2/src'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory
`/usr/portage/tmp/portage/stardict-2.4.2/work/stardict-2.4.2'
make: *** [all] Erreur 2

!!! ERROR: app-dicts/stardict-2.4.2 failed.
!!! Function gnome2_src_compile, Line 39, Exitcode 2
!!! compile failure


Nobody/Anonymous ( nobody ) - 2004-03-26 12:05

5

Closed

None

Nobody/Anonymous

None

None

Public


Comments ( 4 )




Date: 2004-10-30 22:59
Sender: plueschinger

Logged In: YES
user_id=1102125

I wrote a simple gtk2.2 to gtk2.4 migration.
It's no't perfect ,but it's O.K.
You will find it on the patch-side of stardict
Ideas and help wanted

Have a lot of fun
Thomas Plonka <pluesschinger@ussers.sf.net>


Date: 2004-06-09 03:53
Sender: llch

Logged In: YES
user_id=324946

Is there any plans to migrate it to 2.6?


Date: 2004-04-26 15:43
Sender: leroutierAccepting Donations

Logged In: YES
user_id=95082

it is because of the DISABLE_DEPRECATED directives

it is interpreted differently depending of your gtk version :

gtk 2.2 : something that was valid in 2.0 won't compile with
2.2 is no more in 2.2
gtk 2.4 : something that was valid in 2.0 & 2.2 is no more
in 2.4

so, there is 2 solutions :
1) not using DISABLE_DEPRECATED (works with 2.2 & 2.4)
2) changing the code to no more use deprecated calls (code
would be 2.4 only after this change)


Date: 2004-04-26 06:37
Sender: sdhays

Logged In: YES
user_id=1029203

I have the problem when compiling 2.4.3 on Mac OS X 10.3.3. I have
both Gnome 2.4 and 2.6 installed on my system. Stardict compiles fine
against 2.4, but I get the same error as the poster when trying to
compile against 2.6.


Log in to comment.




Attached File

No Files Currently Attached

Changes ( 2 )

Field Old Value Date By
status_id Open 2005-07-20 08:23 huzheng
close_date - 2005-07-20 08:23 huzheng