Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 576448 - dev-libs/skalibs-2.3.9.0 configure fails with: ./configure: unable to determine socket.lib sysdep
Summary: dev-libs/skalibs-2.3.9.0 configure fails with: ./configure: unable to determi...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-04 15:17 UTC by Marcin Mirosław
Modified: 2016-03-07 08:48 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Mirosław 2016-03-04 15:17:21 UTC
>>> Emerging (1 of 3) dev-libs/skalibs-2.3.9.0::gentoo
 * skalibs-2.3.9.0.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                          [ ok ]
>>> Unpacking source...
>>> Unpacking skalibs-2.3.9.0.tar.gz to /var/tmp/portage/dev-libs/skalibs-2.3.9.0/work
>>> Source unpacked in /var/tmp/portage/dev-libs/skalibs-2.3.9.0/work
>>> Preparing source in /var/tmp/portage/dev-libs/skalibs-2.3.9.0/work/skalibs-2.3.9.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/skalibs-2.3.9.0/work/skalibs-2.3.9.0 ...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --enable-ipv6 --disable-static --dynlibdir=/lib64 --libdir=/usr/lib64/skalibs --datadir=/etc --sysdepdir=/usr/lib64/skalibs --enable-force-devr
Checking for C compiler...
  ... gcc
Checking whether C compiler works... 
  ... yes
Checking target system type...
  ... x86_64-pc-linux-gnu
Checking whether compiler accepts -std=c99 ...
  ... yes
Checking whether compiler accepts -fomit-frame-pointer ...
  ... yes
Checking whether compiler accepts -fno-exceptions ...
  ... yes
Checking whether compiler accepts -fno-unwind-tables ...
  ... yes
Checking whether compiler accepts -fno-asynchronous-unwind-tables ...
  ... yes
Checking whether compiler accepts -Wa,--noexecstack ...
  ... yes
Checking whether compiler accepts -fno-stack-protector ...
  ... yes
Checking whether compiler accepts -Werror=implicit-function-declaration ...
  ... yes
Checking whether compiler accepts -Werror=implicit-int ...
  ... yes
Checking whether compiler accepts -Werror=pointer-sign ...
  ... yes
Checking whether compiler accepts -Werror=pointer-arith ...
  ... yes
Checking whether compiler accepts -ffunction-sections ...
  ... yes
Checking whether compiler accepts -fdata-sections ...
  ... yes
Checking whether linker accepts -Wl,--sort-section=alignment ...
  ... yes
Checking whether linker accepts -Wl,--sort-common ...
  ... yes
Checking whether socket functions need an additional library...
./configure: unable to determine socket.lib sysdep
 * ERROR: dev-libs/skalibs-2.3.9.0::gentoo failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh, line 133:  Called src_configure
 *             environment, line 740:  Called econf '--enable-ipv6' '--disable-static' '--dynlibdir=/lib64' '--libdir=/usr/lib64/skalibs' '--datadir=/etc' '--sysdepdir=/usr/lib64/skalibs' '--enable-force-devr'
 *        phase-helpers.sh, line 662:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line 117:  Called die
 * The specific snippet of code:
 *              die "$@"
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/skalibs-2.3.9.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/skalibs-2.3.9.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/skalibs-2.3.9.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/skalibs-2.3.9.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/skalibs-2.3.9.0/work/skalibs-2.3.9.0'
 * S: '/var/tmp/portage/dev-libs/skalibs-2.3.9.0/work/skalibs-2.3.9.0'

>>> Failed to emerge dev-libs/skalibs-2.3.9.0, Log file:

>>>  '/var/tmp/portage/dev-libs/skalibs-2.3.9.0/temp/build.log'


Reproducible: Always




