Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 374169 - www-plugins/nspluginwrapper-1.4.4: won't install / make: *** [libnoxshm.so] Error 1
Summary: www-plugins/nspluginwrapper-1.4.4: won't install / make: *** [libnoxshm.so] E...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-05 20:08 UTC by Pryka
Modified: 2019-04-26 02:38 UTC (History)
6 users (show)

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


Attachments
The build log with hardenednopie (www-plugins:nspluginwrapper-1.4.4:20110707-044706.log,45.04 KB, text/plain)
2011-07-07 04:56 UTC, Jimmy C. Chau
Details
the build log with regular hardened (www-plugins:nspluginwrapper-1.4.4:20110707-045902.log,44.45 KB, text/plain)
2011-07-07 05:05 UTC, Jimmy C. Chau
Details
Fix the build pros with -fPIE on stup-libs (nspluginwrapper-1.4.4-compile-on-hardened.patch,473 bytes, patch)
2011-07-10 17:54 UTC, Magnus Granberg
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pryka 2011-07-05 20:08:42 UTC
Crash when installing 

Reproducible: Always

Steps to Reproduce:
emerge =www-plugins/nspluginwrapper-1.4.4 --oneshot
Actual Results:  
gcc -std=c99 -m32 -Wl,-O1 -Wl,--as-needed -nostdlib -shared lsb-build-i386/libgtk-x11-2.0.o -o lsb-build-i386/libgtk-x11-2.0.so \
	-Wl,--version-script,/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4/work/nspluginwrapper-1.4.4/lsb-build/stub_libs/libgtk-x11-2.0.Version \
	-Wl,-soname,`grep "libgtk-x11-2.0 " /var/tmp/portage/www-plugins/nspluginwrapper-1.4.4/work/nspluginwrapper-1.4.4/lsb-build/stub_libs/LibNameMap.txt | cut -f2 -d' '`
