Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 385521

Summary: app-text/htmldoc-1.8.27-r2: failed to build with libpng-1.5.5
Product: Gentoo Linux Reporter: 颜烈彬 <slbyan>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: http://www.htmldoc.org/str.php?L243+P0+S-2+C0+I0+E0+M10+Q
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 354479    
Attachments: build log for test compile against libpng-1.5.x
really quick hack to provide libpng-1.5 support

Description 颜烈彬 2011-10-03 16:50:27 UTC
It seems that htmldoc doesn't call api from libpng-1.5.5 correctly.

Reproducible: Always

Steps to Reproduce:
1. emerge -lv htmldoc
2.
3.
Actual Results:  
>>> Install htmldoc-1.8.27-r2 into /var/tmp/portage/app-text/htmldoc-1.8.27-r2/image/ category app-text
Making all in htmldoc...
Compiling image.cxx...
image.cxx: In function 'int image_load_png(image_t*, FILE*, int, int)':
image.cxx:1502:7: error: invalid use of incomplete type 'struct png_struct'
/usr/include/png.h:830:16: error: forward declaration of 'struct png_struct'
image.cxx:1529:11: error: invalid use of incomplete type 'struct png_info'
/usr/include/png.h:699:16: error: forward declaration of 'struct png_info'
image.cxx:1538:16: error: invalid use of incomplete type 'struct png_info'
/usr/include/png.h:699:16: error: forward declaration of 'struct png_info'
image.cxx:1543:16: error: invalid use of incomplete type 'struct png_info'
/usr/include/png.h:699:16: error: forward declaration of 'struct png_info'
image.cxx:1546:11: error: invalid use of incomplete type 'struct png_info'
/usr/include/png.h:699:16: error: forward declaration of 'struct png_info'
image.cxx:1557:21: error: invalid use of incomplete type 'struct png_info'
/usr/include/png.h:699:16: error: forward declaration of 'struct png_info'
image.cxx:1558:21: error: invalid use of incomplete type 'struct png_info'
/usr/include/png.h:699:16: error: forward declaration of 'struct png_info'
image.cxx:1560:12: error: invalid use of incomplete type 'struct png_info'
/usr/include/png.h:699:16: error: forward declaration of 'struct png_info'
image.cxx:1560:56: error: invalid use of incomplete type 'struct png_info'
/usr/include/png.h:699:16: error: forward declaration of 'struct png_info'
image.cxx:1597:34: error: invalid use of incomplete type 'struct png_info'
/usr/include/png.h:699:16: error: forward declaration of 'struct png_info'
image.cxx:1599:28: error: invalid use of incomplete type 'struct png_info'
/usr/include/png.h:699:16: error: forward declaration of 'struct png_info'
image.cxx:1613:12: error: invalid use of incomplete type 'struct png_info'
/usr/include/png.h:699:16: error: forward declaration of 'struct png_info'
image.cxx:1613:56: error: invalid use of incomplete type 'struct png_info'
/usr/include/png.h:699:16: error: forward declaration of 'struct png_info'
image.cxx:1642:19: error: invalid use of incomplete type 'struct png_info'
/usr/include/png.h:699:16: error: forward declaration of 'struct png_info'
image.cxx: In function 'int image_load_gif(image_t*, FILE*, int, int)':
image.cxx:1280:24: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result
image.cxx:1317:31: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result
image.cxx: In function 'int image_load_bmp(image_t*, FILE*, int, int)':
image.cxx:949:38: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result
image.cxx: In function 'void image_copy(const char*, const char*, const char*)':
image.cxx:605:35: warning: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result
make[2]: *** [image.o] Error 1
Installing in fonts...
Installing font files in /var/tmp/portage/app-text/htmldoc-1.8.27-r2/image/usr/share/htmldoc/fonts...
Installing in data...
Installing in doc...
Rebuilding documentation...
Formatting htmldoc.html...
make[1]: ../htmldoc/htmldoc: Command not found
make[1]: *** [htmldoc.html] Error 127
mv: cannot stat `/var/tmp/portage/app-text/htmldoc-1.8.27-r2/image//usr/share/doc/htmldoc': No such file or directory
mv: cannot stat `/var/tmp/portage/app-text/htmldoc-1.8.27-r2/image//usr/share/doc/htmldoc-1.8.27-r2/*.html': No such file or directory
>>> Completed installing htmldoc-1.8.27-r2 into /var/tmp/portage/app-text/htmldoc-1.8.27-r2/image/