Portage 2.2.27 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.3, glibc-2.22-r2, 4.4.2-gentoo x86_64)
=================================================================
System uname: Linux-4.4.2-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.2
Timestamp of repository gentoo: Fri, 04 Mar 2016 06:30:01 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.4.3::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://192.168.138.254/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: -O

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fpeel-loops              -fuse-linker-plugin -fuse-ld=gold -fvar-tracking-assignments -gdwarf-4"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
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=native -pipe -fpeel-loops              -fuse-linker-plugin -fuse-ld=gold -fvar-tracking-assignments -gdwarf-4"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=native -pipe -fpeel-loops              -fuse-linker-plugin -fuse-ld=gold -fvar-tracking-assignments -gdwarf-4"
FEATURES="assume-digests binpkg-logs ccache cgroup collision-protect compressdebug config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=native -pipe -fpeel-loops              -fuse-linker-plugin -fuse-ld=gold -fvar-tracking-assignments -gdwarf-4"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="-O"
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 acl acpi aio alsa amd64 apm async bash-completion bittorrent branding bzip2 cairo caps cdda cdr chroot cli consolekit crypt cups cxx dbus declarative dmx dri dvd dvdr emboss encode exif fam firefox ftp gif glamor glibc-omitfp gpl gpm gstreamer iconv idn iproute2 ipv6 ithreads jit jpeg kde kipi laptop lcms libnotify lightning logrotate mad mmap mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses network-cron nls nptl nsplugin nspluginwrapper objc ogg opengl openmp openssl optimization optimized-qmake pam pango pcre pdf phonon plasma png policykit ppds python3 qt3support qt4 readline samba sdl seccomp semantic-desktop session sharedmem smp spell sse sse2 ssl startup-notification svg threads threadsafe tiff tools truetype udev udisks unicode unwind upower urandom usb vim vim-pager vim-syntax vorbis wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zip zlib" ABI_X86="32 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="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 cgid dav dbd deflate dir env expires ext_filter filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id usertrack vhost_alias" APACHE2_MPMS="worker" 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="mmx mmxext sse sse2 sse3 ssse3" DRACUT_MODULES="caps lvm mdraid" 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" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="pl en es es_ES" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev nouveau" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Comment 1 Rafał Mużyło 2016-03-04 15:23:24 UTC
...so, config.log ?
Comment 2 Marcin Mirosław 2016-03-04 15:28:36 UTC
Does not exist...
# find /var/tmp/portage/dev-libs/skalibs-2.3.9.0/ -iname config.log
#
Comment 3 Marcin Mirosław 2016-03-04 15:42:28 UTC
# pwd
/var/tmp/portage/dev-libs/skalibs-2.3.9.0/work/skalibs-2.3.9.0/sysdeps.cfg
# ls -lah
razem 8,5K
drwxr-xr-x 2 portage portage   10 03-04 16:40 .
drwxr-xr-x 7 portage portage   17 03-04 16:40 ..
-rw------- 1 root    root       1 03-04 16:40 rt.lib
-rw------- 1 root    root       1 03-04 16:40 socket.lib
-rw------- 1 root    root       1 03-04 16:40 sysclock.lib
-rw-r--r-- 1 portage portage  553 03-04 16:40 sysdeps
-rw-r--r-- 1 portage portage 1,3K 03-04 16:40 sysdeps.h
-rw------- 1 root    root       1 03-04 16:40 tainnow.lib
-rw-r--r-- 1 portage portage   20 03-04 16:40 target
-rw-r--r-- 1 portage portage    1 03-04 16:40 util.lib

user "portage" can't read files, portage should change permission of files in tarball:/
Comment 4 Rafał Mużyło 2016-03-04 17:09:45 UTC
(In reply to Marcin Mirosław from comment #2)
> Does not exist...
> # find /var/tmp/portage/dev-libs/skalibs-2.3.9.0/ -iname config.log
> #

:roll: useless homebrews

Try to compile and link src/sysdeps/trylsock.c with your CFLAGS.
Post the error.
Comment 5 Marcin Mirosław 2016-03-07 08:48:44 UTC
Ok, I've got it.
Gold linker doesn't like --sort-section=alignment. But this should be catched by configure. configure do check if linker accepts " -Wl,--sort-common" if answer is positive then configure sets "-Wl,--sort-section=alignment" without checking if it works.
Finally:
$ gcc -O2 -march=native -pipe -fpeel-loops -fuse-linker-plugin -fuse-ld=gold -fvar-tracking-assignments -gdwarf-4 -ffunction-sections -fdata-sections -Wl,-O1 -Wl,--as-needed -Wl,--sort-section=alignment -Wl,--sort-common -o /dev/null trylsock.o -lsocket -lnsl
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld.gold: fatal error: --sort-section=alignment: must take one of the following arguments: none, name
collect2: error: ld returned 1 exit status

With ifuse-ld=bfd skalibs configure and compiles fine. Ergh.