Hints for building XSane 0.98a for OS/2 with gcc321 1. Before configure: REM setup gcc321 build environement: example: G:\emx\bin\gcc321.cmd SET CONFIG_SITE=g:/usr/share/config.site-gcc321 SET PKG_CONFIG_PATH=/usr/lib/pkgconfig\;/usr/X11R6/lib/pkgconfig SET GTK_CONFIG= 2. Configure: sh configure --without-included-gettext --disable-sanetest --disable-gtktest --disable-gimptest enable-gtk2 enable-gimp2 --with-gtk-exec=/usr --with-sane-prefix=/usr --with-gimp-prefix=/usr --with-gimp-exec-prefix=/usr --enable-gimp --prefix=/usr 1>1-gimp-c 2>2-gimp-c 3. After configure: 3.1. src\makefile 3.1.1 LIBS = : remove $(top_builddir)/intl/libintl.a remove -lusbcalls remove -lpthread add -lsocket 3.1.2. DEFS = : add -DBUGGY_GDK_INPUT_EXCEPTION 3.2. src\xsane.c (around line 9157) remove #ifdef HAVE_OS2_H /* don`t know why, but os2 does need this one, a bit different to WIN32 */ set_gimp_PLUG_IN_INFO(&PLUG_IN_INFO); #endif 3.3. src\xsane-save.c add #define M_PI_2 1.57079632679489661923 /* pi/2 */ ------------------------- fbakan@gmx.net 28.11.2005