| Summary: | media-gfx/iscan-2.28.1.3 - In member function 'virtual iscan::basic_imgstream& iscan::pngstream::flush()': pngstream.cc:86:36: error: invalid use of incomplete type 'png_struct {aka struct png_struct_def}' | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
| Component: | Current packages | Assignee: | Diego Elio Pettenò (RETIRED) <flameeyes> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | bob.deblier, cedric.godin, gem, ibuyandtrade0+bugs.gentoo.org, l33tmmx, steven, vityokster |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
/var/tmp/portage/media-gfx/iscan-2.28.1.3/temp/build.log
build log jms environment jms patch to compile with libpng 1.5 |
||
|
Description
Juergen Rose
2012-06-05 09:26:31 UTC
I see exactly the same problem. I'm using gcc 5.6.3. same here
pngstream.cc: In member function 'virtual iscan::basic_imgstream& iscan::pngstream::flush()':
pngstream.cc:86:36: error: invalid use of incomplete type 'png_struct {aka struct png_struct_def}'
/usr/include/png.h:857:16: error: forward declaration of 'png_struct {aka struct png_struct_def}'
pngstream.cc:86:54: error: invalid use of incomplete type 'png_struct {aka struct png_struct_def}'
/usr/include/png.h:857:16: error: forward declaration of 'png_struct {aka struct png_struct_def}'
make[3]: *** [libimage_stream_la-pngstream.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
libtool: compile: x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../include -march=native -O2 -pipe -D_GNU_SOURCE -c pnmstream.cc -fPIC -DPIC -o .libs/libimage_stream_la-pnmstream.o
make[3]: Leaving directory `/var/tmp/portage/media-gfx/iscan-2.28.1.3/work/iscan-2.28.1/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-gfx/iscan-2.28.1.3/work/iscan-2.28.1/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-gfx/iscan-2.28.1.3/work/iscan-2.28.1'
make: *** [all] Error 2
* ERROR: media-gfx/iscan-2.28.1.3 failed (compile phase):
emerge --info =media-gfx/iscan-2.28.1.3
Portage 2.1.10.49 (default/linux/amd64/10.0/desktop, gcc-4.6.3, glibc-2.14.1-r3, 3.2.11-gentoo-jms-3.2.11 x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-3.2.11-gentoo-jms-3.2.11-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Tue, 05 Jun 2012 16:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.7 [disabled]
app-shells/bash: 4.2_p20
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.6.8, 2.7.3-r1, 3.2.3
dev-util/ccache: 3.1.7
dev-util/cmake: 2.8.8-r2
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.1-r1
sys-apps/openrc: 0.9.8.4
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.68
sys-devel/automake: 1.9.6-r3, 1.11.1
sys-devel/binutils: 2.21.1-r1
sys-devel/gcc: 4.6.3
sys-devel/gcc-config: 1.6
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc: 2.14.1-r3
Repositories: gentoo gamerlay-stable sunrise x-jms
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS=""
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB en es fr en"
MAKEOPTS="-j3"
PKGDIR="/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/portage"
PORTDIR_OVERLAY="/var/lib/layman/gamerlay /var/lib/layman/sunrise /usr/local/portage/jms"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aim alsa amd64 ao apm autoipd avahi bash-completion berkdb bluetooth branding bzip2 cairo cdaudio cdda cddb cdparanoia cdr cjk cli consolekit cracklib crypt css cups cxx dbus dga dhcpcd directfb dri dts dv dvb dvd dvdnav dvdr emboss encode evdev exif fam fbcon ffmpeg firefox flac fontconfig foomaticdb fortran ftp gdbm gif gimp gnutls gphoto2 gpm gstreamer gtk gzip hdri iconv icq icu ieee1394 imagemagick imap imlib ipod ipv6 jabber jpeg jpeg2k kde kipi kontact lame laptop lastfm lcms ldap libcaca libnotify libwww lm_sensor lzma lzo mad maildir matroska mdnsresponder-compat memlimit mhash mikmod mime mmap mmx mng modules motif mozilla mp3 mp4 mpeg mplayer msn mtp mudflap multilib musepack musicbrainz mysql ncurse ncurses networkmanager nls nptl nsplugin nvidia ofx ogg openal openexr opengl openmp oss pam pango pcmcia pcre pdf phonon php plasma png policykit ppds pppd projectm pulseaudio qt3support qt4 quicktime raw readline resolvconf scanner sdl semantic-desktop session smp speex spell sse sse2 ssl ssse3 startup-notification svg syslog taglib tcpd theora thumbnail tidy tiff truetype udev udisks unicode upower usb v4l v4l2 vcd vdpau video vim-syntax vorbis webkit wifi wxwidgets x x264 xattr xcb xcomposite xine xinerama xml xorg xosd xpm xscreesaver xulrunner xv xvid xvmc yahoo zip 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 mmap_emul 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="plymouth" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en es fr en" PHP_TARGETS="php5-3 php5-4" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Created attachment 314339 [details]
build log jms
Created attachment 314341 [details]
environment jms
emerge -pqv =media-gfx/iscan-2.28.1.3 [ebuild U ] media-gfx/iscan-2.28.1.3 [2.26.2] USE="X gimp jpeg png tiff -doc" LINGUAS="es fr -ar -de -it -ja -ko -nl -pt -zh_CN -zh_TW" Same problem here. Created attachment 314389 [details, diff]
patch to compile with libpng 1.5
Thanks Stefano, the patch works for me. The patch works for me, too. When will it be included in portage? (In reply to comment #9) > The patch works for me, too. When will it be included in portage? *sigh* I suppose only a few Gentoo users have this ~amd64/~x86 ebuild installed.... Big ups to Stefano -- Comment 7 -- for his patch; this is yet another works-for-me. Any chance a dev that stumbles across this bug could please ping Diego or Samuli to add this fix to the portage tree? TIA. Clemmitt assigned to Diego, he did the version bump and should have tested it ;) Ehm I did test it (as I had to use it to test the new esci parser for my scanner) but I didn't enable png (as I find it useless) :( Will take care of it, sorry. Thanks all, fixed now. |