Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 276932 - media-gfx/iscan fails to build with glibc-2.10
Summary: media-gfx/iscan fails to build with glibc-2.10
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Stefan Briesenick (RETIRED)
URL:
Whiteboard:
Keywords:
: 280297 (view as bug list)
Depends on:
Blocks: glibc-2.10
  Show dependency tree
 
Reported: 2009-07-07 15:12 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2009-08-14 00:12 UTC (History)
3 users (show)

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


Attachments
Build log (iscan-2.11.0:20090707-141738.log,43.11 KB, text/plain)
2009-07-07 15:13 UTC, Diego Elio Pettenò (RETIRED)
Details
Patch to fix glibc-2.10 compilation failure (iscan-glibc-2.10.patch,2.81 KB, patch)
2009-08-13 23:27 UTC, Martin Väth
Details | Diff
Fix pointer arithmetic of previous patch (iscan-glibc-2.10.patch,2.82 KB, patch)
2009-08-14 00:02 UTC, Martin Väth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2009-07-07 15:12:08 UTC
There are a few changes in glibc-2.10 that might make your software fail to build with it, please refer to my blog post [1] if you're not sure what the problem is. Also make sure to fix it rather than sidestepping the issue [2].

And no I don't usually provide emerge --info with these bugs because they are caused by glibc-2.10!

Thanks, Diego

[1] http://blog.flameeyes.eu/2009/05/24/c-libraries-galore
[2] http://blog.flameeyes.eu/2009/07/02/how-_not_-to-fix-gcc-4-4-bugs
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-07-07 15:13:23 UTC
Created attachment 197083 [details]
Build log
Comment 2 Samuli Suominen gentoo-dev 2009-08-07 13:11:41 UTC
Can't reproduce with GCC 4.4.1 and GLIBC 2.10.1.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-08-07 13:12:44 UTC
Samuli, do I remember you using amd64? I think this package have very different behaviour between the two arches.
Comment 4 Samuli Suominen gentoo-dev 2009-08-08 08:47:38 UTC
(In reply to comment #3)
> Samuli, do I remember you using amd64? I think this package have very different
> behaviour between the two arches.
> 

True.

My bad then, sorry Diego. I'll leave fixing this to someone with x86.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-08-08 13:12:35 UTC
*** Bug 280297 has been marked as a duplicate of this bug. ***
Comment 6 Martin Mokrejš 2009-08-11 07:14:25 UTC
Please, keep it in portage. That is the only way to get "supported" many scanners under sane. Sane devs do not maintain all kind of drivers, and this package provides supports for many devices.

Please commit the patches in bug #248898 (more recent versions of the package) to the tree and you can immediately close my bug #280297 (reporting that the in-tree, outdated version cannot be compiled).

In my case, Epson PerfectionV10 scaner is supported by the iscan package (epkowa driver). See http://www.sane-project.org/lists/sane-mfgs-cvs.html .
Comment 7 Martin Mokrejš 2009-08-11 07:17:32 UTC
$ emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.30.4 i686)
=================================================================
System uname: Linux-2.6.30.4-i686-Mobile_Intel-R-_Pentium-R-_4_-_M_CPU_1.80GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 05 Aug 2009 08:20:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 1.3.7-r1, 2.1.8-r1
dev-lang/python:     2.5.4-r3, 2.6.2-r1, 3.1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fno-strict-aliasing -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind /var/lib/hsqldb /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe -fno-strict-aliasing -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer nostrip parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz"
LDFLAGS="-Wl,-O1"
LINGUAS="en cs cz"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/science /usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip R X Xaw3d a52 aac aalib ace acl acpi alsa amr amrnb amrwb apache audacious audiofile bash-completion bcmath berkdb blas bluetooth boost branding bzip2 cairo cblas cddb cdparanoia cdr clamav cli colordiff compress cpio cracklib crypt cscope css ctype cups curl curlwrappers cxx dbi dbus dga dia directfb djbfft dri dts dv dvb dvd dvdr dvdread eds emacs emboss emf enblend encode enscript exif expat faad fam fame fat fbcon ffmpeg fftw firefox flac flash foomaticdb fortran fpx ftp gcj gd gdbm ggi gif gimp gimpprint glibc-compat20 glibc-omitfp glut gmp gnuplot gnutls gpgme gphoto2 gpm graphviz gs gsl gsm gstreamer gtk gtkhtml hal hdf hdf5 hp2xx i8x0 icc iconv icu id3 ieee1394 ifc imagemagick imlib inifile innodb isdnlog ithreads jack java javascript jbig jce jikes jpeg jpeg2k kdtree kerberos lame lapack laptop lcms leim libcaca libedit libnotify libwww live lzo lzw mad maildir matroska mhash mikmod mime ming mjpeg mmap mmx mng mod_python modperl modplug motif mozilla moznoirc mp2 mp3 mp4 mpeg mpi mpi_njtree mpich2 mplayer mudflap mule musepack mxdatetime mysql mysqli ncurses netcdf netpbm network nls nntp nptl nptlonly nsplugin ntfs numeric ogg opengl openmp openssl pam pango pcmcia pcntl pcre pdf perl plotutils plugin png pnm postproc postscript ppds pppd procmail pymol python qt3 qt3support qt4 quicktime rar raw readline recode reflection reiserfs rpm samba sasl scanner scp seamonkey server session sftp sift slp smime sndfile soap sockets spell spl sqlite srt sse sse2 ssl startup-notification subtitles subversion svg svgz sysfs sysvipc t1lib tcl tcpd tetex theora threads tidy tiff tk transcode truetype unicode urandom usb userlocales utils uuencode v4l v4l2 vcd vhook vim-syntax vim-with-x vorbis wifi win32codecs wmf wxwindows x264 x86 xanim xcf xfs xft xinerama xinetd xml xorg xpm xsl xslt xulrunner xv xvid xvmc yv12 zip zlib" ALSA_CARDS="intel-8x0m" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config mem_cache mime mime_magic rewrite setenvif speling status unique_id userdir usertrack vhost_alias negotiation" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs cz" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

$ emerge -s iscan
Searching...   
[ Results for search key : iscan ]
[ Applications found : 2 ]
 
*  media-gfx/iscan
      Latest version available: 2.20.0-r1
      Latest version installed: 2.20.0-r1
      Size of files: 1,052 kB
      Homepage:      http://www.avasys.jp/english/linux_e/dl_scan.html
      Description:   EPSON Image Scan! for Linux (including sane-epkowa backend)
      License:       GPL-2 / AVASYS Public License



What's the problem on x86 with glibc-2.10. and iscan? ;-) Sorry, I don't have the time at the moment to read your links, Diego, but maybe it does not happen with recent iscan drivers?
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-08-11 07:34:12 UTC
I'll see if I can fix this before going on vacation, I'd also like for this _not_ to go (although I would split it up in iscan and iscan-firmware, then iscan I wouldn't care ;P)… one of my scanners use this.
Comment 9 Martin Väth 2009-08-13 23:27:12 UTC
Created attachment 201185 [details, diff]
Patch to fix glibc-2.10 compilation failure

Only compilation on x86 was tested.
Comment 10 Martin Väth 2009-08-14 00:02:58 UTC
Created attachment 201186 [details, diff]
Fix pointer arithmetic of previous patch

Sorry, the wrong pointer arithmetic was a consequence of non-testing;
and it means I am just too tired now - I hope that I made no further mistake.
Comment 11 Víctor Ostorga (RETIRED) gentoo-dev 2009-08-14 00:12:55 UTC
Thanks for the patch! I tested and worked fine here
btw the next step should be bumping version, bug 248898