Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264581 - dev-libs/libtomcrypt-1.17-r3: link fails
Summary: dev-libs/libtomcrypt-1.17-r3: link fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 262601
  Show dependency tree
 
Reported: 2009-04-02 06:17 UTC by Marian 'VooDooMan' Meravy
Modified: 2009-04-03 19:34 UTC (History)
2 users (show)

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


Attachments
/var/tmp/portage/dev-libs/libtomcrypt-1.17-r3/temp/environment (libtomcrypt.environment.log,97.23 KB, text/plain)
2009-04-02 06:18 UTC, Marian 'VooDooMan' Meravy
Details
typescript of build (libtomcrypt.log,218.57 KB, text/plain)
2009-04-02 06:19 UTC, Marian 'VooDooMan' Meravy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian 'VooDooMan' Meravy 2009-04-02 06:17:40 UTC
Greetings,

at link phase compilation fails. See attachments.

Reproducible: Always

Steps to Reproduce:
1. "emerge \=dev-libs/libtomcrypt-1.17-r3" or "emerge -uDNavt world"
2.
3.

Actual Results:  
at link phase compilation fails

Expected Results:  
emerge should succeed

# emerge --info

Portage 2.1.6.7 (selinux/2007.0/amd64/hardened, gcc-3.4.6, glibc-2.8_p20080602-r1, 2.6.26-hardened-r9-circular-prod.1 x86_64)
=================================================================
System uname: Linux-2.6.26-hardened-r9-circular-prod.1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E4500_@_2.20GHz-with-glibc2.3.2
Timestamp of tree: Wed, 01 Apr 2009 23:15:03 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.4.4-r14, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.9.6-r2, 1.10.2
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
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/logrotate.d /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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="-O2 -march=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages loadpolicy parallel-fetch protect-owned sandbox selinux sesandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.ynet.sk/pub http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://mirror.gentoo.no/"
LC_ALL="en_GB.UTF-8"
LDFLAGS=""
LINGUAS=" en de pl cs sk fr it ru zh_CN ro nl sp fi en_GB en_US da es ja et he id sv zh_TW el hu ko pt_BR af be bg br ca cy eo fo ga gl hr is no pt sl sr uk vi"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip acl alsa amd64 apache2 audit berkdb bzip2 cli cracklib crypt cups distcc dri fortran ftp gcj gd gdbm gmp gpm gs hardened iconv ipv6 isdnlog jpeg libtommath loop-aes lzo masquerade midi mmx mp3 mpeg mudflap mysql ncurses nls nptl nptlonly oidentd openmp pam pcre perl php pic pie png pppd python quotas readline reflection samba sasl selinux session sharedmem slang snmp spell spl sse sse2 ssl ssp ssse3 suphp tcl tcpd threads tiff tomsfastmath truetype unicode utf8 vim-syntax wmf xattr xml 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dumpio env expires ext_filter file_cache filter headers ident imagemap include info log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif speling status unique_id userdir usertrack version vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS=" en de pl cs sk fr it ru zh_CN ro nl sp fi en_GB en_US da es ja et he id sv zh_TW el hu ko pt_BR af be bg br ca cy eo fo ga gl hr is no pt sl sr uk vi" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 intel mach64 	mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis 	sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Marian 'VooDooMan' Meravy 2009-04-02 06:18:46 UTC
Created attachment 187044 [details]
/var/tmp/portage/dev-libs/libtomcrypt-1.17-r3/temp/environment

/var/tmp/portage/.../temp/environment
Comment 2 Marian 'VooDooMan' Meravy 2009-04-02 06:19:50 UTC
Created attachment 187046 [details]
typescript of build

typescript of build
Comment 3 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-04-02 08:04:40 UTC
you are on gcc-3.4.6? please add emerge --info output. thanks.
Comment 4 Marian 'VooDooMan' Meravy 2009-04-02 08:12:51 UTC
Thilo: gcc 4 is not stable on selinux/hardened/pie/ssp, so there is gcc 3.

