Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mldonkey +gtk fails due to libpng
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
pomaranca
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2006
Posts: 87
Location: ljubljana

PostPosted: Wed Jan 23, 2013 1:03 pm    Post subject: mldonkey +gtk fails due to libpng Reply with quote

Has anyone successfully installed net-p2p/mldonkey-3.1.0 with GTK+ GUI?

This is what bothers me...
Code:

~ # emerge net-p2p/mldonkey
[ebuild   R    ] net-p2p/mldonkey-3.1.0  USE="bittorrent fasttrack gd gnutella gtk* ocamlopt -doc -guionly -magic" 0 kB
...
ocamlopt.opt -inline 10 -linkall -o mlnet \
     bigarray.cmxa unix.cmxa str.cmxa nums.cmxa -ccopt "-Wl,-O1 -Wl,--as-needed " -cclib "-lz  " -cclib -lbz2 -ccopt "-pthread" \
  \ 
 -cclib "-lgd -ljpeg -lfontconfig -lfreetype -lz -lm" -ccopt "-Wl,-O1 -Wl,--as-needed -lpng15" \
 -cc 'x86_64-pc-linux-gnu-g++ -O2 -pipe -fomit-frame-pointer -march=native -mtune=native' -ccopt '-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' \
  \
  \
  \
-I build    build/extlib.cmxa    build/cdk.cmxa    build/bitstring.cmxa    build/magic.cmxa    build/common.cmxa    build/client.cmxa    build/core.cmxa    build/driver.cmxa    src/daemon/common/commonMain.cmx
ocamlopt.opt -inline 10 -linkall -o mlnet+gui \
     bigarray.cmxa unix.cmxa str.cmxa nums.cmxa -ccopt "-Wl,-O1 -Wl,--as-needed " -cclib "-lz  " -cclib -lbz2 -ccopt "-pthread" \
-ccopt "" -cclib "-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0   -lX11" -I +lablgtk2  lablgtk.cmxa gtkInit.cmx lablrsvg.cmxa  \
 -cclib "-lgd -ljpeg -lfontconfig -lfreetype -lz -lm" -ccopt "-Wl,-O1 -Wl,--as-needed -lpng15" \
 -cc 'x86_64-pc-linux-gnu-g++ -O2 -pipe -fomit-frame-pointer -march=native -mtune=native' -ccopt '-fno-omit-frame-pointer -mno-omit-leaf-frame-pointer' \
  \
  \
  \
-I build    build/bitstring.cmxa    build/magic.cmxa    build/extlib.cmxa    build/cdk.cmxa    build/common.cmxa    build/client.cmxa    build/core.cmxa    build/driver.cmxa    build/icons.cmxa    build/guibase.cmxa    build/gui.cmxa    src/daemon/common/commonMain.cmx
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../../x86_64-pc-linux-gnu/bin/ld: src/utils/cdk/gdstubs.o: undefined reference to symbol 'png_access_version_number@@PNG15_0'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../../x86_64-pc-linux-gnu/bin/ld: note: 'png_access_version_number@@PNG15_0' is defined in DSO /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../../lib64/libpng15.so so try adding it to the linker command line
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../../lib64/libpng15.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
File "caml_startup", line 1, characters 0-1:
Error: Error during linking
make: *** [mlnet+gui] Error 2
emake failed
 * ERROR: net-p2p/mldonkey-3.1.0 failed (compile phase):
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line  93:  Called src_compile
 *   environment, line 3219:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed";
 *
 * If you need support, post the output of `emerge --info '=net-p2p/mldonkey-3.1.0'`,
 * the complete build log and the output of `emerge -pqv '=net-p2p/mldonkey-3.1.0'`.
 * The complete build log is located at '/var/tmp/portage/net-p2p/mldonkey-3.1.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-p2p/mldonkey-3.1.0/temp/environment'.
 * Working directory: '/var/tmp/portage/net-p2p/mldonkey-3.1.0/work/mldonkey-3.1.0'
 * S: '/var/tmp/portage/net-p2p/mldonkey-3.1.0/work/mldonkey-3.1.0'


Code:

~ # emerge --info '=net-p2p/mldonkey-3.1.0'
Portage 2.1.11.31 (default/linux/amd64/10.0, gcc-4.5.4, glibc-2.15-r3, 3.6.11-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.6.11-gentoo-x86_64-AMD_Phenom-tm-_II_X4_955_Processor-with-gentoo-2.1
Timestamp of tree: Mon, 21 Jan 2013 09:30:01 +0000
ld GNU ld (GNU Binutils) 2.22
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.6.8, 2.7.3-r2, 3.1.5, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo gentoo-ubuntu-one x-portage x-arduino
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=native -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /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"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=native -mtune=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/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="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gentoo-ubuntu-one /usr/local/portage /usr/local/overlays/arduino"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa amd64 apache2 apm avi bash-completion berkdb bluetooth branding bzip2 cblas cli consolekit cracklib crypt css cups cxx dbus djvu dvb dvd encode examples ffmpeg fftw flac fortran fuse gd gdbm gif gnome gphoto2 gpm gtk iconv ipv6 java jpeg latex lm_sensors logrotate matroska mmx modules mp3 mp4 mpeg mpi mudflap multilib mysql mysqsl ncurses nforce2 nls nptl nsplugin nvidia offensive ogg ogm opengl openmp pam pcre pdf perl php pmu png policykit postscript pulseaudio python qt3support qt4 quicktime readline samba session sms snmp sound sse sse2 ssl svg tcpd theora tiff tk truetype udev unicode usb v4l v4l2 vhosts vorbis wifi x264 xcomposite xinerama xvid 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="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" CAMERAS="canon" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia nv" 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

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

net-p2p/mldonkey-3.1.0 was built with the following:
USE="bittorrent fasttrack gd gnutella (multilib) ocamlopt -doc -gtk -guionly -magic"


Code:

~ # emerge -pqv '=net-p2p/mldonkey-3.1.0'
[ebuild   R   ] net-p2p/mldonkey-3.1.0  USE="bittorrent fasttrack gd gnutella gtk* ocamlopt -doc -guionly -magic"
Back to top
View user's profile Send private message
dappiu
Apprentice
Apprentice


Joined: 14 Mar 2005
Posts: 242
Location: Pisa, Italy

PostPosted: Thu Jan 31, 2013 1:39 am    Post subject: Reply with quote

A first solution here --> https://bugs.gentoo.org/show_bug.cgi?id=432772

Apply the patch on the attachment 335880: fix DSO problem.
It worked for me.
_________________
If the human brain were so simple that we could understand it, we would be so simple we couldn't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum