Results 1 to 3 of 3
I had no problems with it the last time I compiled it on this box under the same distro and version but this time I keep getting this error...
Code:
...
- 07-21-2009 #1
Cannot compile xsane
I had no problems with it the last time I compiled it on this box under the same distro and version but this time I keep getting this error...
I've googled "xsane-back-gtk.o" but there's very little on it and nothing I can use to fix it. Anyone have an idea what's wrong or missing? Thanks.Code:+ make for subdir in lib src doc; do \ target=`echo all-recursive | sed s/-recursive//`; \ echo making $target in $subdir; \ (cd $subdir && make $target) \ || case "" in *k*) fail=yes;; *) exit 1;; esac; \ done && test -z "$fail" making all in lib make[1]: Entering directory `/usr/ports/opt/xsane/work/src/xsane-0.996/lib' gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=996 -DSANE_V_MAJOR=1 -O2 -march=i686 -pipe -Wall alloca.c gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=996 -DSANE_V_MAJOR=1 -O2 -march=i686 -pipe -Wall getopt.c gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=996 -DSANE_V_MAJOR=1 -O2 -march=i686 -pipe -Wall getopt1. c gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=996 -DSANE_V_MAJOR=1 -O2 -march=i686 -pipe -Wall strndup. c gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=996 -DSANE_V_MAJOR=1 -O2 -march=i686 -pipe -Wall strdup.c gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=996 -DSANE_V_MAJOR=1 -O2 -march=i686 -pipe -Wall strsep.c gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=996 -DSANE_V_MAJOR=1 -O2 -march=i686 -pipe -Wall snprintf .c gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=996 -DSANE_V_MAJOR=1 -O2 -march=i686 -pipe -Wall usleep.c gcc -c -DHAVE_CONFIG_H -I. -I. -I../include/sane -I../include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=996 -DSANE_V_MAJOR=1 -O2 -march=i686 -pipe -Wall md5.c ar r liblib.a alloca.o getopt.o getopt1.o strndup.o strdup.o strsep.o snprintf.o usleep.o md5.o ar: creating liblib.a ranlib liblib.a make[1]: Leaving directory `/usr/ports/opt/xsane/work/src/xsane-0.996/lib' making all in src make[1]: Entering directory `/usr/ports/opt/xsane/work/src/xsane-0.996/src' gcc -c -DHAVE_CONFIG_H -DLOCALEDIR=/usr/share/locale -DSANELOCALEDIR=/usr/share/ locale -I. -I. -I../include -I../include -I/usr/local/include -D_GNU_SOURCE -DV_MAJOR=0 -DV_MINOR=996 -DSANE_V_MAJOR=1 -DPATH_XSANE_DOC_DIR=/usr/share/sane /xsane/doc -DPATH_SANE_DATA_DIR=/usr/share/sane -O2 -march=i686 -pipe -Wall -I/ usr/include/gimp-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/ include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include /cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 xsane-back-gtk.c xsane-back-gtk.c: In function 'xsane_back_gtk_set_sensitivity': xsane-back-gtk.c:2615: error: 'SANE_CAP_ALWAYS_SETTABLE' undeclared (first use i n this function) xsane-back-gtk.c:2615: error: (Each undeclared identifier is reported only once xsane-back-gtk.c:2615: error: for each function it appears in.) make[1]: *** [xsane-back-gtk.o] Error 1 make[1]: Leaving directory `/usr/ports/opt/xsane/work/src/xsane-0.996/src' make: *** [all-recursive] Error 1 =======> ERROR: Building '/usr/ports/opt/xsane/xsane#0.996-1.pkg.tar.gz' failed. prt-get: error while install -- Packages where install failed xsane
- 07-21-2009 #2
- 07-21-2009 #3
Tried that patch already and got:
Rather than fight it further, I just installed the Slackware package for xsane and all is working now. Thanks anyway.Code:missing header for unified diff at line 3 of patch can't find file to patch at input line 3 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |--- src/gtkglue.c 2005-04-16 15:12:07.000000000 +0200 |+++ src/gtkglue.c.new 2009-06-24 00:26:46.000000000 +0200 --------------------------


Reply With Quote

