Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104263 - sane-backends-1.0.16-r2 build fails
Summary: sane-backends-1.0.16-r2 build fails
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Patrick Kursawe (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-30 07:19 UTC by Vasilis Lourdas
Modified: 2005-09-05 05:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vasilis Lourdas 2005-08-30 07:19:48 UTC
sane-backends-1.0.16-r2 build fails. The build error message is:

sanei_usb.c:1051: warning: passing arg 3 of `usb_bulk_write' discards qualifiers
from pointer target type
 i686-pc-linux-gnu-gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include
-DPATH_SANE_CONFIG_DIR=/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/share
-DPATH_SANE_LOCK_DIR=/var/lib -DV_MAJOR=1 -DV_MINOR=0 -I/usr/include/gphoto2 -O2
-march=athlon-xp -fomit-frame-pointer -W -Wall sanei_thread.c  -fPIC -DPIC -o
.libs/sanei_thread.o
 i686-pc-linux-gnu-gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include
-DPATH_SANE_CONFIG_DIR=/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/share
-DPATH_SANE_LOCK_DIR=/var/lib -DV_MAJOR=1 -DV_MINOR=0 -I/usr/include/gphoto2 -O2
-march=athlon-xp -fomit-frame-pointer -W -Wall sanei_pv8630.c  -fPIC -DPIC -o
.libs/sanei_pv8630.o
 i686-pc-linux-gnu-gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include
-DPATH_SANE_CONFIG_DIR=/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/share
-DPATH_SANE_LOCK_DIR=/var/lib -DV_MAJOR=1 -DV_MINOR=0 -I/usr/include/gphoto2 -O2
-march=athlon-xp -fomit-frame-pointer -W -Wall sanei_lm983x.c  -fPIC -DPIC -o
.libs/sanei_lm983x.o
 i686-pc-linux-gnu-gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include
-DPATH_SANE_CONFIG_DIR=/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/share
-DPATH_SANE_LOCK_DIR=/var/lib -DV_MAJOR=1 -DV_MINOR=0 -I/usr/include/gphoto2 -O2
-march=athlon-xp -fomit-frame-pointer -W -Wall sanei_pp.c  -fPIC -DPIC -o
.libs/sanei_pp.o
 i686-pc-linux-gnu-gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include
-DPATH_SANE_CONFIG_DIR=/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/share
-DPATH_SANE_LOCK_DIR=/var/lib -DV_MAJOR=1 -DV_MINOR=0 -I/usr/include/gphoto2 -O2
-march=athlon-xp -fomit-frame-pointer -W -Wall sanei_access.c  -fPIC -DPIC -o
.libs/sanei_access.o
 i686-pc-linux-gnu-gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include
-DPATH_SANE_CONFIG_DIR=/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/share
-DPATH_SANE_LOCK_DIR=/var/lib -DV_MAJOR=1 -DV_MINOR=0 -I/usr/include/gphoto2 -O2
-march=athlon-xp -fomit-frame-pointer -W -Wall sanei_jpeg.c  -fPIC -DPIC -o
.libs/sanei_jpeg.o
make[1]: Leaving directory
`/var/tmp/portage/sane-backends-1.0.16-r2/work/sane-backends-1.0.16/sanei'
making all in backend
make[1]: Entering directory
`/var/tmp/portage/sane-backends-1.0.16-r2/work/sane-backends-1.0.16/backend'
make[1]: *** No rule to make target `libsane-SnapScan.la', needed by `all'.  Stop.
make[1]: Leaving directory
`/var/tmp/portage/sane-backends-1.0.16-r2/work/sane-backends-1.0.16/backend'
make: *** [all-recursive] Error 1

!!! ERROR: media-gfx/sane-backends-1.0.16-r2 failed.
!!! Function src_compile, Line 99, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1. put media-gfx/sane-backends in /etc/portage/package.keywords
2. emerge -vuD --newuse sane-backends
Actual Results:  
Build failed

Expected Results:  
It should emerge normally.

Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.5-r1, 2.6.12-gentoo-r9 i686)
=================================================================
System uname: 2.6.12-gentoo-r9 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo
http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://gentoo.seren.com/gentoo
http://gentoo.chem.wisc.edu/gentoo/ http://cudlug.cudenver.edu/gentoo/
http://gentoo.mirrors.pair.com/ ftp://gentoo.agsn.ca/
http://mirror.datapipe.net/gentoo
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.ceid.upatras.gr/pub/linux/gentoo
http://gentoo.math.bme.hu http://ftp.heanet.ie/pub/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.gentoo.no/
http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/
http://mirror.etf.bg.ac.yu/gentoo http://mirror.isp.net.au/pub/gentoo/
http://gentoo.osuosl.org/ http://adelie.polymtl.ca/ ftp://gentoo.risq.qc.ca/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 acl acpi alsa apache2 apm arts avi bash-completion
berkdb bitmap-fonts bluetooth bonobo bzlib caps cdr crypt cups curl doc dvd dvdr
dvdread eds emboss encode esd exif fam fbcon flac foomaticdb fortran gd gdbm gif
gimp gimpprint glx gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile
hddtemp iconv imagemagick imlib ipv6 java jpeg junit kde kdeenablefinal ldap
libg++ libwww mad mikmod mime mmx mmxext motif mozilla mp3 mpeg mysql ncurses
nls nptl nsplugin ogg oggvorbis opengl oss pam pdflib perl png ppds python qt
quicktime readline ruby samba scanner sdl slang speex spell sse ssl svga tcltk
tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb userlocales
vorbis win32codecs xine xml xml2 xmms xprint xv xvid zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 Dead Schorsch 2005-08-31 01:48:40 UTC
Mine fails with A LOT of other errors:

i686-pc-linux-gnu-gcc -c -DHAVE_CONFIG_H -I. -I. -I../include -I../include -DPAT
H_SANE_CONFIG_DIR=/etc/sane.d     -DPATH_SANE_DATA_DIR=/usr/share         -DPATH
_SANE_LOCK_DIR=/var/lib           -DV_MAJOR=1 -DV_MINOR=0 -I/usr/include/gphoto2
   -march=athlon-xp -O3 -pipe -W -Wall sanei_jpeg.c
In file included from ../include/sane/sanei_jpeg.h:14,
                 from sanei_jpeg.c:6:
../include/sane/sanei_jinclude.h:20:55: jconfig.h: No such file or directory
In file included from sanei_jpeg.c:6:
../include/sane/sanei_jpeg.h:15:21: jpeglib.h: No such file or directory
../include/sane/sanei_jpeg.h:16:55: jerror.h: No such file or directory
In file included from sanei_jpeg.c:6:
../include/sane/sanei_jpeg.h:29: error: parse error before "JMETHOD"
../include/sane/sanei_jpeg.h:29: warning: no semicolon at end of struct or union
../include/sane/sanei_jpeg.h:32: error: parse error before "put_pixel_rows"
../include/sane/sanei_jpeg.h:37: error: parse error before "finish_output"
../include/sane/sanei_jpeg.h:47: error: parse error before "buffer"
../include/sane/sanei_jpeg.h:47: warning: type defaults to `int' in declaration
of `buffer'
../include/sane/sanei_jpeg.h:47: warning: data definition has no type or storage
 class
../include/sane/sanei_jpeg.h:48: error: parse error before "buffer_height"
../include/sane/sanei_jpeg.h:48: warning: type defaults to `int' in declaration
of `buffer_height'
../include/sane/sanei_jpeg.h:48: warning: data definition has no type or storage
 class
../include/sane/sanei_jpeg.h:53: error: parse error before "sanei_jpeg_jinit_wri
te_ppm"
sanei_jpeg.c:10: error: field `pub' has incomplete type
sanei_jpeg.c:14: error: parse error before "JSAMPROW"
sanei_jpeg.c:14: warning: no semicolon at end of struct or union
sanei_jpeg.c:16: error: parse error before "samples_per_row"
sanei_jpeg.c:16: warning: type defaults to `int' in declaration of `samples_per_
row'
sanei_jpeg.c:16: warning: data definition has no type or storage class
sanei_jpeg.c:18: warning: type defaults to `int' in declaration of `ppm_dest_str
uct'
sanei_jpeg.c:18: warning: data definition has no type or storage class
sanei_jpeg.c:20: error: parse error before '*' token
sanei_jpeg.c:20: warning: type defaults to `int' in declaration of `ppm_dest_ptr '
sanei_jpeg.c:20: warning: data definition has no type or storage class
sanei_jpeg.c:54: error: parse error before "sanei_jpeg_start_output_ppm"
sanei_jpeg.c:54: error: parse error before "cinfo"
sanei_jpeg.c:55: warning: return type defaults to `int'
sanei_jpeg.c: In function `sanei_jpeg_start_output_ppm':
sanei_jpeg.c:56: error: `cinfo' undeclared (first use in this function)
sanei_jpeg.c:56: error: (Each undeclared identifier is reported only once
sanei_jpeg.c:56: error: for each function it appears in.)
sanei_jpeg.c:57: error: `dinfo' undeclared (first use in this function)
sanei_jpeg.c: At top level:
sanei_jpeg.c:63: error: parse error before "sanei_jpeg_finish_output_ppm"
sanei_jpeg.c:63: error: parse error before "cinfo"
sanei_jpeg.c:64: warning: return type defaults to `int'
sanei_jpeg.c: In function `sanei_jpeg_finish_output_ppm':
sanei_jpeg.c:65: error: `cinfo' undeclared (first use in this function)
sanei_jpeg.c:66: error: `dinfo' undeclared (first use in this function)
sanei_jpeg.c: At top level:
sanei_jpeg.c:80: error: parse error before "sanei_jpeg_put_pixel_rows"
sanei_jpeg.c:80: error: parse error before "cinfo"
sanei_jpeg.c:82: warning: return type defaults to `int'
sanei_jpeg.c: In function `sanei_jpeg_put_pixel_rows':
sanei_jpeg.c:83: error: parse error before "dest"
sanei_jpeg.c:84: error: `cinfo' undeclared (first use in this function)
sanei_jpeg.c:85: error: `dinfo' undeclared (first use in this function)
sanei_jpeg.c:86: error: `rows_supplied' undeclared (first use in this function)
sanei_jpeg.c:88: error: `data' undeclared (first use in this function)
sanei_jpeg.c:88: error: `dest' undeclared (first use in this function)
sanei_jpeg.c: At top level:
sanei_jpeg.c:98: error: parse error before "sanei_jpeg_copy_pixel_rows"
sanei_jpeg.c:98: error: parse error before "cinfo"
sanei_jpeg.c:100: warning: return type defaults to `int'
sanei_jpeg.c: In function `sanei_jpeg_copy_pixel_rows':
sanei_jpeg.c:101: error: parse error before "dest"
sanei_jpeg.c:103: error: syntax error before "ptr"
sanei_jpeg.c:104: error: syntax error before "col"
sanei_jpeg.c:106: error: `cinfo' undeclared (first use in this function)
sanei_jpeg.c:107: error: `dinfo' undeclared (first use in this function)
sanei_jpeg.c:108: error: `rows_supplied' undeclared (first use in this function)
sanei_jpeg.c:110: error: `ptr' undeclared (first use in this function)
sanei_jpeg.c:110: error: `dest' undeclared (first use in this function)
sanei_jpeg.c:112: error: `col' undeclared (first use in this function)
sanei_jpeg.c:114: warning: implicit declaration of function `GETJSAMPLE'
sanei_jpeg.c:116: error: `data' undeclared (first use in this function)
sanei_jpeg.c: At top level:
sanei_jpeg.c:126: error: parse error before "sanei_jpeg_put_demapped_rgb"
sanei_jpeg.c:126: error: parse error before "cinfo"
sanei_jpeg.c:128: warning: return type defaults to `int'
sanei_jpeg.c: In function `sanei_jpeg_put_demapped_rgb':
sanei_jpeg.c:130: error: parse error before "dest"
sanei_jpeg.c:133: error: syntax error before "ptr"
sanei_jpeg.c:134: error: syntax error before "color_map0"
sanei_jpeg.c:135: error: syntax error before "color_map1"
sanei_jpeg.c:136: error: syntax error before "color_map2"
sanei_jpeg.c:137: error: syntax error before "col"
sanei_jpeg.c:139: error: `rows_supplied' undeclared (first use in this function)
sanei_jpeg.c:141: error: `ptr' undeclared (first use in this function)
sanei_jpeg.c:141: error: `dest' undeclared (first use in this function)
sanei_jpeg.c:143: error: `col' undeclared (first use in this function)
sanei_jpeg.c:143: error: `cinfo' undeclared (first use in this function)
sanei_jpeg.c:146: error: `color_map0' undeclared (first use in this function)
sanei_jpeg.c:147: error: `color_map1' undeclared (first use in this function)
sanei_jpeg.c:148: error: `color_map2' undeclared (first use in this function)
sanei_jpeg.c:150: error: `data' undeclared (first use in this function)
sanei_jpeg.c: At top level:
sanei_jpeg.c:155: error: parse error before "sanei_jpeg_put_demapped_gray"
sanei_jpeg.c:155: error: parse error before "cinfo"
sanei_jpeg.c:157: warning: return type defaults to `int'
sanei_jpeg.c: In function `sanei_jpeg_put_demapped_gray':
sanei_jpeg.c:158: error: parse error before "dest"
sanei_jpeg.c:160: error: syntax error before "ptr"
sanei_jpeg.c:161: error: syntax error before "color_map"
sanei_jpeg.c:162: error: syntax error before "col"
sanei_jpeg.c:164: error: `rows_supplied' undeclared (first use in this function)
sanei_jpeg.c:166: error: `ptr' undeclared (first use in this function)
sanei_jpeg.c:166: error: `dest' undeclared (first use in this function)
sanei_jpeg.c:168: error: `col' undeclared (first use in this function)
sanei_jpeg.c:168: error: `cinfo' undeclared (first use in this function)
sanei_jpeg.c:170: error: `color_map' undeclared (first use in this function)
sanei_jpeg.c:173: error: `data' undeclared (first use in this function)
sanei_jpeg.c: At top level:
sanei_jpeg.c:177: error: parse error before "sanei_jpeg_jinit_write_ppm"
sanei_jpeg.c:177: error: parse error before "cinfo"
sanei_jpeg.c:178: warning: return type defaults to `int'
sanei_jpeg.c: In function `sanei_jpeg_jinit_write_ppm':
sanei_jpeg.c:180: error: parse error before "dest"
sanei_jpeg.c:183: error: `dest' undeclared (first use in this function)
sanei_jpeg.c:184: error: `cinfo' undeclared (first use in this function)
sanei_jpeg.c:184: error: called object is not a function
sanei_jpeg.c:184: error: `j_common_ptr' undeclared (first use in this function)
sanei_jpeg.c:184: error: parse error before "cinfo"
sanei_jpeg.c:190: warning: implicit declaration of function `jpeg_calc_output_di
mensions'
sanei_jpeg.c:196: error: parse error before "cinfo"
sanei_jpeg.c:198: error: `BITS_IN_JSAMPLE' undeclared (first use in this functio n)
sanei_jpeg.c:199: error: `JSAMPLE' undeclared (first use in this function)
sanei_jpeg.c:206: error: parse error before "cinfo"
sanei_jpeg.c:212: error: `JCS_GRAYSCALE' undeclared (first use in this function)
sanei_jpeg.c:222: error: `JSAMPROW' undeclared (first use in this function)
sanei_jpeg.c:222: error: parse error before "dest"
make[1]: *** [sanei_jpeg.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/sane-backends-1.0.16-r2/work/sane-b
ackends-1.0.16/sanei'
make: *** [all-recursive] Error 1

!!! ERROR: media-gfx/sane-backends-1.0.16-r2 failed.
!!! Function src_compile, Line 99, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
Comment 2 Dead Schorsch 2005-08-31 02:07:43 UTC
Okay, my errors are gone after re-emerging media-lib/jpeg.
Comment 3 Vasilis Lourdas 2005-08-31 10:02:39 UTC
(In reply to comment #2)
> Okay, my errors are gone after re-emerging media-lib/jpeg.

I tried it, but the build still fails. What version of media-libs/jpeg are you
using? Mine is media-libs/jpeg-6b-r5.
Comment 4 Dead Schorsch 2005-08-31 14:10:12 UTC
*  media-libs/jpeg
      Latest version available: 6b-r5
      Latest version installed: 6b-r5
      Size of downloaded files: 598 kB
      Homepage:    http://www.ijg.org/
      Description: Library to load, handle and manipulate images in the JPEG format
      License:     as-is
Comment 5 Patrick Kursawe (RETIRED) gentoo-dev 2005-09-05 04:46:43 UTC
(In reply to comment #0)
> sane-backends-1.0.16-r2 build fails. The build error message is:
> 

> make[1]: *** No rule to make target `libsane-SnapScan.la', needed by `all'.  Stop.

My crystal ball tells me two things:
1) You used $SANE_BACKENDS but did not tell so in your bug report.
2) You set this variable to "SnapScan" instead of "snapscan".

Please re-open this bug if I am wrong.
Comment 6 Vasilis Lourdas 2005-09-05 05:52:16 UTC
You are absolutely correct! Thank you very much!