Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,634

    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...
    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
    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.
    Linux Mint + IceWM Registered: #371367 New Members: click here

  2. #2

  3. #3
    Trusted Penguin Dapper Dan's Avatar
    Join Date
    Oct 2004
    Location
    The Sovereign State of South Carolina
    Posts
    4,634
    -->
    Quote Originally Posted by Segfault View Post
    Tried that patch already and got:
    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
    --------------------------
    Rather than fight it further, I just installed the Slackware package for xsane and all is working now. Thanks anyway.
    Linux Mint + IceWM Registered: #371367 New Members: click here

$spacer_open
$spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •