Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 77229 - emul-linux-x86-glibc hardcodes /usr/lib/gconv instead of /usr/lib32/gconv
Summary: emul-linux-x86-glibc hardcodes /usr/lib/gconv instead of /usr/lib32/gconv
Status: RESOLVED DUPLICATE of bug 86861
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on: 86861
Blocks:
  Show dependency tree
 
Reported: 2005-01-09 06:31 UTC by Evgeny Stambulchik
Modified: 2005-07-17 13:06 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 Evgeny Stambulchik 2005-01-09 06:31:20 UTC
As a result, any 32bit app using the conversion facility (e.g. new Acroread-7.0 beta) will crash. Binary patching the library eliminates the crashes.

Reproducible: Always
Steps to Reproduce:
# strings /lib32/libc.so.6 | grep '/usr/.*/gconv'
Actual Results:  
/usr/lib/gconv
/usr/lib/gconv/gconv-modules.cache


Expected Results:  
/usr/lib32/gconv
/usr/lib32/gconv/gconv-modules.cache
Comment 1 Herbie Hopkins (RETIRED) gentoo-dev 2005-03-03 10:14:58 UTC
Looks like this is the cause of bug #72030 also. It is interesting to note that this is still a problem with the locally compiled glibc used in the 2005.0 profile (sys-libs/glibc-2.3.4.20050125).

A simple workaround is to set GCONV_PATH="/usr/lib32/gconv" prior to running the app.
Comment 2 Evgeny Stambulchik 2005-03-08 03:32:27 UTC
> A simple workaround is to set GCONV_PATH="/usr/lib32/gconv" 

Indeed; I wasn't aware of this. Thanks!
Comment 3 Herbie Hopkins (RETIRED) gentoo-dev 2005-03-08 05:13:26 UTC
added toolchain@g.o to the CC as this appears to be a glibc problem.
Comment 4 Danny van Dyk (RETIRED) gentoo-dev 2005-03-08 07:34:17 UTC
No toolchain problem... Either me of eradicator forgot to patch glibc for the emul
package.
Comment 5 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-03-14 17:07:36 UTC
This is also causing the new acroread 7.0 to abort.
Comment 6 Evgeny Stambulchik 2005-03-14 23:42:33 UTC
> This is also causing the new acroread 7.0 to abort.

That's what was said in the original post, wasn't it?
Comment 7 Herbie Hopkins (RETIRED) gentoo-dev 2005-03-15 05:27:41 UTC
looking at the glibc ebuild it seems that the 32bit glibc is compiled with --libdir=lib
  export LIBDIR_x86="lib"
and the files get moved to lib32:
  mv ${D}/lib ${D}/$(get_libdir)
Some nasty sed lines are later called to correct some hardcoded paths (but clearly not all of them):
  dosed "s:/lib/:/$(get_libdir)/:g" /usr/$(get_libdir)/lib{c,pthread}.so
Is there any reason that it is compiled in this way? why not just compile the 32bit glibc with libdir=lib32 in the first place?
Comment 8 Danny van Dyk (RETIRED) gentoo-dev 2005-03-31 05:09:46 UTC
Fixed as of sys-libs/glibc-2.3.4-20050125-r1.

*** This bug has been marked as a duplicate of 86861 ***