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

Bug 254459

Summary: dev-cpp/commoncpp2-1.6.1 fails to compile with USE="gnutls"
Product: Gentoo Linux Reporter: Matija "hook" Šuklje <matija>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: cybercom
Priority: High    
Version: 2007.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Matija "hook" Šuklje 2009-01-10 19:35:43 UTC
When emerging dev-cpp/commoncpp2-1.6.1 with USE="gnutls" it fails on compile.

Reproducabe:
*) so far I've succeeded to reproduce this bug 5 times out of 5 since I enabled USE="gnutls" on different portage syncs
*) without USE="gnutls" the same version compiled fine for me

Steps of reproduction:
1) have USE="gnutls" enabled
2) emerge dev-cpp/commoncpp2-1.6.1
3) get error

Results:
*) fail at compilation (see below)

Expected results:
*) package marked as stable to compile fine

Last few lines of emerge:
--[start]--
/bin/sh ../libtool --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../inc    -I../src -DCCXX_EXPORT_LIBRARY  -D_GNU_SOURCE -I../inc  -march=athlon64 -msse3 -pipe -O2 -MT lockfile.lo -MD -MP -MF .deps/lockfile.Tpo -c -o lockfile.lo lockfile.cpp
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../inc -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../inc -march=athlon64 -msse3 -pipe -O2 -MT lockfile.lo -MD -MP -MF .deps/lockfile.Tpo -c lockfile.cpp  -fPIC -DPIC -o .libs/lockfile.o
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../inc -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../inc -march=athlon64 -msse3 -pipe -O2 -MT lockfile.lo -MD -MP -MF .deps/lockfile.Tpo -c lockfile.cpp -o lockfile.o >/dev/null 2>&1
mv -f .deps/lockfile.Tpo .deps/lockfile.Plo
/bin/sh ../libtool --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../inc    -I../src -DCCXX_EXPORT_LIBRARY  -D_GNU_SOURCE -I../inc  -march=athlon64 -msse3 -pipe -O2 -MT nat.lo -MD -MP -MF .deps/nat.Tpo -c -o nat.lo nat.cpp
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../inc -I../src -DCCXX_EXPORT_LIBRARY -D_GNU_SOURCE -I../inc -march=athlon64 -msse3 -pipe -O2 -MT nat.lo -MD -MP -MF .deps/nat.Tpo -c nat.cpp  -fPIC -DPIC -o .libs/nat.o
nat.cpp: In function 'ost::natResult ost::natv4Lookup(ost::SOCKET, sockaddr_in*)':
nat.cpp:167: error: 'SO_ORIGINAL_DST' was not declared in this scope
make[2]: *** [nat.lo] Error 1
make[2]: Leaving directory `/var/tmp/paludis/dev-cpp-commoncpp2-1.6.1/work/commoncpp2-1.6.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/paludis/dev-cpp-commoncpp2-1.6.1/work/commoncpp2-1.6.1'
make: *** [all] Error 2
/usr/libexec/paludis/utils/emake: emake returned error 2

!!! ERROR in dev-cpp/commoncpp2-1.6.1:
!!! In src_compile at line 3765
!!! emake failed

!!! Call stack:
!!!    * src_compile (/var/tmp/paludis/dev-cpp-commoncpp2-1.6.1/temp/loadsaveenv:3765)
!!!    * ebuild_f_compile (/usr/libexec/paludis/0/src_compile.bash:49)
!!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:482)
!!!    * main (/usr/libexec/paludis/ebuild.bash:498)

diefunc: making ebuild PID 14856 exit with error
die trap: exiting with error.
--[stop]--
Comment 1 Matija "hook" Šuklje 2009-01-10 19:37:49 UTC
My relevant 'paludis --info dev-cpp/commoncpp2' output (note: the '::installed' version is without USE="gnutls", the '::gentoo' version won't install due to that useflag enabled now):
--[start]--
paludis 0.32.4
Paludis build information:
    Compiler:
        CXX:                   x86_64-pc-linux-gnu-g++ 4.1.2 20070214 (  (gdc 0.24, using dmd 1.020)) (Gentoo 4.1.2 p1.1)
        CXXFLAGS:              -march=athlon64 -msse3 -pipe -O2
        LDFLAGS:               -Wl,-O1
        DATE:                  2008-12-24T07:05:45+0100

    Libraries:
        C++ Library:           GNU libstdc++ 20070214

    Reduced Privs:
        reduced_uid:           115
        reduced_uid->name:     paludisbuild
        reduced_uid->dir:      /var/tmp/paludis
        reduced_gid:           250
        reduced_gid->name:     portage

    Paths:
        DATADIR:               /usr/share
        LIBDIR:                /usr/lib64
        LIBEXECDIR:            /usr/libexec
        SYSCONFDIR:            /etc
        PYTHONINSTALLDIR:      /usr/lib64/python2.5/site-packages
        RUBYINSTALLDIR:        /usr/lib64/ruby/site_ruby/1.8/x86_64-linux

Environment:
    Format:                    paludis
    Config dir:                /etc/paludis
    World file:                /var/db/pkg/world

Repository installed-virtuals:
    format:                    installed_virtuals
    root:                      /

Repository virtuals:
    format:                    virtuals

Repository gentoo:
    format:                    ebuild
    location:                  /usr/portage
    append_repository_name_to_write_cache: true
    binary_destination:        false
    binary_keywords:
    binary_uri_prefix:
    builddir:                  /var/tmp/paludis
    cache:                     /usr/portage/metadata/cache
    distdir:                   /mnt/distfiles
    eapi_when_unknown:         0
    eapi_when_unspecified:     0
    eclassdirs:                /usr/portage/eclass
    ignore_deprecated_profiles: false
    layout:                    traditional
    names_cache:               /usr/portage/.cache/names
    newsdir:                   /usr/portage/metadata/news
    profile_eapi_when_unspecified: 0
    profiles:                  /usr/portage/profiles/default/linux/amd64/2008.0
    securitydir:               /usr/portage/metadata/glsa
    setsdir:                   /usr/portage/sets
    sync:                      rsync://rsync.gentoo.org/gentoo-portage
    sync_options:
    use_manifest:              use
    write_cache:               /var/cache/paludis/metadata

    Package information:
        app-admin/eselect-compiler: (none)
        app-shells/bash:       3.2_p39
        dev-java/java-config:  1.3.7-r1 2.1.6-r1
        dev-lang/python:       2.5.2-r7
        dev-python/pycrypto:   2.0.1-r6
        dev-util/ccache:       (none)
        dev-util/cmake:        2.4.6-r1
        dev-util/confcache:    (none)
        sys-apps/baselayout:   2.0.0
        sys-apps/openrc:       0.4.1-r1
        sys-apps/sandbox:      1.2.18.1-r2
        sys-devel/autoconf:    2.13 2.63
        sys-devel/automake:    1.10.2 1.4_p6 1.5 1.6.3 1.7.9-r1 1.8.5-r3 1.9.6-r2
        sys-devel/binutils:    2.18-r3
        sys-devel/gcc-config:  1.4.0-r4
        sys-devel/libtool:     1.5.26
        virtual/os-headers:    2.6.27-r2 (for sys-kernel/linux-headers::installed)

Repository installed:
    format:                    vdb
    location:                  /var/db/pkg
    builddir:                  /var/tmp/paludis
    names_cache:               /var/db/pkg/.cache/names
    provides_cache:            /var/db/pkg/.cache/provides
    root:                      /

Package dev-cpp/commoncpp2-1.6.1::installed:

        >>> Running ebuild phase killoldmisc as paludisbuild:portage...
        bunzip2 < /var/db/pkg/dev-cpp/commoncpp2-1.6.1/environment.bz2 > /var/tmp/paludis/environment-dev-cpp-commoncpp2-1.6.1-25352
        ebuild_scrub_environment /var/tmp/paludis/environment-dev-cpp-commoncpp2-1.6.1-25352
        ebuild_safe_source /var/tmp/paludis/environment-dev-cpp-commoncpp2-1.6.1-25352
        rm /var/tmp/paludis/environment-dev-cpp-commoncpp2-1.6.1-25352
        >>> Starting builtin_killoldmisc
        >>> Done builtin_killoldmisc
        >>> Completed ebuild phase killoldmisc
        >>> Running ebuild phases initmisc infovars info as paludisbuild:portage...
        bunzip2 < /var/db/pkg/dev-cpp/commoncpp2-1.6.1/environment.bz2 > /var/tmp/paludis/environment-dev-cpp-commoncpp2-1.6.1-25407
        ebuild_scrub_environment /var/tmp/paludis/environment-dev-cpp-commoncpp2-1.6.1-25407
        ebuild_safe_source /var/tmp/paludis/environment-dev-cpp-commoncpp2-1.6.1-25407
        rm /var/tmp/paludis/environment-dev-cpp-commoncpp2-1.6.1-25407
        >>> Starting builtin_initmisc
        >>> Done builtin_initmisc
        >>> Starting builtin_infovars
        ACCEPT_KEYWORDS=
        CBUILD=x86_64-pc-linux-gnu
        CFLAGS=-march=athlon64 -msse3 -pipe -O2
        CHOST=x86_64-pc-linux-gnu
        CONFIG_PROTECT=
        CONFIG_PROTECT_MASK=
        CPPFLAGS=
        CTARGET=
        CXXFLAGS=-march=athlon64 -msse3 -pipe -O2
        DISTDIR=/var/db/pkg/dev-cpp/commoncpp2-1.6.1
        FEATURES=ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch
        FFLAGS=
        GENTOO_MIRRORS=
        INSTALL_MASK=
        LANG=
        LC_ALL=sl_SI.utf8
        LDFLAGS=-Wl,-O1
        LINGUAS=sl
        MAKEOPTS=-j2
        PORTAGE_COMPRESS=
        PORTAGE_COMPRESS_FLAGS=
        PORTAGE_RSYNC_EXTRA_OPTS=
        PORTAGE_RSYNC_OPTS=
        PORTAGE_TMPDIR=/var/tmp/paludis
        PORTDIR=/var/db/pkg/dev-cpp/commoncpp2-1.6.1
        PORTDIR_OVERLAY=
        SYNC=
        USE=amd64 elibc_glibc ipv6 kernel_linux userland_GNU
        >>> Done builtin_infovars
        >>> Starting pkg_info
        No additional information available
        >>> Done pkg_info
        >>> Completed ebuild phases initmisc infovars info
        >>> Running ebuild phase tidyupmisc as paludisbuild:portage...
        bunzip2 < /var/db/pkg/dev-cpp/commoncpp2-1.6.1/environment.bz2 > /var/tmp/paludis/environment-dev-cpp-commoncpp2-1.6.1-25483
        ebuild_scrub_environment /var/tmp/paludis/environment-dev-cpp-commoncpp2-1.6.1-25483
        ebuild_safe_source /var/tmp/paludis/environment-dev-cpp-commoncpp2-1.6.1-25483
        rm /var/tmp/paludis/environment-dev-cpp-commoncpp2-1.6.1-25483
        >>> Starting builtin_tidyupmisc
        rm -fr /var/tmp/paludis/dev-cpp-commoncpp2-1.6.1-misc
        >>> Done builtin_tidyupmisc
        >>> Completed ebuild phase tidyupmisc

Package dev-cpp/commoncpp2-1.6.1:0::gentoo:

        >>> Running ebuild phase killoldmisc as paludisbuild:portage...
        >>> Starting builtin_killoldmisc
        >>> Done builtin_killoldmisc
        >>> Completed ebuild phase killoldmisc
        >>> Running ebuild phases initmisc infovars as paludisbuild:portage...
        >>> Starting builtin_initmisc
        >>> Done builtin_initmisc
        >>> Starting builtin_infovars
        ACCEPT_KEYWORDS=amd64
        CBUILD=x86_64-pc-linux-gnu
        CFLAGS=-march=athlon64 -msse3 -pipe -O2
        CHOST=x86_64-pc-linux-gnu
        CONFIG_PROTECT=
        CONFIG_PROTECT_MASK=
        CPPFLAGS=
        CTARGET=
        CXXFLAGS=-march=athlon64 -msse3 -pipe -O2
        DISTDIR=/mnt/distfiles
        FEATURES=strict sfperms
        FFLAGS=
        GENTOO_MIRRORS=
        INSTALL_MASK=
        LANG=
        LC_ALL=C
        LDFLAGS=-Wl,-O1
        LINGUAS=sl
        MAKEOPTS=-j1
        PORTAGE_COMPRESS=
        PORTAGE_COMPRESS_FLAGS=
        PORTAGE_RSYNC_EXTRA_OPTS=
        PORTAGE_RSYNC_OPTS=
        PORTAGE_TMPDIR=/var/tmp/paludis
        PORTDIR=/usr/portage
        PORTDIR_OVERLAY=
        SYNC=
        USE=gnutls ipv6 amd64 alsa_cards_ali5451 alsa_cards_als4000 alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106 alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371 alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mmap_emul alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic apache2_modules_authn_alias apache2_modules_authn_anon apache2_modules_authn_dbm apache2_modules_authn_default apache2_modules_authn_file apache2_modules_authz_dbm apache2_modules_authz_default apache2_modules_authz_groupfile apache2_modules_authz_host apache2_modules_authz_owner apache2_modules_authz_user apache2_modules_autoindex apache2_modules_cache apache2_modules_dav apache2_modules_dav_fs apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir apache2_modules_disk_cache apache2_modules_env apache2_modules_expires apache2_modules_ext_filter apache2_modules_file_cache apache2_modules_filter apache2_modules_headers apache2_modules_include apache2_modules_info apache2_modules_log_config apache2_modules_logio apache2_modules_mem_cache apache2_modules_mime apache2_modules_mime_magic apache2_modules_negotiation apache2_modules_rewrite apache2_modules_setenvif apache2_modules_speling apache2_modules_status apache2_modules_unique_id apache2_modules_userdir apache2_modules_usertrack apache2_modules_vhost_alias elibc_glibc input_devices_evdev input_devices_synaptics kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text linguas_sl userland_GNU video_cards_radeon amd64
        >>> Done builtin_infovars
        >>> Completed ebuild phases initmisc infovars
        >>> Running ebuild phase tidyupmisc as paludisbuild:portage...
        >>> Starting builtin_tidyupmisc
        rm -fr /var/tmp/paludis/dev-cpp-commoncpp2-1.6.1-misc
        >>> Done builtin_tidyupmisc
        >>> Completed ebuild phase tidyupmisc
--[stop]--

P.S. I've omitted the overlay info as otherwise the comment was too large and I didn't think them relevant for this report.
Comment 2 Per Pascal Seeland 2009-01-11 11:28:52 UTC
Looks like http://bugs.gentoo.org/show_bug.cgi?id=236177 
Did you try the suggestions presented there. They worked for me. This bug looks like a duplicate of it.
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-01-13 04:50:30 UTC

*** This bug has been marked as a duplicate of bug 236177 ***