GNOME Bugzilla – Bug 318045
GAP should use GThread instead of pthreads
Last modified: 2005-10-24 05:13:15 UTC
if i586-pc-mingw32-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../gap -I/opt/gtk/2. 4/include/glib-2.0 -I/opt/gtk/2.4/lib/glib-2.0/include -I/opt/gtk/2.4/include/ gtk-2.0 -I/opt/gtk/2.4/lib/gtk-2.0/include -I/opt/gtk/2.4/include/atk-1.0 -I/ opt/gtk/2.4/include/pango-1.0 -I/win32/gimp/2.2.8/include/gimp-2.0 -I../ libgapvidapi -I/dev/fs/O/SFU/home/ender/gimp/gimp-gap-2.2.0/extern_libs/ffmpeg/ libavcodec -I/dev/fs/O/SFU/home/ender/gimp/gimp-gap-2.2.0/extern_libs/ffmpeg/ libavformat -I/dev/fs/O/SFU/home/ender/gimp/gimp-gap-2.2.0/extern_libs/ffmpeg/ libavutil -I/win32/gimp/2.2.8/include -DLOCALEDIR=\""/win32/gimp/2.2.8/share/ locale"\" -I/opt/gtk/2.4/include -DXPM_NO_X -DG_DISABLE_DEPRECATED - DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGIMP_DISABLE_DEPRECATED -march=i586 -mtune=athlon- xp -mtune=pentium4 -O2 -fomit-frame-pointer -pipe -mms-bitfields -Wall -MT gap_gve_sox.o -MD -MP -MF ".deps/gap_gve_sox.Tpo" -c -o gap_gve_sox.o gap_gve_sox.c; \ then mv -f ".deps/gap_gve_sox.Tpo" ".deps/gap_gve_sox.Po"; else rm -f ".deps/ gap_gve_sox.Tpo"; exit 1; fi In file included from gap_gve_sox.h:32, from gap_gve_sox.c:23: gap_gvetypes.h:134: error: syntax error before "pthread_t" gap_gvetypes.h:134: warning: no semicolon at end of struct or union gap_gvetypes.h:143: error: syntax error before '}' token gap_gvetypes.h:143: warning: type defaults to `int' in declaration of `GapGveCommonValues' gap_gvetypes.h:143: warning: data definition has no type or storage class In file included from gap_gve_sox.c:23: gap_gve_sox.h:34: error: syntax error before '*' token gap_gve_sox.h:35: error: syntax error before '*' token gap_gve_sox.h:36: error: syntax error before '*' token gap_gve_sox.h:37: error: syntax error before '*' token gap_gve_sox.c:35: error: syntax error before '*' token gap_gve_sox.c: In function `gap_gve_sox_init_default': gap_gve_sox.c:37: error: `cval' undeclared (first use in this function) gap_gve_sox.c:37: error: (Each undeclared identifier is reported only once gap_gve_sox.c:37: error: for each function it appears in.) gap_gve_sox.c: At top level: gap_gve_sox.c:48: error: syntax error before '*' token gap_gve_sox.c: In function `gap_gve_sox_save_config': gap_gve_sox.c:50: error: `cval' undeclared (first use in this function) gap_gve_sox.c: At top level: gap_gve_sox.c:59: error: syntax error before '*' token gap_gve_sox.c: In function `gap_gve_sox_init_config': gap_gve_sox.c:63: error: `cval' undeclared (first use in this function) gap_gve_sox.c: At top level: gap_gve_sox.c:126: error: syntax error before '*' token gap_gve_sox.c: In function `gap_gve_sox_chk_and_resample': gap_gve_sox.c:143: error: `cval' undeclared (first use in this function) make[2]: *** [gap_gve_sox.o] Error 1 make[2]: Leaving directory `/dev/fs/O/SFU/home/ender/gimp/gimp-gap-2.2.0/ libgapvidutil' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/dev/fs/O/SFU/home/ender/gimp/gimp-gap-2.2.0' make: *** [all] Error 2
Setting severity to blocker because this should be taken care of before the 2.2.0 release. The code can probably be ported to gthread easily.
gimp-gap was ported to GThread. The optional libmpeg3 support still depends on pthreads. (see changelog entry 2005-10-07)