After the recent update to python (when slot changed to "3.x/3.xm"), libtorrent configure script fails: checking for Python include path... -I/usr/include/python3.4m checking for Python library path... -L/usr/lib64/python3.4/config -lpython3.4 checking for Python site-packages path... /usr/lib64/python3.4/site-packages checking python extra libraries... -lpthread -ldl -lutil checking consistency of all components of python development environment... no configure: error: in `/var/portage/tmp/portage/net-libs/rb_libtorrent-1.0.7/work/libtorrent-rasterbar-1.0.7': configure: error: Could not link test program to Python. Maybe the main Python library has been installed in some non-standard library path. If so, pass it to configure, via the LDFLAGS environment variable. Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib" ============================================================================ ERROR! You probably have to install the development version of the Python package for your distribution. The exact name of this package varies among them. ============================================================================ Reproducible: Always Steps to Reproduce: 1. emerge -1 net-libs/rb_libtorrent # emerge --info net-libs/rb_libtorrent Portage 2.2.26 (python 3.5.0-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-5.3.0, glibc-2.22-r1, 4.3.0-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.3.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-4810MQ_CPU_@_2.80GHz-with-gentoo-2.2 KiB Mem: 32867416 total, 1523916 free KiB Swap: 33554428 total, 33484132 free Timestamp of repository gentoo: Thu, 10 Dec 2015 17:45:01 +0000 sh bash 4.3_p42 ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 app-shells/bash: 4.3_p42::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.22.0::gentoo dev-lang/python: 2.7.11::gentoo, 3.4.3-r4::gentoo, 3.5.0-r3::gentoo dev-util/cmake: 3.4.1::gentoo dev-util/pkgconfig: 0.29::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/sandbox: 2.9::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r1::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25.1-r1::gentoo sys-devel/gcc: 4.9.3::gentoo, 5.2.0::gentoo, 5.3.0::gentoo sys-devel/gcc-config: 1.8-r1::gentoo sys-devel/libtool: 2.4.6-r1::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers) sys-libs/glibc: 2.22-r1::gentoo Repositories: gentoo location: /var/portage/gentoo sync-type: rsync sync-uri: rsync://rsync.de.gentoo.org/gentoo-portage priority: -1000 sync-rsync-extra-opts: --quiet andy location: /var/portage/repository/andy sync-type: git sync-uri: git://anongit.gentoo.org/user/andy.git masters: gentoo priority: 50 bobwya location: /var/portage/repository/bobwya sync-type: git sync-uri: https://github.com/bobwya/miscellaneous_ebuilds.git masters: gentoo priority: 50 dotnet location: /var/portage/repository/dotnet sync-type: git sync-uri: git://anongit.gentoo.org/proj/dotnet.git masters: gentoo priority: 50 eigenlay location: /var/portage/repository/eigenlay sync-type: git sync-uri: https://git.gitorious.org/eigennet/eigenlay.git masters: gentoo priority: 50 gamerlay location: /var/portage/repository/gamerlay sync-type: git sync-uri: git://anongit.gentoo.org/proj/gamerlay.git masters: gentoo priority: 50 kde location: /var/portage/repository/kde sync-type: git sync-uri: git://anongit.gentoo.org/proj/kde.git masters: gentoo priority: 50 multimedia location: /var/portage/repository/multimedia sync-type: git sync-uri: https://github.com/gentoo/multimedia.git masters: gentoo priority: 50 mv location: /var/portage/repository/mv sync-type: git sync-uri: git://anongit.gentoo.org/user/mv.git masters: gentoo priority: 50 qt location: /var/portage/repository/qt sync-type: git sync-uri: git://anongit.gentoo.org/proj/qt.git masters: gentoo priority: 50 raiagent location: /var/portage/repository/raiagent sync-type: git sync-uri: git://github.com/leycec/raiagent.git masters: gentoo priority: 50 rion location: /var/portage/repository/rion sync-type: git sync-uri: git://github.com/rion-overlay/rion-overlay.git masters: gentoo priority: 50 science location: /var/portage/repository/science sync-type: git sync-uri: git://anongit.gentoo.org/proj/sci.git masters: gentoo priority: 50 spike location: /var/portage/repository/spike sync-type: git sync-uri: https://github.com/Spike-Pentesting/spike-overlay.git masters: gentoo priority: 50 steam-overlay location: /var/portage/repository/steam-overlay sync-type: git sync-uri: git://github.com/anyc/steam-overlay.git masters: gentoo priority: 50 sunrise location: /var/portage/repository/sunrise sync-type: git sync-uri: https://anongit.gentoo.org/git/proj/sunrise-reviewed.git masters: gentoo priority: 50 systemd location: /var/portage/repository/systemd sync-type: git sync-uri: git://anongit.gentoo.org/user/systemd.git masters: gentoo priority: 50 x11 location: /var/portage/repository/x11 sync-type: git sync-uri: git://anongit.gentoo.org/proj/x11 masters: gentoo priority: 50 fontconfig-ultimate location: /var/portage/repository/fontconfig-ultimate masters: gentoo priority: 80 my-gentoo location: /var/portage/repository/my-gentoo masters: gentoo priority: 80 xanf location: /var/portage/repository/xanf masters: gentoo priority: 80 Installed sets: @system ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA @FSF-APPROVED google-chrome skype-eula dlj-1.1 PUEL Google-TOS googleearth TeamViewer Oracle-BCLA-JavaSE skype-4.0.0.7-copyright AdobeFlash-11.x Intel-SDP" 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/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0" 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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/portage/distfiles" EMERGE_DEFAULT_OPTS="--quiet-build --keep-going" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs cgroup collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://de-mirror.org/gentoo/" LANG="uk_UA.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4" PKGDIR="/var/portage/packages" PORTAGE_COMPRESS="xz" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--quiet" 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" PORTAGE_TMPDIR="/var/portage/tmp" USE="X a52 aac acl acpi alsa amd64 amr apng attica avahi bash-completion berkdb bluetooth bluray branding bs2b btrfs bzip2 cairo canberra caps cdda cdr cli colord cracklib crypt css cups cxx dbus declarative dirac djvu dovecot dri dts dv dvd dvdnav dvdr efi egl emboss encode exif faac fam ffmpeg firefox flac fontconfig fortran fuse gdbm geoip gif git glamor gnuplot gnutls gold gpm gsm gstreamer gtk gtk3 harfbuzz iconv idn ieee1394 imagemagick inotify iproute2 ipv6 jemalloc jit jpeg jpeg2k kde kerberos kipi lame lapack latex lcms ldap libass libnotify libsamplerate libsecret live lto luatex lzma mad metalink mmx mmxext mng modules mp3 mp4 mpeg mpi mtp multicall multilib ncurses netlink network networkmanager nfs nls nptl ogg openexr opengl openmp pam pango pch pcre pdf phonon pkcs11 plasma png policykit postscript ppds pulseaudio qml qt3support qt4 qt5 quicktime quvi radio readline romio rss rtmp samba scanner sctp sdl seccomp semantic-desktop session slp smartcard smp speex spell sqlite sse sse2 ssl startup-notification svg symlink system-icu system-sqlite systemd taglib tcpd theora threads thumbnail tiff truetype udev udisks unicode upnp upower usb v4l v4l2 vaapi vdpau vim-syntax vorbis vpx wayland widgets wifi wxwidgets x264 x265 xattr xcb xcomposite xetex xft xinerama xml xmp xrandr xscreensaver xv xvid yv12 zeroconf zlib zsh-completion" ABI_X86="64" 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" 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 proxy" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2 canon ptp2 fuji" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma fma3 mmx mmxext popcnt sse sse2 sse3 sse4 sse4_1 sse4_2 ssse3" DRACUT_MODULES="caps systemd" ELIBC="glibc" GPSD_PROTOCOLS="garmin garmintxt gpsclock timing" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="keyboard mouse evdev evdev synaptics joystick libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver" LINGUAS="en en_GB eo de ru uk ru_RU uk_UA" LIRC_DEVICES="alsa_usb" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4 python3_5" RUBY_TARGETS="ruby20 ruby21 ruby22" SANE_BACKENDS="epson2 net" USERLAND="GNU" VIDEO_CARDS="v4l radeon radeonsi intel i965 amdgpu" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, USE_PYTHON ================================================================= Package Settings ================================================================= net-libs/rb_libtorrent-1.0.7::gentoo was built with the following: USE="doc python ssl -debug -examples -static-libs -test" ABI_X86="64" PYTHON_TARGETS="python2_7 python3_4 -python3_3"
Created attachment 418944 [details] build log
Created attachment 418946 [details] config.log
However, /usr/lib64/pkgconfig/python-3.4.pc contains correct library name: Libs: -L${libdir} -lpython3.4m Cflags: -I${includedir}/python3.4m
Looks like the configure script here doesn't use pkgconfig for this: PYTHON_LDFLAGS="-L$ac_python_libdir -lpython$ac_python_version"
Same for me with python use flag.
Same,can build with "USE=-python_targets_python3_4".
Updating m4/ax_python_devel.m4 to latest version (http://www.gnu.org/software/autoconf-archive/ax_python_devel.html) fixes that, I have opened a pull request upstream: https://github.com/arvidn/libtorrent/pull/324
I'm guessing this should block this bug as well: https://bugs.gentoo.org/show_bug.cgi?id=567924
Indeed, thanks!
Created attachment 419886 [details, diff] ax_python_devel.m4.patch This is a quick fix patch as of @Bernard Cafarelli upstream solution (made out of this: https://github.com/arvidn/libtorrent/commit/ecdd446ef4377d7a9a2206ce2b184a666f9f82a2 upstream commit) It can be used as portage user patch and fixes the compilation problem with =net-libs/rb_libtorrent-1.0.7 I upload it here, so users with the same problem can fix it temporary until the new upstream version of rb_libtorrent makes its way to portage or a fix for the current ebuild is released in portage... Thanks
Thanks PhobosK! The Patch works.
*** Bug 569600 has been marked as a duplicate of this bug. ***
*** Bug 570148 has been marked as a duplicate of this bug. ***
thanks. patch works
Patch works here too. Thank you.
I presume this fix made it to 1.0.8 so lets continue to #572508