emerge --info output is in description of this bug.

With best regards
Comment 5 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-04-02 19:59:56 UTC
Marian: doh' - must have been early in the morning. thanks.

tommy: any idea?
Comment 6 Thomas Sachau gentoo-dev 2009-04-03 16:29:57 UTC
(In reply to comment #5)
> Marian: doh' - must have been early in the morning. thanks.
> 
> tommy: any idea?
> 

I cant reproduce it here, but i have some ideas.

First thing:

Your output of "equery f tomsfastmath" please
Comment 7 Marian 'VooDooMan' Meravy 2009-04-03 17:15:27 UTC
thank you for fast responses, ther you go:

0 circular ipt_pb # equery f tomsfastmath
[ Searching for packages matching tomsfastmath... ]
* Contents of dev-libs/tomsfastmath-0.05:
/usr
/usr/include
/usr/include/tfm.h
/usr/lib64
/usr/lib64/libtfm.a
/usr/share
/usr/share/doc
/usr/share/doc/tomsfastmath-0.05
/usr/share/doc/tomsfastmath-0.05/changes.txt.bz2
/usr/share/doc/tomsfastmath-0.05/demo
/usr/share/doc/tomsfastmath-0.05/demo/rsa.c.bz2
/usr/share/doc/tomsfastmath-0.05/demo/stest.c.bz2
/usr/share/doc/tomsfastmath-0.05/demo/test.c.bz2
/usr/share/doc/tomsfastmath-0.05/tfm.pdf
0 circular ipt_pb #
Comment 8 Marian 'VooDooMan' Meravy 2009-04-03 17:19:01 UTC
it has no shared object, only static library, and link failed with:

/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../lib64/libtfm.a(fp_mul.o): relocation R_X86_64_PC32 against `fp_mul' can not be used when making a shared object; recompile with -fPIC

is this the root of issue?
Comment 9 Marian 'VooDooMan' Meravy 2009-04-03 17:20:01 UTC
or dependency needs to be compiled with "-fPIC" ?
Comment 10 Marian 'VooDooMan' Meravy 2009-04-03 17:31:46 UTC
bah. something has changed to portage tree last night?

i got cron job at 0300 hours to emerge --sync

and now it compiles/links okay w/o problems
Comment 11 Marian 'VooDooMan' Meravy 2009-04-03 17:34:41 UTC
I mean 0300 hours UTC+0200 (we are actually UTC+0100 but daylight saving makes it new UTC+0200)
Comment 12 Marian 'VooDooMan' Meravy 2009-04-03 17:35:36 UTC
s/makes it new/makes it now/
Comment 13 Thomas Sachau gentoo-dev 2009-04-03 17:48:01 UTC
Nothing was done, last change was done around 2 weeks ago and that was the version bump on libtomcrypt.

Maybe you compiled tomsfastmath with another gcc profile than you tried with libtomcrypt?

Anyway, i should submit my local changes to have tomsfastmath creating shared libs.

I will close this bug as invalid, since it seems to be a local problem, please add another comment and reopen it, if you can reproduce the problem.
Comment 14 Marian 'VooDooMan' Meravy 2009-04-03 17:53:04 UTC
no, i did not change gcc profile

it is very strange.

i dont believe in a race condition in linker...

but will check logs thoughly whether i was rooted (but this less probable since selinux+grsec+PaX)
Comment 15 Marian 'VooDooMan' Meravy 2009-04-03 18:01:05 UTC
now i did a test:

# emerge -Ca tomsfastmath libtomcrypt && emerge -a tomsfastmath libtomcrypt

and links failed again.

any ideas?
Comment 16 Marian 'VooDooMan' Meravy 2009-04-03 18:35:35 UTC
there is planned maintenance probably this night (server backup - selinux denies reading /etc/shadow even for root user - so i need to boot to special kernel in signle user for this, new UPS installation, also i will run memtest86+ for at least 4 hours and i will do /sbin/shutdown -F).

according to logs (logs are transferred to two strongly firewalled machines, to avoid "annonymous root" to modify local logs), as logs say, i was not rooted.

i will report results. stay tuned.
Comment 17 Thomas Sachau gentoo-dev 2009-04-03 19:10:54 UTC
Please try with tomsfastmath-0.12 and if that fails, with tomsfastmath-0.12-r1 (just added to the tree, so so may need some hours to get to your local mirror).
Comment 18 Marian 'VooDooMan' Meravy 2009-04-03 19:11:37 UTC
Got it!

i now know why one time it linked okay.

i forgot that i temporarily unmasked

=dev-libs/tomsfastmath-0.12         ~amd64

and then commented that out.

now i unmasked it (tomsfastmath-0.12), and everything links just fine :-D

using unstable/unmasked versions of these libs in really no security issue on this production system, since no package i have depends on them. I am developer and im just considering to link these libs into new version series of my project, thats why i want these 3 libs.

Have an ice weekend/code - as cool as possible.

And thank you very much for your patience.

PS: i like idea of tomsfastmath creating shared libs.


------

latest config:

# emerge --info

Portage 2.1.6.7 (selinux/2007.0/amd64/hardened, gcc-3.4.6, glibc-2.8_p20080602-r1, 2.6.26-hardened-r9-circular-prod.1 x86_64)
=================================================================
System uname: Linux-2.6.26-hardened-r9-circular-prod.1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E4500_@_2.20GHz-with-glibc2.3.2
Timestamp of tree: Fri, 03 Apr 2009 00:45:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.4.4-r14, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.9.6-r2, 1.10.2
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
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/logrotate.d /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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="-O2 -march=nocona -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages loadpolicy parallel-fetch protect-owned sandbox selinux sesandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.ynet.sk/pub http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://mirror.gentoo.no/"
LC_ALL="en_GB.UTF-8"
LDFLAGS=""
LINGUAS=" en de pl cs sk fr it ru zh_CN ro nl sp fi en_GB en_US da es ja et he id sv zh_TW el hu ko pt_BR af be bg br ca cy eo fo ga gl hr is no pt sl sr uk vi"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip acl alsa amd64 apache2 audit berkdb bzip2 cli cracklib crypt cups distcc dri fortran ftp gcj gd gdbm gmp gpm gs hardened iconv ipv6 isdnlog jpeg libtommath loop-aes lzo masquerade midi mmx mp3 mpeg mudflap mysql ncurses nls nptl nptlonly oidentd openmp pam pcre perl php pic pie png pppd python quotas readline reflection samba sasl selinux session sharedmem slang snmp spell spl sse sse2 ssl ssp ssse3 suphp tcl tcpd threads tiff tomsfastmath truetype unicode utf8 vim-syntax wmf xattr xml 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dumpio env expires ext_filter file_cache filter headers ident imagemap include info log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif speling status unique_id userdir usertrack version vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS=" en de pl cs sk fr it ru zh_CN ro nl sp fi en_GB en_US da es ja et he id sv zh_TW el hu ko pt_BR af be bg br ca cy eo fo ga gl hr is no pt sl sr uk vi" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 intel mach64 	mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis 	sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 19 Marian 'VooDooMan' Meravy 2009-04-03 19:12:28 UTC
lol telepathy, plz stop rooting my head!!! ;-)
Comment 20 Thomas Sachau gentoo-dev 2009-04-03 19:31:09 UTC
Hey, it is a fast way solving problems, but ok, will do it for the moment ;-)

bangert: i suggest adding tomsfastmath-0.12-r1 to the stable request for libtomcrypt after the 30 days period is over.

I will also add a version dep to libtomcrypt to prevent this sort of bugs.