Bug#747103: marked as done (libc6-dev: setlocale in static binary fails)
Your message dated Tue, 27 May 2014 22:47:07 + with message-id and subject line Bug#747103: fixed in eglibc 2.13-38+deb7u2 has caused the Debian Bug report #747103, regarding libc6-dev: setlocale in static binary fails to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact ow...@bugs.debian.org immediately.) -- 747103: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747103 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems --- Begin Message --- Package: libc6-dev Version: 2.13-38 Severity: important Hello list, I'm trying to use setlocale() in a static binary, and I compil with: $ gcc -Wall -static code.c -o code When I run $ ./code I expect to see "lundi" instead of "Monday", but it's not working with static compilation. (it's ok in dynamic compil. with: $gcc -Wall -code.c -o code). The locale "fr_FR" is correctly installed on my system (package locales configured with fr_FR). The code.c is fairly simple : #include #include #include int main(void) { setlocale (LC_ALL, "fr_FR"); printf("%s\n",nl_langinfo(DAY_2)); return 0; } I have done some debug (with gcc -ggdb) : - the return of setlocale is correct "fr_FR" in static and dyn. compil, - it seems to me that setdata()/setname() in file setlocale.c don't do right job (pb with CATEGORY_USED(category)) - I have try use of: $ cd tmp ; localedef -i fr_FR -f ISO-8859-1 ./fr_FR and put in code.c before setlocale(): setenv("LOCPATH","/home/raphael/tmp,1); but: it's not better in static compilation - I have noticed with $strace -eopen ./code that in dynamic compil : open("/home/raphael/tmp/fr_FR/LC_xxx", O_RDONLY) = 3 (with setenv) open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3 (without setenv) but in static compil with setenv and setlocale(LC_TIME, "fr_FR"); nothing is opened ... I have tried this code under different OS : - RedHat Enterprise Linux Server release 5.5 (Tikanga) or 6 --> it works as expected - Debian Etch, Debian Lenny --> it works as expected - Debian Wheezy --> the bug is present Thank you -- System Information: Debian Release: 6.0.9 APT prefers oldstable APT policy: (500, 'oldstable') Architecture: i386 (x86_64) Kernel: Linux 2.6.32.8_x86_64 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=fr_FR, LC_CTYPE=fr_FR (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/dash Versions of packages libc6-dev depends on: ii libc-dev-bin 2.13-38 Embedded GNU C Library: Developmen ii libc6 2.13-38 Embedded GNU C Library: Shared lib ii linux-libc-dev 2.6.32-48squeeze5 Linux support headers for userspac Versions of packages libc6-dev recommends: ii gcc [c-compiler] 4:4.4.5-1 The GNU C compiler ii gcc-4.4 [c-compiler] 4.4.7-2GNU C compiler Versions of packages libc6-dev suggests: ii glibc-doc 2.11.3-4 Embedded GNU C Library: Documentat ii manpages-dev 3.27-1 Manual pages about using GNU/Linux --- End Message --- --- Begin Message --- Source: eglibc Source-Version: 2.13-38+deb7u2 We believe that the bug you reported is fixed in the latest version of eglibc, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 747...@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Aurelien Jarno (supplier of updated eglibc package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmas...@ftp-master.debian.org) -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Format: 1.8 Date: Sun, 25 May 2014 20:01:05 +0200 Source: eglibc Binary: libc-bin libc-dev-bin glibc-doc eglibc-source locales locales-all nscd multiarch-support libc6 libc6-dev libc6-dbg libc6-prof libc6-pic libc6-udeb libc6.1 libc6.1-dev libc6.1-dbg libc6.1-prof libc6.1-pic libc6.1-udeb libc0.3 libc0.3-dev libc0.3-dbg libc0.3-prof libc0.3-pic libc0.3-udeb libc0.1 libc0.1-dev libc0.1-dbg libc0.1-prof libc0.1-pic libc0.1-udeb libc6-i386 libc6-dev-i386 libc6-sparc64 libc6-dev-sparc64 libc6-s390 libc6-dev-s390 libc6-s390x libc6-dev-s390x libc6-amd64 libc6-dev-amd64 libc6-powerpc libc6-dev-powerpc libc6-
Bug#747103: marked as done (libc6-dev: setlocale in static binary fails)
Your message dated Wed, 14 May 2014 19:34:38 + with message-id and subject line Bug#747103: fixed in eglibc 2.18-6 has caused the Debian Bug report #747103, regarding libc6-dev: setlocale in static binary fails to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact ow...@bugs.debian.org immediately.) -- 747103: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747103 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems --- Begin Message --- Package: libc6-dev Version: 2.13-38 Severity: important Hello list, I'm trying to use setlocale() in a static binary, and I compil with: $ gcc -Wall -static code.c -o code When I run $ ./code I expect to see "lundi" instead of "Monday", but it's not working with static compilation. (it's ok in dynamic compil. with: $gcc -Wall -code.c -o code). The locale "fr_FR" is correctly installed on my system (package locales configured with fr_FR). The code.c is fairly simple : #include #include #include int main(void) { setlocale (LC_ALL, "fr_FR"); printf("%s\n",nl_langinfo(DAY_2)); return 0; } I have done some debug (with gcc -ggdb) : - the return of setlocale is correct "fr_FR" in static and dyn. compil, - it seems to me that setdata()/setname() in file setlocale.c don't do right job (pb with CATEGORY_USED(category)) - I have try use of: $ cd tmp ; localedef -i fr_FR -f ISO-8859-1 ./fr_FR and put in code.c before setlocale(): setenv("LOCPATH","/home/raphael/tmp,1); but: it's not better in static compilation - I have noticed with $strace -eopen ./code that in dynamic compil : open("/home/raphael/tmp/fr_FR/LC_xxx", O_RDONLY) = 3 (with setenv) open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3 (without setenv) but in static compil with setenv and setlocale(LC_TIME, "fr_FR"); nothing is opened ... I have tried this code under different OS : - RedHat Enterprise Linux Server release 5.5 (Tikanga) or 6 --> it works as expected - Debian Etch, Debian Lenny --> it works as expected - Debian Wheezy --> the bug is present Thank you -- System Information: Debian Release: 6.0.9 APT prefers oldstable APT policy: (500, 'oldstable') Architecture: i386 (x86_64) Kernel: Linux 2.6.32.8_x86_64 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=fr_FR, LC_CTYPE=fr_FR (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/dash Versions of packages libc6-dev depends on: ii libc-dev-bin 2.13-38 Embedded GNU C Library: Developmen ii libc6 2.13-38 Embedded GNU C Library: Shared lib ii linux-libc-dev 2.6.32-48squeeze5 Linux support headers for userspac Versions of packages libc6-dev recommends: ii gcc [c-compiler] 4:4.4.5-1 The GNU C compiler ii gcc-4.4 [c-compiler] 4.4.7-2GNU C compiler Versions of packages libc6-dev suggests: ii glibc-doc 2.11.3-4 Embedded GNU C Library: Documentat ii manpages-dev 3.27-1 Manual pages about using GNU/Linux --- End Message --- --- Begin Message --- Source: eglibc Source-Version: 2.18-6 We believe that the bug you reported is fixed in the latest version of eglibc, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 747...@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Aurelien Jarno (supplier of updated eglibc package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmas...@ftp-master.debian.org) -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Format: 1.8 Date: Wed, 14 May 2014 19:15:10 +0200 Source: eglibc Binary: libc-bin libc-dev-bin glibc-doc eglibc-source locales locales-all nscd multiarch-support libc6 libc6-dev libc6-dbg libc6-prof libc6-pic libc6-udeb libc6.1 libc6.1-dev libc6.1-dbg libc6.1-prof libc6.1-pic libc6.1-udeb libc0.3 libc0.3-dev libc0.3-dbg libc0.3-prof libc0.3-pic libc0.3-udeb libc0.1 libc0.1-dev libc0.1-dbg libc0.1-prof libc0.1-pic libc0.1-udeb libc6-i386 libc6-dev-i386 libc6-sparc libc6-dev-sparc libc6-sparc64 libc6-dev-sparc64 libc6-s390 libc6-dev-s390 libc6-amd64 libc6-dev-amd64 libc6-powerpc libc6-dev-powerpc libc6-ppc64 libc6-dev-p
Re: libc6-dev: setlocale in static binary fails
On Tue, May 06, 2014 at 11:09:34PM +0200, Raphael Astier wrote: > Hello list, > > I'm trying to use setlocale() in a static binary, and I compil with: > > $ gcc -Wall -static code.c -o code > > When I run > $ ./code > > I expect to see "lundi" instead of "Monday", but it's not working with static > compilation. > (it's ok in dynamic compil. with: $gcc -Wall -code.c -o code). > > The locale "fr_FR" is correctly installed on my system (package locales > configured with fr_FR). > > The code.c is fairly simple : > > #include > #include > #include > int main(void) > { > setlocale (LC_ALL, "fr_FR"); > printf("%s\n",nl_langinfo(DAY_2)); > return 0; > } > > The problem extends with use of strftime(). > > I have done some debug (with gcc -ggdb) : > > - the return of setlocale is correct "fr_FR" in static and dyn. compil, > - it seems to me that setdata()/setname() in file setlocale.c don't do right > job (pb with CATEGORY_USED(category)) > - I have try use of: > $ cd tmp ; localedef -i fr_FR -f ISO-8859-1 ./fr_FR > and put in code.c before setlocale(): > setenv("LOCPATH","/home/raphael/tmp,1); > but: it's not better in static compilation > - I have noticed with $strace -eopen ./code > that in dynamic compil : open("/home/raphael/tmp/fr_FR/LC_xxx", O_RDONLY) = > 3 (with setenv) >open("/usr/lib/locale/locale-archive", > O_RDONLY|O_LARGEFILE) = 3 (without setenv) > but in static compil with setenv and setlocale(LC_TIME, "fr_FR"); nothing > is opened ... > > I have tried this code under different OS : > > - RedHat Enterprise Linux Server release 5.5 (Tikanga) or 6 --> it works as > expected > - Debian Etch, Debian Lenny --> it works as expected > - Debian Wheezy --> the bug is present > > Is it possible to do something with libc.a to avoid this bug ? > You already reported bug #747103 about that. Your problem has been reported upstream [1] with a patch fixing that [2] currently being reviewed. [1] https://sourceware.org/bugzilla/show_bug.cgi?id=16915 [2] https://sourceware.org/ml/libc-alpha/2014-05/msg00134.html -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurel...@aurel32.net http://www.aurel32.net -- To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20140507144150.gs5...@hall.aurel32.net
libc6-dev: setlocale in static binary fails
Hello list, I'm trying to use setlocale() in a static binary, and I compil with: $ gcc -Wall -static code.c -o code When I run $ ./code I expect to see "lundi" instead of "Monday", but it's not working with static compilation. (it's ok in dynamic compil. with: $gcc -Wall -code.c -o code). The locale "fr_FR" is correctly installed on my system (package locales configured with fr_FR). The code.c is fairly simple : #include #include #include int main(void) { setlocale (LC_ALL, "fr_FR"); printf("%s\n",nl_langinfo(DAY_2)); return 0; } The problem extends with use of strftime(). I have done some debug (with gcc -ggdb) : - the return of setlocale is correct "fr_FR" in static and dyn. compil, - it seems to me that setdata()/setname() in file setlocale.c don't do right job (pb with CATEGORY_USED(category)) - I have try use of: $ cd tmp ; localedef -i fr_FR -f ISO-8859-1 ./fr_FR and put in code.c before setlocale(): setenv("LOCPATH","/home/raphael/tmp,1); but: it's not better in static compilation - I have noticed with $strace -eopen ./code that in dynamic compil : open("/home/raphael/tmp/fr_FR/LC_xxx", O_RDONLY) = 3 (with setenv) open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3 (without setenv) but in static compil with setenv and setlocale(LC_TIME, "fr_FR"); nothing is opened ... I have tried this code under different OS : - RedHat Enterprise Linux Server release 5.5 (Tikanga) or 6 --> it works as expected - Debian Etch, Debian Lenny --> it works as expected - Debian Wheezy --> the bug is present Is it possible to do something with libc.a to avoid this bug ? Thanks, Raphael --- -- To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20140506210933.GA9035@raph.localdomain
Bug#747103: libc6-dev: setlocale in static binary fails
Package: libc6-dev Version: 2.13-38 Severity: important Hello list, I'm trying to use setlocale() in a static binary, and I compil with: $ gcc -Wall -static code.c -o code When I run $ ./code I expect to see "lundi" instead of "Monday", but it's not working with static compilation. (it's ok in dynamic compil. with: $gcc -Wall -code.c -o code). The locale "fr_FR" is correctly installed on my system (package locales configured with fr_FR). The code.c is fairly simple : #include #include #include int main(void) { setlocale (LC_ALL, "fr_FR"); printf("%s\n",nl_langinfo(DAY_2)); return 0; } I have done some debug (with gcc -ggdb) : - the return of setlocale is correct "fr_FR" in static and dyn. compil, - it seems to me that setdata()/setname() in file setlocale.c don't do right job (pb with CATEGORY_USED(category)) - I have try use of: $ cd tmp ; localedef -i fr_FR -f ISO-8859-1 ./fr_FR and put in code.c before setlocale(): setenv("LOCPATH","/home/raphael/tmp,1); but: it's not better in static compilation - I have noticed with $strace -eopen ./code that in dynamic compil : open("/home/raphael/tmp/fr_FR/LC_xxx", O_RDONLY) = 3 (with setenv) open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3 (without setenv) but in static compil with setenv and setlocale(LC_TIME, "fr_FR"); nothing is opened ... I have tried this code under different OS : - RedHat Enterprise Linux Server release 5.5 (Tikanga) or 6 --> it works as expected - Debian Etch, Debian Lenny --> it works as expected - Debian Wheezy --> the bug is present Thank you -- System Information: Debian Release: 6.0.9 APT prefers oldstable APT policy: (500, 'oldstable') Architecture: i386 (x86_64) Kernel: Linux 2.6.32.8_x86_64 (SMP w/2 CPU cores; PREEMPT) Locale: LANG=fr_FR, LC_CTYPE=fr_FR (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/dash Versions of packages libc6-dev depends on: ii libc-dev-bin 2.13-38 Embedded GNU C Library: Developmen ii libc6 2.13-38 Embedded GNU C Library: Shared lib ii linux-libc-dev 2.6.32-48squeeze5 Linux support headers for userspac Versions of packages libc6-dev recommends: ii gcc [c-compiler] 4:4.4.5-1 The GNU C compiler ii gcc-4.4 [c-compiler] 4.4.7-2GNU C compiler Versions of packages libc6-dev suggests: ii glibc-doc 2.11.3-4 Embedded GNU C Library: Documentat ii manpages-dev 3.27-1 Manual pages about using GNU/Linux -- To UNSUBSCRIBE, email to debian-glibc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20140505161812.27382.78012.report...@wiki.lexsi.com