Bug 13771 - Glibc can`t install libidn
: Glibc can`t install libidn
Status: CLOSED FIXED
Product: Codex
Classification: Unclassified
Component: libs
: stable grimoire
: x86 Linux
: P2 normal
Assigned To: Grimoire Bug List
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-05-10 07:55 UTC by Hamza Abdulhakim Dieter Schmitz
Modified: 2007-06-15 17:19 UTC (History)
1 user (show)

See Also:
eric: fixed_in_lesser_branch+
jblosser-smgl: integrate_to_stable_grimoire-
eric: must_fix_before_release?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hamza Abdulhakim Dieter Schmitz 2007-05-10 07:55:47 UTC
If I cast glibc with libidn support it gives the error Message



Found source file glibc-2.3.6.tar.bz2 for spell glibc in /var/spool/sorcery
Found source file glibc-2.3.6.tar.bz2.sig for spell glibc in /var/spool/sorcery
Found source file glibc-linuxthreads-2.3.6.tar.bz2 for spell glibc in
/var/spool/sorcery
Found source file glibc-linuxthreads-2.3.6.tar.bz2.sig for spell glibc in
/var/spool/sorcery
Found source file 2.4.24-kernel-headers.tar.bz2 for spell glibc in
/var/spool/sorcery
Waiting for any  Solo casts to complete... 
Waiting for  all other spells to  complete... done.
Building glibc 
GPG checking source file glibc-2.3.6.tar.bz2...
Algorithm used: sha1
Algorithm checks out
Checking spell level UPSTREAM_KEY
Spell level is an allowed level
gpg signature verified!
Unpacking source file glibc-2.3.6.tar.bz2 for spell glibc.
GPG checking source file glibc-linuxthreads-2.3.6.tar.bz2...
Algorithm used: sha1
Algorithm checks out
Checking spell level UPSTREAM_KEY
Spell level is an allowed level
gpg signature verified!
Unpacking source file glibc-linuxthreads-2.3.6.tar.bz2 for spell glibc.
hash checking source file 2.4.24-kernel-headers.tar.bz2...
Continuing!
Unpacking source file 2.4.24-kernel-headers.tar.bz2 for spell glibc.
patching file sysdeps/unix/sysv/linux/i386/sysdep.h
patching file Makefile
Using gcc version: 4.1.2
Installing in dir: /usr/src/glibc-2.3.6
glibc    2.3.6
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
configure: error: add-on directory "libidn" does not exist
 ! Problem Detected ! 
Creating compile log /var/log/sorcery/compile/glibc-2.3.6.bz2 

Spells that have been dropped:
------------------------------
e2fsprogs       locale          util-linux


Spells that encountered problems:
---------------------------------
glibc
Comment 1 Ladislav Hagara (lace) 2007-05-11 05:00:42 UTC
Seems you use 2.4 kernel, why not 2.6?
Most of us use linux kernel 2.6, glibc 2.4 with heades 2.6.12.0, you are trying
to build glibc-2.3.6 with 2.4.24-kernel-headers?

Or something with NPTL, did you swith it off? Or do you use i386-pc-linux-gnu?

From PREPARE file:

if  [[  $(uname -r)  =  2.6.*  ]];  then
  if  test  "$HOST" == "i386-pc-linux-gnu"; then
    message "[[ ${QUERY_COLOR}Not building with NPTL as that's unsupported on
i386; use i486 or higher.${DEFAULT} ]]"
    config_set_option GLIBC_NPTL n
  else
    config_query  GLIBC_NPTL  "As you are running a 2.6 kernel, would you like
to use the new nptl (Native Posix Thread Libary)?"  y
    config_query  GLIBC_USEIDN  "Would you like to compile glibc with libidn
support?" y
  fi
fi  &&
Comment 2 Hamza Abdulhakim Dieter Schmitz 2007-05-11 06:15:25 UTC
I`m using Kernel 2.6.20 and deactivated NPTL, because this was the default value and didn`t know for this is for.
Comment 3 Ladislav Hagara (lace) 2007-05-11 14:03:29 UTC
If I don`t know for this is for I usually use default. :-)

So try "cast -r -c glibc" and choose "y" for NPTL (y is default).
If you didn't change it your glibc could have IDN support already.


-----
For SMGL devs:
Seems there is a bug in glibc BUILD:
There is:

# Enable IDN?
#
if  [  "$GLIBC_USEIDN" = "y"  ];  then
  ADDONS="$ADDONS libidn"
fi  &&

And it should be:

if  [  "$GLIBC_NPTL"  =  "y"  ];  then
# Enable IDN?
#
if  [  "$GLIBC_USEIDN" = "y"  ];  then
  ADDONS="$ADDONS libidn"
fi  &&
fi
Comment 4 Eric Sandall 2007-05-13 15:53:24 UTC
IDN only works with the newer glibc, which requires the 2.6 kernel, it seems.
Comment 5 Eric Sandall 2007-05-13 16:07:44 UTC
Fixed in commit id 4c772496dd435094d6c40c1dafbbacddedf944bf
Comment 6 Ladislav Hagara (lace) 2007-05-13 17:53:31 UTC
Yea, this should be integrated to stable-rc and stable and glibc 2.5 should be
integrated from devel to test.
Comment 7 Jeremy Blosser 2007-05-18 14:55:45 UTC
This is too fringe to go to 0.10 IMO.  It will make the next stable-rc because
it's in test now.
Comment 8 Eric Sandall 2007-06-15 17:19:08 UTC
Closing, now fixed in the stable-0.11 tarball.