Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 591290 - net-p2p/mldonkey-3.1.5-r1 with dev-lang/ocaml-4.03.0 and dev-ml/camlp4-4.03_p1: In function ‘ml_image_pngversion’: src/utils/cdk/gdstubs.c:492:20: error: ‘int32’ undeclared (first use in this function)
Summary: net-p2p/mldonkey-3.1.5-r1 with dev-lang/ocaml-4.03.0 and dev-ml/camlp4-4.03_p...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-15 02:54 UTC by Drunkard Zhang
Modified: 2017-01-31 21:18 UTC (History)
2 users (show)

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


Attachments
failed build log of net-p2p/mldonkey-3.1.5-r1 (build.log,96.58 KB, text/plain)
2016-08-15 02:54 UTC, Drunkard Zhang
Details
patch-src_utils_cdk_gdstubs.patch (patch-src_utils_cdk_gdstubs.patch,392 bytes, patch)
2016-10-14 07:05 UTC, Per Pomsel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Drunkard Zhang 2016-08-15 02:54:02 UTC
After upgraded to =dev-lang/ocaml-4.03.0 and =dev-ml/camlp4-4.03_p1, mldonkey failed to build with gd USE enabled.

With dev-lang/ocaml-4.02.3-r1 and dev-ml/camlp4-4.02.1_p3, the building passed.

Reproducible: Always

Steps to Reproduce:
1. upgrade to dev-lang/ocaml-4.03.0
2. rebuild net-p2p/mldonkey with USE gd

Actual Results:  
src/utils/cdk/gdstubs.c: In function ‘ml_image_pngversion’:
src/utils/cdk/gdstubs.c:492:20: error: ‘int32’ undeclared (first use in this function)
   v = copy_int32 ((int32)png_access_version_number());
                    ^
src/utils/cdk/gdstubs.c:492:20: note: each undeclared identifier is reported only once for each function it appears in
src/utils/cdk/gdstubs.c:492:26: error: expected ‘)’ before ‘png_access_version_number’
   v = copy_int32 ((int32)png_access_version_number());



Portage 2.3.0 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-5.4.0, glibc-2.22-r4, 4.7.0-rc7+ x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.7.0-rc7+-x86_64-Intel-R-_Core-TM-_i7-6700HQ_CPU_@_2.60GHz-with-gentoo-2.2
KiB Mem:    24589416 total,   3902208 free
KiB Swap:    8388604 total,   8346120 free
sh bash 4.3_p46
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p46::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r1::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.6.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2-r1::gentoo
sys-apps/openrc:          0.21.3::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.26.1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

anyc
    location: /var/lib/layman/anyc
    masters: gentoo
    priority: 50

betagarden
    location: /var/lib/layman/betagarden
    masters: gentoo
    priority: 50

drunkard
    location: /var/lib/layman/drunkard
    masters: gentoo
    priority: 50

gnome
    location: /var/lib/layman/gnome
    masters: gentoo
    priority: 50

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://anongit.gentoo.org/repo/gentoo.git
    priority: 9999

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=haswell -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=haswell -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles merge-sync news nodoc noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.aliyun.com/gentoo/ http://mirrors.sohu.com/gentoo/ http://mirrors.163.com/gentoo/ http://mirrors.kernel.org/gentoo/ "
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j10"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib accessibility acl acpi aio alsa amd64 amr ao ap apm audit bash-completion berkdb bluetooth bluray branding bzip2 cairo caps cdda cjk cleartype cli colord cracklib crypt cups cxx dbus dga djvu dri dri3 drm dts dvd dvdr eds egl emboss encode epoll evo exif fam ffmpeg firefox flac fontconfig fortran gallium gconf gdbm gegl geoip gif gimp glamor gles gles2 gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 hidpi iconv icu idn imagemagick inotify introspection ipv6 jack jpeg jpeg2k kdbus kms lcms libass libbluray libinput libnotify libsamplerate libsecret lz4 lzma lzo mad minizip mmap mmx mmxext mng modules mp3 mp4 mpeg mpi mtp multilib natspec nautilus ncurses networkmanager nls nptl ogg openal opencc opencl openexr opengl openmp opus pam pango pcre pdf png policykit postgres postscript ppds pulseaudio raw readline realtime sdl seccomp session sftp smp sse sse2 ssh ssl startup-notification svg systemd theora threads tiff tracker truetype udev udisks unicode upower usb usbredir v4l v4l2 vaapi vdpau vim-syntax vorbis vpx wayland webp wifi wxwidgets x264 xattr xcb xinerama xkb xml xmp xpm xrandr xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="gnutls" 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 ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" L10N="zh zh-CN zh-HK zh-TW zh_CN zh_HK zh_TW en ru de bo ug" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="zh zh-CN zh-HK zh-TW zh_CN zh_HK zh_TW en ru de bo ug" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="nouveau i915 i965 intel v4l" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

net-p2p/mldonkey-3.1.5-r1::gentoo was built with the following:
USE="bittorrent fasttrack gnutella gtk magic ocamlopt -doc -gd -guionly" ABI_X86="64"
Comment 1 Drunkard Zhang 2016-08-15 02:54:54 UTC
Created attachment 443338 [details]
failed build log of net-p2p/mldonkey-3.1.5-r1
Comment 2 Toralf Förster gentoo-dev 2016-08-16 11:22:48 UTC
same at @ amd64-gnome-unstable_20160813-104105
Comment 3 Per Pomsel 2016-10-14 07:04:45 UTC
I found the following patch for this issue: ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/net/mldonkey/patches/patch-src_utils_cdk_gdstubs.c .
Thanks to the NetBSD Team.
Comment 4 Per Pomsel 2016-10-14 07:05:41 UTC
Created attachment 450194 [details, diff]
patch-src_utils_cdk_gdstubs.patch
Comment 5 Alexis Ballier gentoo-dev 2017-01-31 21:18:55 UTC
commit 1ddc06bf06bc144de45139545ff4eb6f660b443c
Author: Alexis Ballier <aballier@gentoo.org>
Date:   Sun May 1 18:01:08 2016 +0200

    net-p2p/mldonkey: fix build with ocaml 4.03


was already applied anyway