gcc -std=c99 -Wl,-O1 -Wl,--as-needed  -o test-rpc-types-client test-rpc-types-client.o test-rpc-common-client.o debug-client.o rpc-client.o -lglib-2.0   -lpthread 
gcc -std=c99 -Wl,-O1 -Wl,--as-needed  -o test-rpc-nested-1-client test-rpc-nested-1-client.o test-rpc-common-client.o debug-client.o rpc-client.o -lglib-2.0   -lpthread 
gcc -std=c99 -Wl,-O1 -Wl,--as-needed  -o test-rpc-nested-2-client test-rpc-nested-2-client.o test-rpc-common-client.o debug-client.o rpc-client.o -lglib-2.0   -lpthread 
gcc -std=c99 -Wl,-O1 -Wl,--as-needed  -o test-rpc-concurrent-client test-rpc-concurrent-client.o test-rpc-common-client.o debug-client.o rpc-client.o -lglib-2.0   -lpthread 
ln -sf libgcc_s.so lsb-build-i386/libgcc_s_32.so
gcc -std=c99 -m32 -Wl,-O1 -Wl,--as-needed  -Wl,--export-dynamic -Wl,--version-script,/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4/work/nspluginwrapper-1.4.4/src/npw-viewer.map -o npviewer.bin npviewer-npw-viewer.o npviewer-npw-common.o npviewer-npw-malloc.o npviewer-npw-rpc.o npviewer-rpc.o npviewer-debug.o npviewer-utils.o npviewer-npruntime.o npviewer-cxxabi-compat.o -lgtk-x11-2.0 -lgdk-x11-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lX11 -lXt -ldl -lpthread -lsupc++
gcc -std=c99 -shared -m32 -Wl,-O1 -Wl,--as-needed -o libnoxshm.so libnoxshm-libnoxshm.o -Wl,-soname,libnoxshm.so
gcc -std=c99 -Wl,-O1 -Wl,--as-needed  -o npplayer npplayer-npw-player.o npplayer-debug.o npplayer-rpc.o npplayer-utils.o npplayer-glibcurl.o npplayer-gtk2xtbin.o -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpng14 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0   -lglib-2.0   -lcurl   -lXt -lX11   -lpthread 
gcc -std=c99 -Wl,-O1 -Wl,--as-needed  -o test-rpc-types-server test-rpc-types-server.o test-rpc-common-server.o debug-server.o rpc-server.o -lglib-2.0   -lpthread 
gcc -std=c99 -Wl,-O1 -Wl,--as-needed  -o test-rpc-nested-1-server test-rpc-nested-1-server.o test-rpc-common-server.o debug-server.o rpc-server.o -lglib-2.0   -lpthread 
gcc -std=c99 -Wl,-O1 -Wl,--as-needed  -o test-rpc-nested-2-server test-rpc-nested-2-server.o test-rpc-common-server.o debug-server.o rpc-server.o -lglib-2.0   -lpthread 
gcc -std=c99 -Wl,-O1 -Wl,--as-needed  -o test-rpc-concurrent-server test-rpc-concurrent-server.o test-rpc-common-server.o debug-server.o rpc-server.o -lglib-2.0   -lpthread 
rm lsb-build-i386/libXt.o test-rpc-types-server.o lsb-build-i386/libXext.o lsb-build-i386/libgcc_s.o test-rpc-nested-2-client.o lsb-build-i386/libc_main.o test-rpc-concurrent-client.o lsb-build-i386/libpthread.o lsb-build-i386/libdl.o lsb-build-i386/libgobject-2.0.o test-rpc-common-server.o lsb-build-i386/libgdk-x11-2.0.o test-rpc-common-client.o test-rpc-nested-2-server.o rpc-client.o test-rpc-types-client.o test-rpc-concurrent-server.o lsb-build-i386/libgtk-x11-2.0.o test-rpc-nested-1-client.o lsb-build-i386/libgthread-2.0.o lsb-build-i386/libX11.o debug-client.o rpc-server.o lsb-build-i386/libglib-2.0.o test-rpc-nested-1-server.o debug-server.o lsb-build-i386/libc_nonshared.o
>>> Source compiled.
>>> Test phase [not enabled]: www-plugins/nspluginwrapper-1.4.4

>>> Install nspluginwrapper-1.4.4 into /var/tmp/portage/www-plugins/nspluginwrapper-1.4.4/image/ category www-plugins
make -j3 DESTDIR=/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4/image/ install 
install -D -m 755  npwrapper.so /var/tmp/portage/www-plugins/nspluginwrapper-1.4.4/image//usr/lib64/nspluginwrapper/x86_64/linux/npwrapper.so
install -D -m 755 npviewer.sh /var/tmp/portage/www-plugins/nspluginwrapper-1.4.4/image//usr/lib64/nspluginwrapper/noarch/npviewer.sh
install -D -m 755  npconfig /var/tmp/portage/www-plugins/nspluginwrapper-1.4.4/image//usr/lib64/nspluginwrapper/x86_64/linux/npconfig
gcc -std=c99 -Wl,-O1 -Wl,--as-needed  -o npplayer npplayer-npw-player.o npplayer-debug.o npplayer-rpc.o npplayer-utils.o npplayer-glibcurl.o npplayer-gtk2xtbin.o -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpng14 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0   -lglib-2.0   -lcurl   -lXt -lX11   -lpthread 
gcc -std=c99 -m32 -Wl,-O1 -Wl,--as-needed -Llsb-build-i386  -Wl,--export-dynamic -Wl,--version-script,/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4/work/nspluginwrapper-1.4.4/src/npw-viewer.map -o npviewer.bin npviewer-npw-viewer.o npviewer-npw-common.o npviewer-npw-malloc.o npviewer-npw-rpc.o npviewer-rpc.o npviewer-debug.o npviewer-utils.o npviewer-npruntime.o npviewer-cxxabi-compat.o -lgtk-x11-2.0 -lgdk-x11-2.0 -lgobject-2.0 -lgthread-2.0 -lglib-2.0 -lX11 -lXt -ldl -lpthread -lsupc++
mkdir -p /var/tmp/portage/www-plugins/nspluginwrapper-1.4.4/image//usr/bin
ln -sf /usr/lib64/nspluginwrapper/x86_64/linux/npconfig /var/tmp/portage/www-plugins/nspluginwrapper-1.4.4/image//usr/bin/nspluginwrapper
gcc -std=c99 -shared -m32 -Wl,-O1 -Wl,--as-needed -Llsb-build-i386 -o libnoxshm.so libnoxshm-libnoxshm.o -Wl,-soname,libnoxshm.so
lsb-build-i386/libc_nonshared.a(libc_nonshared.o): In function `__libc_csu_init':
libc_nonshared.c:(.text+0x17): undefined reference to `__preinit_array_end'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: lsb-build-i386/libc_nonshared.a(libc_nonshared.o): relocation R_386_GOTOFF against undefined hidden symbol `__preinit_array_end' can not be used when making a shared object
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.2/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make: *** [libnoxshm.so] Error 1
make: *** Waiting for unfinished jobs....
emake failed
 * ERROR: www-plugins/nspluginwrapper-1.4.4 failed (install phase):
 *   emake install failed
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_install
 *   environment, line 2567:  Called die
 * The specific snippet of code:
 *       emake DESTDIR="${D}" install || die "emake install failed";
 * 
 * If you need support, post the output of 'emerge --info =www-plugins/nspluginwrapper-1.4.4',
 * the complete build log and the output of 'emerge -pqv =www-plugins/nspluginwrapper-1.4.4'.
 * The complete build log is located at '/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4/temp/environment'.
 * S: '/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4/work/nspluginwrapper-1.4.4'

