Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 280025 - www-plugins/nspluginwrapper - GLIB 2.0 environment not usable
Summary: www-plugins/nspluginwrapper - GLIB 2.0 environment not usable
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-02 11:32 UTC by Renato Caldas
Modified: 2009-08-21 21:19 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 Renato Caldas 2009-08-02 11:32:01 UTC
Emerging nspluginwrapper (tested versions 1.0.0, 1.2.2 and 1.2.2-r1) fails with this error:

(...)
>>> Configuring source in /var/tmp/portage/www-plugins/nspluginwrapper-1.2.2-r1/work/nspluginwrapper-1.2.2 ...
./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 --libdir=/usr/lib64 --enable-biarch --target-cpu=i386 --with-lib32=lib32 --with-lib64=lib64 --pkglibdir=/usr/lib64/nspluginwrapper
GLIB 2.0 environment not usable
 * 
 * ERROR: www-plugins/nspluginwrapper-1.2.2-r1 failed.
(...)

Configuring the package by hand works, even when done in the portage "work" directory, so I suspect this is a problem with the environment used for the emerge procedure.


This is where the error is reported (from the configure script):

(...)
if ! $cc $CFLAGS $GLIB_CFLAGS $GLIB_LDFLAGS $TMPC -o $TMPE > /dev/null 2>&1; then
    echo "GLIB 2.0 environment not usable"
    rm -f $TMPC
    exit 1
fi
(...)
Comment 1 Renato Caldas 2009-08-02 11:33:46 UTC
The output of "emerge --info":

emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0/developer, gcc-4.3.3, glibc-2.10.1-r0, 2.6.31-rc4-g29af57c x86_64)
=================================================================
System uname: Linux-2.6.31-rc4-g29af57c-x86_64-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 02 Aug 2009 11:00:21 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=core2 -O3 -pipe -mssse3 -Wl,--as-needed"
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/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-mtune=core2 -O3 -pipe -mssse3 -Wl,--as-needed"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect cvs distlocks fixpackages multilib-strict parallel-fetch protect-owned sandbox sfperms sign splitdebug strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="pt pt_PT"
MAKEOPTS="-j4"
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 /usr/local/portage/layman/sunrise /usr/local/portage/layman/x11 /usr/local/portage/layman/Spring"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 apache2 bash-completion bluetooth bzip2 cairo caps cdparanoia cdr cegui cg cli consolekit cracklib crypt cups custom-cflags dbus dhcp directfb divx dri dvd dvdr dvdread eap-tls eds emboss encode evo fam fbcon fbcondecor ffmpeg firefox fortran freeimage gallium gcj gdbm gif glitz glut gnome gnomecd gnutls gpm gstreamer gtk gzip hal iconv ieee1394 ipv6 ipw3945 isdnlog iwl3945 jack java joystick jpeg jpeg2k kerberos kpathsea laptop latex ldap libcaca libnotify lzo mad mailwrapper maps metric mikmod mmx mmxext mp3 mpeg mudflap multicall multilib mysql nautilus ncurses network nfs nls nptl nptlonly nsplugin nvidia ode offensive ogg openal openexr opengl openmp openssl pam pcmcia pcre pdf perl php png ppds pppd python qt3support quicktime readline reflection samba sdl session smp sndfile snmp socks5 sound sox spell spl srt sse sse2 ssl ssse3 startup-notification svg sysfs tcpd theora threads tiff tls truetype unicode urandom usb v4l v4l2 vidmode vorbis wifi x264 xcomposite xinerama xml xorg xpm xulrunner xv xvid xvmc zlib" ALSA_CARDS="hda-intel" 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 auth_digest authn_anon authn_dbd 	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 dbd deflate dir disk_cache env expires ext_filter 	file_cache filter headers ident imagemap include info log_config 	logio mem_cache mime mime_magic negotiation proxy proxy_ajp 	proxy_balancer proxy_connect proxy_http rewrite setenvif so speling 	status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="event" CAMERAS="canon fuji ptp2" ELIBC="glibc" FOO2ZJS_DEVICES="hp1018" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pt pt_PT" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Patrick McLean gentoo-dev 2009-08-21 14:48:42 UTC
do you have dev-libs/glib installed?
Comment 3 Patrick McLean gentoo-dev 2009-08-21 14:49:49 UTC
Sorry, could you try reinstalling dev-libs/glib then try remerging nspluginwrapper
Comment 4 Renato Caldas 2009-08-21 15:06:32 UTC
(In reply to comment #3)
> Sorry, could you try reinstalling dev-libs/glib then try remerging
> nspluginwrapper

Tried it again, no use.

The test program is compiled to /tmp by default, is it possible that sandbox or whatever is messing with it? I've been planning to mess with the ebuild to use ${T} for this, but so far haven't got the time...

Comment 5 Patrick McLean gentoo-dev 2009-08-21 15:13:21 UTC
Try adding TMPDIR="${T}" before the econf line in the ebuild, and let me know if this fixes it for you. I haven't been able to reproduce this locally.
Comment 6 Renato Caldas 2009-08-21 15:19:52 UTC
That doesn't work either. The makefile is my next bet..
Comment 7 Patrick McLean gentoo-dev 2009-08-21 15:44:19 UTC
The makefile isn't being used at the point where configure is being run, so I doubt that changes there will have any effect.

Try changing the -O3 to -O2 in your CFLAGS, and remove the -Wl,--as-needed (which belongs in LDFLAGS anyway).
Comment 8 Renato Caldas 2009-08-21 21:19:33 UTC
(In reply to comment #7)
> Try changing the -O3 to -O2 in your CFLAGS, and remove the -Wl,--as-needed
> (which belongs in LDFLAGS anyway).

I feel so stupid. It was indeed in the wrong place, and moving it to the LDFLAGS fixed the problem.

Thanks, and sorry for the waste of time...