fredagen den 10 oktober 2003 18.39 skrev Oden Eriksson:
> fredagen den 10 oktober 2003 12.29 skrev Oden Eriksson:
> > fredagen den 10 oktober 2003 11.42 skrev Oden Eriksson:
> > > Hi.
> > >
> > > I'm evaluating IDN right now and made a spec file patch for glibc to
> > > make it IDN aware.
> > >
> > > Get this file:
> > >
> > > http://josefsson.org/libidn/releases/libidn-0.3.2.tar.gz
> > > http://josefsson.org/libidn/releases/libidn-0.3.2.tar.gz.asc
> > >
> > > And use the attached patch.
> > >
> > > I didn't know how to do to include documentation and such, but this is
> > > a start. I will announce packages shortly, it takes a while to build
> > > this beast...
> > >
> > > Cheers.
> >
> > GRRR!!!!
> >
> > make -s -C intl tests
> > make[2]: Entering directory `/home/oden/RPM/BUILD/glibc-2.3.2/intl'
> > make[2]: ***
> > [/home/oden/RPM/BUILD/glibc-2.3.2/build-i586-linux/intl/tst-gettext.out]
> > Error 1
> > make[2]: Leaving directory `/home/oden/RPM/BUILD/glibc-2.3.2/intl'
> > make[1]: *** [intl/tests] Error 2
> > make[1]: Leaving directory `/home/oden/RPM/BUILD/glibc-2.3.2'
> > make: *** [check] Error 2
> >
> > $ cat
> > /home/oden/RPM/BUILD/glibc-2.3.2/build-i586-linux/intl/tst-gettext.out
> > test `gettext' with LANGUAGE set
> > test `gettext' with LANGUAGE set
> > test `dgettext' with LANGUAGE set
> > test `gettext' with LC_ALL set
> > test `gettext' with LC_ALL deciding
> > test `dgettext' with LC_ALL deciding
> > test `gettext' with LC_ALL set
> > test `gettext' with LC_xxx deciding
> > test `dgettext' with LC_xxx deciding
> > test `dcgettext' with category == LC_MESSAGES
> > test `dcgettext' with LANGUAGE == LC_TIME
> > test `dcgettext' with LANGUAGE == LC_NUMERIC
> > tst-gettext.c:215: setlocale (LC_ALL, ""): No such file or directory
> > test `gettext' with LANG set
> > test `gettext' with LANG set
> > test `dgettext' with LANG set
>
> GRRRRRRRR!!!!!!!!!!!!!!!
>
> What is this???
>
> After googling a while I understood I had to clear all my LC_* env stuff to
> get pass the error, but now I get this:
>
> make -s -C posix tests
> make[2]: Entering directory `/home/oden/RPM/BUILD/glibc-2.3.2/posix'
>
> /tmp/ccbosrs7.o(.text+0x192): In function `get_null_defines':
> : the use of `tmpnam' is dangerous, better use `mkstemp'
>
> /home/oden/RPM/BUILD/glibc-2.3.2/build-i586-linux/posix/wordexp-test.o(.tex
>t+0x89): In function `main':
> /home/oden/RPM/BUILD/glibc-2.3.2/posix/wordexp-test.c:243: the use of
> `tmpnam' is dangerous, better use `mkstemp'
> make[2]: ***
> [/home/oden/RPM/BUILD/glibc-2.3.2/build-i586-linux/posix/tst-getaddrinfo.ou
>t] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[2]: Leaving directory `/home/oden/RPM/BUILD/glibc-2.3.2/posix'
> make[1]: *** [posix/tests] Error 2
> make[1]: Leaving directory `/home/oden/RPM/BUILD/glibc-2.3.2'
> make: *** [check] Error 2

Ahh, my bad, the patch was incorrect. Will post new stuff shortly.

Got it working now.

# gcc -o example libidn-0.3.2/libc/example.c 

# ./example
locale charset `ISO-8859-1'
gettaddrinfo(räksmörgås.josefsson.org):
address `217.13.230.178'
canonical name `178.230.13.217.in-addr.dgcsystems.net'

# ldd ./example
        libc.so.6 => /lib/i686/libc.so.6 (0x40026000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

# rpm -qa|grep glibc
glibc-devel-2.3.2-16mdk
glibc-2.3.2-16mdk



Reply via email to