Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44028 - env-update does not honor env.d ordering
Summary: env-update does not honor env.d ordering
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Highest critical (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 42201 45546 45866 46384 50354 52080 53277 64323 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-08 06:08 UTC by Pascal Roussel
Modified: 2005-01-02 00:38 UTC (History)
14 users (show)

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


Attachments
portage-do-not-sort-ld_so_conf.patch (portage-do-not-sort-ld_so_conf.patch,756 bytes, patch)
2004-06-19 11:22 UTC, Martin Schlemmer (RETIRED)
Details | Diff
portage-cvs-do-not-sort-ld_so_conf.patch (portage-cvs-do-not-sort-ld_so_conf.patch,750 bytes, patch)
2004-06-19 11:23 UTC, Martin Schlemmer (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Roussel 2004-03-08 06:08:13 UTC
When I try to emerge vte I get:

/usr/NX/lib/libXcompext.so.1: undefined reference to `_NXSplitParams'
/usr/NX/lib/libXcompext.so.1: undefined reference to `_NXEnableCleanAlloc'
/usr/NX/lib/libXcompext.so.1: undefined reference to `_NXEnableCleanFlush'
/usr/NX/lib/libXcompext.so.1: undefined reference to `_NXLostSequenceFunction'
/usr/NX/lib/libXcompext.so.1: undefined reference to `_NXEnableImageFrame'
/usr/NX/lib/libXcompext.so.1: undefined reference to `_NXFlushSize'
/usr/NX/lib/libXcompext.so.1: undefined reference to `_NXColorParams'
/usr/NX/lib/libXcompext.so.1: undefined reference to `_NXEnableImageSplit'
/usr/NX/lib/libXcompext.so.1: undefined reference to `_NXEnableCleanImages'
/usr/NX/lib/libXcompext.so.1: undefined reference to `_NXEnableImageMask'
/usr/NX/lib/libXcompext.so.1: undefined reference to `_NXImageEnvironmentCached'
/usr/NX/lib/libXcompext.so.1: undefined reference to `_NXCleanupEnvironmentCached'
/usr/NX/lib/libXcompext.so.1: undefined reference to `_NXEnableCleanGet'
/usr/NX/lib/libXcompext.so.1: undefined reference to `_NXEnableCleanSend'
collect2: ld returned 1 exit status
make[2]: *** [reflect-vte] Error 1
make[2]: Leaving directory `/var/tmp/portage/vte-0.11.10/work/vte-0.11.10/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/vte-0.11.10/work/vte-0.11.10'
make: *** [all] Error 2
 
!!! ERROR: x11-libs/vte-0.11.10 failed.
!!! Function gnome2_src_compile, Line 39, Exitcode 2
!!! compile failure

Reproducible: Always
Steps to Reproduce:
1. emerge vte



Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.20-gentoo-r5)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) XP 2100+
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb bonobo cdr crypt cups encode esd foomaticdb gdbm gif
gnome gphoto2 gpm gtk gtk2 gtkhtml guile imlib java jpeg libg++ libwww mad
mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl
png python qt quicktime readline sdl slang spell ssl svga tcltk tcpd tetex
truetype x86 xft xml2 xmms xv zlib"
Comment 1 foser (RETIRED) gentoo-dev 2004-03-08 06:34:03 UTC
where does /usr/NX stuff come from ?
Comment 2 Pascal Roussel 2004-03-08 07:08:05 UTC
It comes from net-misc/nxserver-personal
Comment 3 foser (RETIRED) gentoo-dev 2004-03-08 08:13:31 UTC
well i don't know why vte wants to include this, but the problem is nxserver then.
Comment 4 Pascal Roussel 2004-03-10 07:04:00 UTC
Same problem with mozilla...
Comment 5 Stuart Herbert (RETIRED) gentoo-dev 2004-03-10 14:47:16 UTC
Managed to reproduce.

This looks like a Portage bug.  If you look in your /etc/ld.so.conf file, you'll see that the search order of the directories does NOT match the order dictated in /etc/env.d directory.  

To fix this by hand, move the NX lib directory below the X11R6 directory in /etc/ld.so.conf, run ldconfig again, and then re-emerge.  This procedure worked for me.

Be warned - until this bug is fixed in Portage, future emerges are likely to screw up the order in this file once more.

Re-assigned to dev-portage@gentoo.org.

Best regards,
Stu
Comment 6 Pascal Roussel 2004-03-11 07:02:14 UTC
Ok .. worked for me too

Thanks
Comment 7 Stuart Herbert (RETIRED) gentoo-dev 2004-03-27 12:30:08 UTC
*** Bug 45866 has been marked as a duplicate of this bug. ***
Comment 8 Masatomo Nakano (RETIRED) gentoo-dev 2004-04-09 13:43:18 UTC
Fixed in CVS.
Comment 9 Masatomo Nakano (RETIRED) gentoo-dev 2004-04-09 18:38:17 UTC
*** Bug 46384 has been marked as a duplicate of this bug. ***
Comment 10 Masatomo Nakano (RETIRED) gentoo-dev 2004-04-12 09:20:58 UTC
*** Bug 45546 has been marked as a duplicate of this bug. ***
Comment 11 Stuart Herbert (RETIRED) gentoo-dev 2004-04-19 22:57:50 UTC
*** Bug 42201 has been marked as a duplicate of this bug. ***
Comment 12 Stuart Herbert (RETIRED) gentoo-dev 2004-04-23 10:55:11 UTC
*** Bug 48664 has been marked as a duplicate of this bug. ***
Comment 13 Stuart Herbert (RETIRED) gentoo-dev 2004-05-02 02:55:26 UTC
Portage team,

Any chance of looking at this and fixing it?

Thanks,
Stu
Comment 14 Stuart Herbert (RETIRED) gentoo-dev 2004-05-07 10:17:44 UTC
*** Bug 50354 has been marked as a duplicate of this bug. ***
Comment 15 Brian Harring (RETIRED) gentoo-dev 2004-06-08 00:37:13 UTC
*** Bug 53277 has been marked as a duplicate of this bug. ***
Comment 16 Martin Schlemmer (RETIRED) gentoo-dev 2004-06-19 11:22:30 UTC
Created attachment 33576 [details, diff]
portage-do-not-sort-ld_so_conf.patch

Fix against portage-2.0.50-r8
Comment 17 Martin Schlemmer (RETIRED) gentoo-dev 2004-06-19 11:23:06 UTC
Created attachment 33577 [details, diff]
portage-cvs-do-not-sort-ld_so_conf.patch

Fix against cvs.
Comment 18 Martin Schlemmer (RETIRED) gentoo-dev 2004-06-19 11:25:03 UTC
Please guys, here is an patch and real simple as well - two liner without
the comments.
Comment 19 Nicholas Jones (RETIRED) gentoo-dev 2004-06-19 21:53:02 UTC
>>> a=["c","b","a","z"]
>>> for x in a:
...   print x
...
c
b
a
z

Comment 20 Nicholas Jones (RETIRED) gentoo-dev 2004-06-19 22:06:08 UTC
I think you're chasing the wrong problem or something a lot
deeper than a python quirk. Mutible or immutible, they don't
get sorted in a for-loop. I can add the patch, but I imagine
the problem lies elsewhere. Explicitly env-update before you
change something. There might be a cache in play here or old
env-update runs driving the problem. Please double check.

There _used to be_ an explicit sort for ld.so in 2.0.50 through
50-r6 that was removed. It was only in 2.0.50.

Mutible:
>>> a={}
>>> a["A"] = ["a","c","b","d","e","q","r","z","a"]
>>> a["B"] = ["a","c","b","r","z","d","e","f"]
>>> for x in a["A"]:
...   print x
...
a
c
b
d
e
q
r
z
a
>>> for x in a["B"]:
...   print x
...
a
c
b
r
z
d
e
f

Immutible:
>>> a["B"] = ("a","c","b","r","z","d","e","f")
>>> for x in a["B"]:
...   print x
...
a
c
b
r
z
d
e
f
Comment 21 Martin Schlemmer (RETIRED) gentoo-dev 2004-06-20 04:02:29 UTC
Bah, Ok, so I was on crack, and did not notice it was Ok _before_ starting to
tinker with it.  Close the bug if its fixed Nick :)

Comment 22 Nicholas Jones (RETIRED) gentoo-dev 2004-06-20 20:52:38 UTC
Ok. Closed.
Comment 23 John Shaw 2004-09-28 17:17:54 UTC
*** Bug 52080 has been marked as a duplicate of this bug. ***
Comment 24 Aron Griffis (RETIRED) gentoo-dev 2004-11-15 13:30:42 UTC
*** Bug 64323 has been marked as a duplicate of this bug. ***
Comment 25 Stuart Herbert (RETIRED) gentoo-dev 2005-01-02 00:38:07 UTC
*** Bug 76356 has been marked as a duplicate of this bug. ***