if /bin/sh ../libtool --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include/sane -I../include -O2 -pipe -D_GNU_SOURCE -MT libimage_stream_la-imgstream.lo -MD -MP -MF ".deps/libimage_stream_la-imgstream.Tpo" -c -o libimage_stream_la-imgstream.lo `test -f 'imgstream.cc' || echo './'`imgstream.cc; \ then mv -f ".deps/libimage_stream_la-imgstream.Tpo" ".deps/libimage_stream_la-imgstream.Plo"; else rm -f ".deps/libimage_stream_la-imgstream.Tpo"; exit 1; fi x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include/sane -I../include -O2 -pipe -D_GNU_SOURCE -MT libimage_stream_la-imgstream.lo -MD -MP -MF .deps/libimage_stream_la-imgstream.Tpo -c imgstream.cc -fPIC -DPIC -o .libs/libimage_stream_la-imgstream.o In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/cstddef:51, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/cstring:51, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/x86_64-pc-linux-gnu/bits/c++locale.h:47, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/iosfwd:45, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/ios:43, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/ostream:45, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/iostream:45, from imgstream.hh:40, from imgstream.cc:31: /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/stddef.h:152: error: declaration does not declare anything In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/cstring:51, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/x86_64-pc-linux-gnu/bits/c++locale.h:47, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/iosfwd:45, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/ios:43, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/ostream:45, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/iostream:45, from imgstream.hh:40, from imgstream.cc:31: /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/cstddef:55: error: expected unqualified-id before 'long' /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/cstddef:55: error: expected `;' before 'long' /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/cstddef:55: error: declaration does not declare anything In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/stl_algobase.h:68, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/char_traits.h:46, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/ios:45, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/ostream:45, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/iostream:45, from imgstream.hh:40, from imgstream.cc:31: /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/cstdlib:123: error: '::malloc' has not been declared /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/cstdlib:131: error: '::realloc' has not been declared In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/x86_64-pc-linux-gnu/bits/c++allocator.h:39, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/allocator.h:53, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/memory:54, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/string:48, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/locale_classes.h:47, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/bits/ios_base.h:47, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/ios:48, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/ostream:45, from /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/iostream:45, from imgstream.hh:40, from imgstream.cc:31: /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/ext/new_allocator.h:43: error: expected unqualified-id before 'long' /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/ext/new_allocator.h:43: error: expected `;' before 'long' /usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/include/g++-v4/ext/new_allocator.h:43: error: declaration does not declare anything make[2]: *** [libimage_stream_la-imgstream.lo] Error 1 make[2]: Leaving directory `/var/tmp/portage/media-gfx/iscan-2.10.0/work/iscan-2.10.0/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-gfx/iscan-2.10.0/work/iscan-2.10.0' make: *** [all] Error 2 * * ERROR: media-gfx/iscan-2.10.0 failed. Portage 2.1.4_rc14 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.23-gentoo-r1 x86_64) ================================================================= System uname: 2.6.23-gentoo-r1 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ Timestamp of tree: Mon, 07 Jan 2008 19:00:08 +0000 app-shells/bash: 3.2_p33 dev-lang/python: 2.5.1-r5 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.61-r1 sys-devel/automake: 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/svn/env /usr/kde/svn/share/config /usr/kde/svn/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://localhost/gentoo-portage" USE="X acl amd64 berkdb bitmap-fonts cli cracklib crypt cups dri fortran gcj gdbm gpm iconv ipv6 isdnlog midi mmx mudflap ncurses nls nptl nptlonly objc openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl tcpd truetype-fonts type1-fonts unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vga" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
hmm, strange. I just (re)emerged iscan-2.10.0 on x86 and amd64. Both compiled fine with glibc-2.7-r1 and gcc-4.2.2. So I can't reproduce your error. It seems, that there's something broken on your system. I would try to re-emerge: 1. gcc 2. glibc 3. sane-backends and yes, "emerge symlinks" and then "symlinks -dr /usr" is also a good idea. Also gcc-config with --force. and then try again.
any news?
I'm getting the following, but with gcc-4.3.0 (so you may not be interested): ======================================= x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include/sane -I../include -march=native -O2 -fomit-frame-pointer -pipe -D_GNU_SOURCE -MT libimage_stream_la-cfilebuf.lo -MD -MP -MF .deps/libimage_stream_la-cfilebuf.Tpo -c cfilebuf.cc -fPIC -DPIC -o libimage_stream_la-cfilebuf.o >/dev/null 2>&1 imgstream.cc: In static member function 'static lt_dlhandle_struct* iscan::imgstream::find_dlopen(const char*)': imgstream.cc:243: error: 'getenv' was not declared in this scope imgstream.cc:247: error: 'getenv' was not declared in this scope imgstream.cc:282: error: 'free' was not declared in this scopejpegstream.cc: In member function 'virtual iscan::imgstream& iscan::jpegstream::write(const char*, std::streamsize)': jpegstream.cc:190: error: 'div_t' was not declared in this scope imgstream.cc:287: error: 'free' was not declared in this scope jpegstream.cc:190: error: expected `;' before 'index' jpegstream.cc:191: error: 'index' was not declared in this scope ======================================= emerge --info Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.3.0, glibc-2.7-r2, 2.6.24-gentoo-r3 x86_64) ================================================================= System uname: 2.6.24-gentoo-r3 x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz Timestamp of tree: Wed, 26 Mar 2008 15:15:01 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.5 dev-lang/python: 2.5.1-r5 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18.50.0.5 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.24 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=native -O2 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://gentoo.mirrors.tds.net/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ http://gentoo.chem.wisc.edu/gentoo/" LANG="en_US.UTF-8" LDFLAGS="-Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" 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 /usr/local/overlays/xeffects/trunk" SYNC="rsync://davinci.realcomputerguy.soho/gentoo-portage" USE="X a52 aac aalib acl acpi alsa amd64 amr apache2 audiofile avi bash-completion berkdb bzip2 cairo caps cdparanoia cdr cli cracklib crypt cups curl dbus djvu dri dts dv dvb dvd dvdr dvdread encode exif fam ffmpeg flac fortran gdbm gif glitz gphoto2 gpm gstreamer gtk2 hal iconv imagemagick imap imlib ipv6 isdnlog jack java jpeg jpeg2k kde kdeenablefinal lame lcd lcms ldap mad midi mmap mmx mozcalendar mozilla mp3 mudflap musicbrainz ncurses nls nodrm nptl nptlonly nsplugin nvidia ofx ogg oggvorbis openexr opengl openmp pam pcre pda pdf perl png pppd pulseaudio python qt3 qt4 quicktime readline reflection samba sasl scanner sdl session slp sndfile spell spl sse sse2 ssl subversion svg tcltk theora threads tiff tk transparency truetype unicode usb utf8 v4l v4l2 vcd vorbis wav wavpack wmf x264 xattr xcomposite xine xml xorg xscreensaver xv xvid xvmc zlib" ALSA_CARDS="hda-intel hdsp" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa fbdev vmware v4l" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
looks like a GCC 4.3 regression. Should be fixed of course.
Still can't compile this - now getting: ===================================== * Running aclocal -I m4 ... [ !! ] * Failed Running aclocal ! ===================================== /var/tmp/portage/media-gfx/iscan-2.10.0/temp/aclocal-19472.out: ===================================== ***** aclocal ***** ***** aclocal -I m4 configure.ac:199: error: unknown libltdl build type: _LTDL_TYPE /usr/share/aclocal/ltdl.m4:242: LTDL_INIT is expanded from... /usr/share/aclocal/ltdl.m4:368: AC_LIB_LTDL is expanded from... configure.ac:199: the top level autom4te-2.62: /usr/bin/m4 failed with exit status: 1 aclocal-1.10: autom4te failed with exit status: 1 ===================================== Guess there's also a pending version bump, which may or may not help when it gets into the tree: http://bugs.gentoo.org/show_bug.cgi?id=216142
iscan-2.11 is in portage. Please check if it still fails...
Fails with: ================================================= config.status: executing depfiles commands cd . && /bin/sh /var/tmp/portage/media-gfx/iscan-2.11.0/work/iscan-2.11.0/missing --run aclocal-1.9 -I m4 configure.ac:199: error: unknown libltdl build type: _LTDL_TYPE /usr/share/aclocal/ltdl.m4:242: LTDL_INIT is expanded from... /usr/share/aclocal/ltdl.m4:368: AC_LIB_LTDL is expanded from... configure.ac:199: the top level autom4te-2.62: /usr/bin/m4 failed with exit status: 1 aclocal-1.9: autom4te failed with exit status: 1 make: *** [aclocal.m4] Error 1 ================================================= note that I am running libtool-2.2.4
ahh, that odd libtool problem.
(In reply to comment #8) > ahh, that odd libtool problem. > Any fix for this yet?
yes, fixed. ;-)