Expected Results:  
Compiled and working software :)

Portage 2.1.10.4 (hardened/linux/amd64, gcc-4.5.2, glibc-2.13-r2, 2.6.39-hardened-r4 x86_64)
=================================================================
System uname: Linux-2.6.39-hardened-r4-x86_64-Intel-R-_Pentium-R-_Dual_CPU_E2180_@_2.00GHz-with-gentoo-2.0.3
Timestamp of tree: Tue, 05 Jul 2011 19:15:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2, 3.2
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
Repositories: gentoo roslin
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula googleearth AdobeFlash-10 AdobeFlash-10.1 Nero-EULA-US"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.vectranet.pl/gentoo/ http://ftp.vectranet.pl/gentoo/"
LANG="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pl"
MAKEOPTS="-j3"
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="/var/lib/layman/roslin"
SYNC="rsync://ftp.vectranet.pl/gentoo-portage"
USE="64bit X a52 accessibility acl acpi additions alsa amd64 apng ass audacious bash-completion berkdb binary-drivers branding bzip2 cairo cdda cdr clamdtop classic cli color consolekit cracklib crashreporter crypt css cups cxx dbus device-mapper dri dvd dvdnav edit enca fastscroll fat ffmpeg fontconfig gadu gallium gdbm gdu gif git gnome gpm grub gtk gudev hardened hddtemp hires-icons hwdb iconv idn imlib iostats java jpeg justify lame libburn libnotify lm_sensors lua lua-cairo lua-imlib mmx modules mp3 mudflap multilib nautilus ncurses network-cron nls nptl nptlonly nsplugin nss ntfs opengl openmp osdmenu pam pcre perl pgo png policykit portmon pppd python qt3support readline session slang spell sqlite sse sse2 ssl ssse3 subversion symlink sysfs syslog tcpd templates threads truetype udev unicode urandom usb vboxwebsrv weather-metar weather-xoap webm xcb xorg xv xvfb xvid 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 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="pixma" USERLAND="GNU" VIDEO_CARDS="nvidia" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Patrick McLean gentoo-dev 2011-07-05 20:30:22 UTC
I'm guessing this is a hardened issue, nspluginwrapper and Gentoo hardened do not seem to get along very well.
Comment 2 Pryka 2011-07-05 20:34:08 UTC
(In reply to comment #1)
> I'm guessing this is a hardened issue, nspluginwrapper and Gentoo hardened do
> not seem to get along very well.

Any advise? 1.4.0 works fine.
Comment 3 Patrick McLean gentoo-dev 2011-07-05 20:39:12 UTC
The fix will likely be something similar to the patch that fixed bug #368777
Comment 4 Pryka 2011-07-06 11:45:13 UTC
And anyone will make similar patch, rr I have to do it on my own?
Comment 5 Jimmy C. Chau 2011-07-07 04:52:11 UTC
I can confirm a similar problem on my machine.  I'll attach my build logs.

Here's my emerge --info nspluginwrapper:

Portage 2.1.10.3 (hardened/linux/amd64, gcc-4.4.5-hardenednopie, glibc-2.12.2-r0, 2.6.38-gentoo-r6-2011May29 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.38-gentoo-r6-2011May29-x86_64-Intel-R-_Core-TM-2_Duo_CPU_U9400_@_1.40GHz-with-gentoo-2.0.2
Timestamp of tree: Thu, 07 Jul 2011 02:45:01 +0000
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4
dev-util/pkgconfig:       0.25-r2
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo benf x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA @BINARY-REDISTRIBUTABLE AdobeFlash-10.1 PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -msse4.1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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=core2 -O2 -pipe -msse4.1"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.netnitco.net      http://gentoo.mirrors.tds.net/gentoo    http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/     http://distfiles.gentoo.org     http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US en"
MAKEOPTS="--jobs=4 --load-average=2"
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="/var/lib/layman/benf /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 berkdb bzip2 cairo caps cjk cli consolekit cracklib crypt cups cxx dbus dri dvd exif ffmpeg flac gdbm gnutls gpm hardened iconv jpeg justify laptop mmx modules mp3 mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre perl png ppds pppd python readline sdl session spell sse sse2 ssl ssse3 sysfs system-sqlite tcpd theora threads truetype unicode urandom v4l2 vorbis xorg xv xvmc zlib" ALSA_CARDS="hda-intel usb-audio" 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 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LINGUAS="en_US en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

www-plugins/nspluginwrapper-1.3.0 was built with the following:
USE="(multilib)"

And here is the output of emerge -pqv =www-plugins/nspluginwrapper-1.4.4:
[ebuild     U ] www-plugins/nspluginwrapper-1.4.4 [1.3.0]
Comment 6 Jimmy C. Chau 2011-07-07 04:56:47 UTC
Created attachment 279295 [details]
The build log with hardenednopie

This was built using x86_64-pc-linux-gnu-4.4.5-hardenednopie.  Here, the error is:

gcc -std=c99 -shared -m32 -Wl,-O1 -Wl,--as-needed -Llsb-build-i386 -o libnoxshm.so libnoxshm-libnoxshm.o -Wl,-soname,libnoxshm.so
lsb-build-i386/libc_nonshared.a(libc_nonshared.o): In function `__libc_csu_fini':
libc_nonshared.c:(.text+0x16): undefined reference to `__fini_array_end'
libc_nonshared.c:(.text+0x1c): undefined reference to `__fini_array_start'
libc_nonshared.c:(.text+0x2a): undefined reference to `__fini_array_start'
lsb-build-i386/libc_nonshared.a(libc_nonshared.o): In function `__libc_csu_init':
libc_nonshared.c:(.text+0x45): undefined reference to `__preinit_array_end'
libc_nonshared.c:(.text+0x4c): undefined reference to `__preinit_array_start'
libc_nonshared.c:(.text+0x63): undefined reference to `__preinit_array_start'
libc_nonshared.c:(.text+0x72): undefined reference to `__init_array_end'
libc_nonshared.c:(.text+0x78): undefined reference to `__init_array_start'
libc_nonshared.c:(.text+0x8b): undefined reference to `__init_array_start'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: libnoxshm.so: hidden symbol `__fini_array_end' isn't defined
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make: *** [libnoxshm.so] Error 1
make: *** Waiting for unfinished jobs....
emake failed
 * ERROR: www-plugins/nspluginwrapper-1.4.4 failed (install phase):
 *   emake install failed
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_install
 *   environment, line 2558:  Called die
 * The specific snippet of code:
 *       emake DESTDIR="${D}" install || die "emake install failed";
 * 
 * If you need support, post the output of 'emerge --info =www-plugins/nspluginwrapper-1.4.4',
 * the complete build log and the output of 'emerge -pqv =www-plugins/nspluginwrapper-1.4.4'.
 * The complete build log is located at '/var/log/portage/www-plugins:nspluginwrapper-1.4.4:20110707-044706.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4/temp/environment'.
 * S: '/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4/work/nspluginwrapper-1.4.4'

>>> Failed to emerge www-plugins/nspluginwrapper-1.4.4, Log file:

>>>  '/var/log/portage/www-plugins:nspluginwrapper-1.4.4:20110707-044706.log'
Comment 7 Jimmy C. Chau 2011-07-07 05:05:02 UTC
Created attachment 279297 [details]
the build log with regular hardened

This was built using x86_64-pc-linux-gnu-4.4.5.  Here, the error is different than in hardenednopie:

gcc -std=c99 -shared -m32 -Wl,-O1 -Wl,--as-needed -Llsb-build-i386 -o libnoxshm.so libnoxshm-libnoxshm.o -Wl,-soname,libnoxshm.so
lsb-build-i386/libc_nonshared.a(libc_nonshared.o): In function `__libc_csu_fini':
libc_nonshared.c:(.text+0x27): undefined reference to `__fini_array_end'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: lsb-build-i386/libc_nonshared.a(libc_nonshared.o): relocation R_386_GOTOFF against undefined hidden symbol `__fini_array_end' can not be used when making a shared object
/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make: *** [libnoxshm.so] Error 1
make: *** Waiting for unfinished jobs....
emake failed
 * ERROR: www-plugins/nspluginwrapper-1.4.4 failed (install phase):
 *   emake install failed
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_install
 *   environment, line 2558:  Called die
 * The specific snippet of code:
 *       emake DESTDIR="${D}" install || die "emake install failed";
 * 
 * If you need support, post the output of 'emerge --info =www-plugins/nspluginwrapper-1.4.4',
 * the complete build log and the output of 'emerge -pqv =www-plugins/nspluginwrapper-1.4.4'.
 * The complete build log is located at '/var/log/portage/www-plugins:nspluginwrapper-1.4.4:20110707-045902.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4/temp/environment'.
 * S: '/var/tmp/portage/www-plugins/nspluginwrapper-1.4.4/work/nspluginwrapper-1.4.4'

>>> Failed to emerge www-plugins/nspluginwrapper-1.4.4, Log file:

>>>  '/var/log/portage/www-plugins:nspluginwrapper-1.4.4:20110707-045902.log'
Comment 8 Jimmy C. Chau 2011-07-07 05:08:12 UTC
I also tested it with x86_64-pc-linux-gnu-4.4.5-hardenednopiessp and x86_64-pc-linux-gnu-4.4.5-hardenednossp.  With these, nspluginwrapper-1.4.4 compile and install without errors.  

Seems like nspluginwrapper-1.4.4 doesn't play nicely with SSP.
Comment 9 Another Mortal 2011-07-08 09:59:41 UTC
(In reply to comment #8)
> I also tested it with x86_64-pc-linux-gnu-4.4.5-hardenednopiessp and
> x86_64-pc-linux-gnu-4.4.5-hardenednossp.  With these, nspluginwrapper-1.4.4
> compile and install without errors.  

I also tried building nspluginwrapper-1.4.4 with gcc-4.5.2
and *none* of the 5 variants manages to install without errors.

 [1] x86_64-pc-linux-gnu-4.5.2
 [2] x86_64-pc-linux-gnu-4.5.2-hardenednopie
 [3] x86_64-pc-linux-gnu-4.5.2-hardenednopiessp
 [4] x86_64-pc-linux-gnu-4.5.2-hardenednossp
 [5] x86_64-pc-linux-gnu-4.5.2-vanilla *

That's right!  Even '-vanilla' chokes with the exact same
"undefined reference to `__preinit_array_end'" error in the
install phase as in the original error report.  (All 5 gcc
variants _compile_ the source just fine[?], though).
 

> Seems like nspluginwrapper-1.4.4 doesn't play nicely with SSP.

And, it certainly doesn't seem to play nice with gcc-4.5.2, either;
which is by the way what the original error report was also about...
Comment 10 Jiří Moravec 2011-07-09 13:03:01 UTC
(In reply to comment #9)

Yep. I tried unsuccessfuly GCC 4.4.5/4.5.2 with binutils 2.20 and GCC 4.5.2/4.6.1 with binutils 2.21.1. Linker always failed with "relocation R_386_GOTOFF against undefined hidden symbol `__preinit_array_end'" message.

Jimmy C. Chau info (comment #8) about successful compilation and install with gcc hardenednopiessp and hardenednossp profiles look at best suspicious to me.
Comment 11 Anton Bolshakov 2011-07-10 14:00:36 UTC
The same here. It would be good to have a some workaround.
Comment 12 Magnus Granberg gentoo-dev 2011-07-10 17:54:27 UTC
Created attachment 279661 [details, diff]
Fix the build pros with -fPIE on stup-libs

This fix the probs with the stups-libs and hardened.
Comment 13 Magnus Granberg gentoo-dev 2011-07-10 18:24:50 UTC
Comment on attachment 279661 [details, diff]
Fix the build pros with -fPIE on stup-libs

did't work
Comment 14 Magnus Granberg gentoo-dev 2011-07-10 21:35:03 UTC
Add -fno-stack-protector to the libnoxshm_CFLAGS line in the Makefile.
Is there some way we can support system libs instead of the stubs libs as the 1.3 version did?
Comment 15 Magnus Granberg gentoo-dev 2011-07-11 01:27:04 UTC
The problem is the stub libc_noshared.a lib if i use the system libc_noshared.a
from /usr/lib32 it compiles fine.
Comment 16 Sven Vermeulen 2011-07-11 08:57:51 UTC
Changing the line in the Makefile (around ~317) from

        $(CC) $(DSO_LDFLAGS) $(libnoxshm_LDFLAGS) -o $@ $(libnoxshm_OBJECTS) -Wl,$(LD_soname),libnoxshm.so

to

        $(CC) $(DSO_LDFLAGS) -L/usr/lib32 $(libnoxshm_LDFLAGS) -o $@ $(libnoxshm_OBJECTS) -Wl,$(LD_soname),libnoxshm.so

Seems to work. No need to remove the libc_nonshared.a file (or not build it).
Comment 17 Anthony Basile gentoo-dev 2011-07-11 14:49:08 UTC
(In reply to comment #16)
> Changing the line in the Makefile (around ~317) from
> 
>         $(CC) $(DSO_LDFLAGS) $(libnoxshm_LDFLAGS) -o $@ $(libnoxshm_OBJECTS)
> -Wl,$(LD_soname),libnoxshm.so
> 
> to
> 
>         $(CC) $(DSO_LDFLAGS) -L/usr/lib32 $(libnoxshm_LDFLAGS) -o $@
> $(libnoxshm_OBJECTS) -Wl,$(LD_soname),libnoxshm.so
> 
> Seems to work. No need to remove the libc_nonshared.a file (or not build it).

For nomultilib systems, use $(get_libdir) instead of lib32.
Comment 18 Patrick McLean gentoo-dev 2011-07-11 15:02:48 UTC
I added a workaround to www-plugins/nspluginwrapper-1.4.4-r1. Please reopen if you are still experiencing the same problem.