Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 203572 - compile problem for net-p2p/deluge-0.5.6.2 on hardened
Summary: compile problem for net-p2p/deluge-0.5.6.2 on hardened
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-28 14:59 UTC by Orson Teodoro
Modified: 2007-12-31 18:38 UTC (History)
0 users

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 Orson Teodoro 2007-12-28 14:59:28 UTC
Attempting to emerge net-p2p/deluge-0.5.6.2 on hardened gentoo fails.  It spams an error message. 

Reproducible: Always

Steps to Reproduce:
1. first add /etc/portage/package.use with dev-libs/boost thread     support
2. gcc-config 1       (x86_64-pc-linux-gnu-3.4.6      pie+ssp)
3. source /etc/profile
4. emerge deluge
 fail
5. gcc-config 2       (x86_64-pc-linux-gnu-3.4.6-hardenednopie *)
6. source /etc/profile
7. emerge deluge
 fail
5. gcc-config 5       (x86_64-pc-linux-gnu-3.4.6-vanilla)
7. source /etc/profile
8. emerge deluge
 fail
Actual Results:  
`.gnu.linkonce.t._ZN4asio19asio_handler_invokeINS_6detail16resolver_serviceINS_2ip3tcpEE21resolve_query_handlerIN5boost3_bi6bind_tIvNS7_4_mfi3mf3IvN10libtorrent11http_streamERKNS_10error_codeENS3_23basic_resolver_iteratorIS4_EENS7_10shared_ptrINS7_8functionIFvSG_ESaIvEEEEEEENS8_5list4INS8_5valueIPSD_EENS7_3argILi1EEENSU_ILi2EEENSR_ISO_EEEEEEEEEEvT_z' of build/temp.linux-x86_64-2.4/libtorrent/src/http_tracker_connection.o
`.gnu.linkonce.t._ZN4asio19asio_handler_invokeINS_6detail16resolver_serviceINS_2ip3tcpEE21resolve_query_handlerIN5boost3_bi6bind_tIvNS7_4_mfi3mf3IvN10libtorrent11http_streamERKNS_10error_codeENS3_23basic_resolver_iteratorIS4_EENS7_10shared_ptrINS7_8functionIFvSG_ESaIvEEEEEEENS8_5list4INS8_5valueIPSD_EENS7_3argILi1EEENSU_ILi2EEENSR_ISO_EEEEEEEEEEvT_z' referenced in section `.gnu.linkonce.r._ZN4asio19asio_handler_invokeINS_6detail16resolver_serviceINS_2ip3tcpEE21resolve_query_handlerIN5boost3_bi6bind_tIvNS7_4_mfi3mf3IvN10libtorrent11http_streamERKNS_10error_codeENS3_23basic_resolver_iteratorIS4_EENS7_10shared_ptrINS7_8functionIFvSG_ESaIvEEEEEEENS8_5list4INS8_5valueIPSD_EENS7_3argILi1EEENSU_ILi2EEENSR_ISO_EEEEEEEEEEvT_z' of build/temp.linux-x86_64-2.4/libtorrent/src/http_tracker_connection.o: defined in discarded section `.gnu.linkonce.t._ZN4asio19asio_handler_invokeINS_6detail16resolver_serviceINS_2ip3tcpEE21resolve_query_handlerIN5boost3_bi6bind_tIvNS7_4_mfi3mf3IvN10libtorrent11http_streamERKNS_10error_codeENS3_23basic_resolver_iteratorIS4_EENS7_10shared_ptrINS7_8functionIFvSG_ESaIvEEEEEEENS8_5list4INS8_5valueIPSD_EENS7_3argILi1EEENSU_ILi2EEENSR_ISO_EEEEEEEEEEvT_z' of build/temp.linux-x86_64-2.4/libtorrent/src/http_tracker_connection.o
`.gnu.linkonce.t._ZN4asio19asio_handler_invokeINS_6detail16resolver_serviceINS_2ip3tcpEE21resolve_query_handlerIN5boost3_bi6bind_tIvNS7_4_mfi3mf3IvN10libtorrent11http_streamERKNS_10error_codeENS3_23basic_resolver_iteratorIS4_EENS7_10shared_ptrINS7_8functionIFvSG_ESaIvEEEEEEENS8_5list4INS8_5valueIPSD_EENS7_3argILi1EEENSU_ILi2EEENSR_ISO_EEEEEEEEEEvT_z' referenced in section `.gnu.linkonce.r._ZN4asio19asio_handler_invokeINS_6detail16resolver_serviceINS_2ip3tcpEE21resolve_query_handlerIN5boost3_bi6bind_tIvNS7_4_mfi3mf3IvN10libtorrent11http_streamERKNS_10error_codeENS3_23basic_resolver_iteratorIS4_EENS7_10shared_ptrINS7_8functionIFvSG_ESaIvEEEEEEENS8_5list4INS8_5valueIPSD_EENS7_3argILi1EEENSU_ILi2EEENSR_ISO_EEEEEEEEEEvT_z' of build/temp.linux-x86_64-2.4/libtorrent/src/http_tracker_connection.o: defined in discarded section `.gnu.linkonce.t._ZN4asio19asio_handler_invokeINS_6detail16resolver_serviceINS_2ip3tcpEE21resolve_query_handlerIN5boost3_bi6bind_tIvNS7_4_mfi3mf3IvN10libtorrent11http_streamERKNS_10error_codeENS3_23basic_resolver_iteratorIS4_EENS7_10shared_ptrINS7_8functionIFvSG_ESaIvEEEEEEENS8_5list4INS8_5valueIPSD_EENS7_3argILi1EEENSU_ILi2EEENSR_ISO_EEEEEEEEEEvT_z' of build/temp.linux-x86_64-2.4/libtorrent/src/http_tracker_connection.o
collect2: ld returned 1 exit status
error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1
 * 
 * ERROR: net-p2p/deluge-0.5.6.2 failed.
 * Call stack:
 *          ebuild.sh, line 1701:  Called dyn_compile
 *          ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *          ebuild.sh, line   44:  Called src_compile
 *          ebuild.sh, line 1383:  Called distutils_src_compile
 *   distutils.eclass, line   48:  Called die
 * The specific snippet of code:
 *      ${python} setup.py build "$@" || die "compilation failed"
 *  The die message:
 *   compilation failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-p2p/deluge-0.5.6.2/temp/build.log'.
 * 

 * Messages for package net-p2p/deluge-0.5.6.2:

 * 
 * ERROR: net-p2p/deluge-0.5.6.2 failed.
 * Call stack:
 *          ebuild.sh, line 1701:  Called dyn_compile
 *          ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *          ebuild.sh, line   44:  Called src_compile
 *          ebuild.sh, line 1383:  Called distutils_src_compile
 *   distutils.eclass, line   48:  Called die
 * The specific snippet of code:
 *      ${python} setup.py build "$@" || die "compilation failed"
 *  The die message:
 *   compilation failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-p2p/deluge-0.5.6.2/temp/build.log'.
 * 


Expected Results:  
Should compile fine without problems.

I've used this on my previous non hardened setup (2007.0/multilib) and it works but this time it doesn't.

Portage 2.1.3.19 (hardened/amd64/multilib, gcc-3.4.6-vanilla, glibc-2.6.1-r0, 2.6.23-hardened-r4 x86_64)
=================================================================
System uname: 2.6.23-hardened-r4 x86_64 AMD Sempron(tm) Processor 2600+
Timestamp of tree: Wed, 26 Dec 2007 11:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fforce-addr"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.mirrors.tds.net/gentoo "
LANG="C"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 crypt hardened justify midi minimal nptl nptlonly pam pic ssl urandom xorg 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 mulaw multi null plug rate route share shm softvol" 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 cache 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" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="none dummy nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Orson Teodoro 2007-12-31 18:38:11 UTC
It seems that this ebuild is probably outdate no longer works as the later ebuilds compile fine.  deluge-0.5.7.1 works with vanilla -O0; and deluge-0.5.8.ebuild works with pie+ssp + ricer flags.  Just mask this package =net-p2p/deluge-0.5.6.2 and keyword anything greater than this.