Portál AbcLinuxu, 10. listopadu 2025 21:45
Slackware 10.0 Jádro 2.4.26 gcc version 4.0.1
gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../.. -I../../../gdk -I../../../gdk
-DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED
-pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0
-I/usr/include/cairo -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/libpng12
-I/usr/include/atk-1.0 -g -O2 -Wall -MT pixbuf-draw.lo -MD -MP -MF .deps/pixbuf-draw.Tpo -c pixbuf-draw.c
-fPIC -DPIC -o .libs/pixbuf-draw.o
In file included from ../../../gtk/gtk.h:60,
from pixbuf.h:23,
from pixbuf-draw.c:28:
../../../gtk/gtkclist.h:155: error: syntax error before ‘GMemChunk’
../../../gtk/gtkclist.h:155: warning: no semicolon at end of struct or union
../../../gtk/gtkclist.h:156: warning: type defaults to ‘int’ in declaration of ‘cell_mem_chunk’
../../../gtk/gtkclist.h:156: warning: data definition has no type or storage class
../../../gtk/gtkclist.h:245: error: syntax error before ‘}’ token
In file included from ../../../gtk/gtk.h:68,
from pixbuf.h:23,
from pixbuf-draw.c:28:
../../../gtk/gtkctree.h:110: error: field ‘clist’ has incomplete type
In file included from ../../../gtk/gtk.h:152,
from pixbuf.h:23,
from pixbuf-draw.c:28:
../../../gtk/gtkstatusbar.h:68: error: syntax error before ‘GMemChunk’
../../../gtk/gtkstatusbar.h:68: warning: no semicolon at end of struct or union
../../../gtk/gtkstatusbar.h:82: error: syntax error before ‘}’ token
make[4]: *** [pixbuf-draw.lo] Error 1
make[4]: Leaving directory `/root/gtk+-2.8.6/gtk+-2.8.6/modules/engines/pixbuf'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/gtk+-2.8.6/gtk+-2.8.6/modules/engines'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/gtk+-2.8.6/gtk+-2.8.6/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/gtk+-2.8.6/gtk+-2.8.6'
make: *** [all] Error 2
./configure --with-xinput=yes --prefix=/usr
Takže opravdu to chtělo nejnovější GTK+ (a tomu potom ještě bylo potřeba podstrčit nejnovější ATK). Jen pořád nechápu jak nekompatibilitou zdrojů může vzniknout syntax error. No ale běží to... Díky!
../../../gtk/gtkclist.h:155: error: syntax error before ‘GMemChunk’
148: struct _GtkCList
149: {
150: GtkContainer container;
151:
152: guint16 flags;
153:
154: /* mem chunks */
155: GMemChunk *row_mem_chunk;
156: GMemChunk *cell_mem_chunk;
157:
158: guint freeze_count;
159:
160: /* allocation rectangle after the conatiner_border_width
161: * and the width of the shadow border */
162: GdkRectangle internal_allocation;
...
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.