Expected Results:  
compile fine
Comment 1 Ian Stakenvicius (RETIRED) gentoo-dev 2011-10-03 17:01:42 UTC
Could you please attach the full build log and emerge --info output?
Comment 2 颜烈彬 2011-10-03 17:17:42 UTC
Portage 2.2.0_alpha55-r1 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 3.0.4-gentoo x86_64)
=================================================================
System uname: Linux-3.0.4-gentoo-x86_64-Intel-R-_Core-TM-_i3_CPU_M_350_@_2.27GHz-with-gentoo-2.1
Timestamp of tree: Mon, 03 Oct 2011 15:45:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo x11 xemacs proaudio sunrise gnome kde science gentoo-zh qting-edge enlightenment multilib hardened-dev
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-10 AdobeFlash-10.1 DOOM3"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -mtune=native -march=native"
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/dconf /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/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -mtune=native -march=native"
DISTDIR="/opt/distfiles/"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs compress-build-logs distlocks ebuild-locks fixlafiles fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en zh en_GB en_US zh_CN zh_HK zh_TW"
MAKEOPTS="-j3"
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="/var/lib/layman/x11 /var/lib/layman/xemacs /var/lib/layman/pro-audio /var/lib/layman/sunrise /var/lib/layman/gnome /var/lib/layman/kde /var/lib/layman/science /var/lib/layman/gentoo-zh /var/lib/layman/qting-edge /var/lib/layman/enlightenment /var/lib/layman/multilib /var/lib/layman/hardened-development"
SYNC="rsync://mirrors.163.com/gentoo-portage"
USE="PyQt X a52 aac aalib accessibility acl acpi ada agg alsa amd64 amr apache2 apm arpack audiofile avahi bittorrent branding bzip2 cairo calendar cdio chm cjk cli clisp consolekit cracklib crypt cscope cue cups custom-optimization cvs cvsgraph cxx dbus devkit dirac djvu doxygen dri ebook edje encode enscript espeak exif expat faac faad fbcon ffmpeg fftw flac fltk fluidsynth fortran frei0r ftp gallium gd gdbm gif git glitz glpk gmp gnat gnutls gpm graphite gsm gstreamer hardened hvm iconv icu imlib iproute2 ipv6 joystick jpeg jpeg2k kde kernel-patch lame lastfmradio latex lcms libg++ libmms libnotify libsamplerate libwww lzma lzo mad midi mikmod mjpeg mmx mng mod_python modperl modplug modules mp3 mpeg mplayer mudflap multilib multimedia musepack mysql ncurses nepomuk network nls nptl nptlonly nsplugin nvidia odbc ogg openal opengl openmp openvg pam pcre perl pipe plugin_stardict png poliykit polkitqt portaudio ppp pppd private-headers pulseaudio pvr pygments python qt4 quicktime readline realtime redeyes ree18 rtmp ruby savedconfig schroedinger sdl semantic-desktop session socks5 speex spell sql sqlite sse sse2 sse4 ssl ssse3 subversion svg synaptics sysfs tcpd theora threads tiff trace truetype unicode usb v4l2 vaapi vdpau vhosts vorbis x264 xanim xattr xcb xcomposite xetex xine xinerama xml xorg xv xvid xvmc xz zh zh_CN zh_TW 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 stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en zh en_GB en_US zh_CN zh_HK zh_TW" MULTILIB_ABIS="amd64 x86" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64 ppc64" QEMU_USER_TARGETS="i386 x86_64 ppc64" RUBY_TARGETS="ruby18 ree18" USERLAND="GNU" VIDEO_CARDS="v4l2 nvidia intel vesa fbdev nouveau" XTABLES_ADDONS="cui gfw zhang" multilib_abi="amd64 x86"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 颜烈彬 2011-10-03 17:19:25 UTC
the emerge ended successfully, but got error mentioned above
Comment 4 颜烈彬 2011-10-03 17:24:38 UTC
(In reply to comment #3)
> the emerge ended successfully, but got error mentioned above

PS. I enabled multilib-overlay two days ago and have being working on emerge entire world.
Comment 5 Ian Stakenvicius (RETIRED) gentoo-dev 2011-10-03 20:35:11 UTC
Created attachment 288721 [details]
build log for test compile against libpng-1.5.x

OK, well, when I try it i get a compilation error, in that image.cxx fails to compile (with the usual libpng-1.2 calls that should have been updated a long time ago)..  The fact that compilation does not die is an additional error on this package.

I've attached my build log.
Comment 6 Ian Stakenvicius (RETIRED) gentoo-dev 2011-10-03 21:35:40 UTC
Created attachment 288725 [details]
really quick hack to provide libpng-1.5 support

This fixes the compile-time issues against libpng-1.5; i did not run-time test this.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2011-10-05 14:00:44 UTC
+  05 Oct 2011; Samuli Suominen <ssuominen@gentoo.org>
+  +files/htmldoc-libpng15.patch, htmldoc-1.8.27-r2.ebuild:
+  Fix building with libpng15 wrt #385521

I've used the patch from

ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/www/htmldoc/patches/patch-ae

Reported to upstream here

http://www.htmldoc.org/str.php?L243+P0+S-2+C0+I0+E0+M10+Q