1998-05-21  Ulrich Drepper  <drepper@cygnus.com>

	* iconv/iconv_prog.c (print_known_names): Use strverscmp in all
	tsearch calls.
This commit is contained in:
Ulrich Drepper 1998-05-21 16:24:27 +00:00
parent d5cd47bd3e
commit 3dcf8ea677
4 changed files with 55 additions and 26 deletions

View File

@ -1,3 +1,8 @@
1998-05-21 Ulrich Drepper <drepper@cygnus.com>
* iconv/iconv_prog.c (print_known_names): Use strverscmp in all
tsearch calls.
1998-05-21 Andreas Jaeger <aj@arthur.rhein-neckar.de> 1998-05-21 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* timezone/test-tz.c: The test with TZ=UTC0 seems to work - enable * timezone/test-tz.c: The test with TZ=UTC0 seems to work - enable

40
FAQ
View File

@ -69,20 +69,21 @@ please let me know.
2.13. Under Linux/Alpha, I always get "do_ypcall: clnt_call: 2.13. Under Linux/Alpha, I always get "do_ypcall: clnt_call:
RPC: Unable to receive; errno = Connection refused" when using NIS. RPC: Unable to receive; errno = Connection refused" when using NIS.
2.14. After installing glibc name resolving doesn't work properly. 2.14. After installing glibc name resolving doesn't work properly.
2.15. I have /usr/include/net and /usr/include/scsi as symlinks 2.15. How do I create the databases for NSS?
2.16. I have /usr/include/net and /usr/include/scsi as symlinks
into my Linux source tree. Is that wrong? into my Linux source tree. Is that wrong?
2.16. Programs like `logname', `top', `uptime' `users', `w' and 2.17. Programs like `logname', `top', `uptime' `users', `w' and
`who', show incorrect information about the (number of) `who', show incorrect information about the (number of)
users on my system. Why? users on my system. Why?
2.17. After upgrading to glibc 2.1 with symbol versioning I get 2.18. After upgrading to glibc 2.1 with symbol versioning I get
errors about undefined symbols. What went wrong? errors about undefined symbols. What went wrong?
2.18. When I start the program XXX after upgrading the library 2.19. When I start the program XXX after upgrading the library
I get I get
XXX: Symbol `_sys_errlist' has different size in shared XXX: Symbol `_sys_errlist' has different size in shared
object, consider re-linking object, consider re-linking
Why? What should I do? Why? What should I do?
2.19. What do I need for C++ development? 2.20. What do I need for C++ development?
2.20. Even statically linked programs need some shared libraries 2.21. Even statically linked programs need some shared libraries
which is not acceptable for me. What can I do? which is not acceptable for me. What can I do?
3. Source and binary incompatibilities, and what to do about them 3. Source and binary incompatibilities, and what to do about them
@ -700,7 +701,18 @@ know about other versions.
file is usually the culprit. file is usually the culprit.
2.15. I have /usr/include/net and /usr/include/scsi as symlinks 2.15. How do I create the databases for NSS?
{AJ} If you have an entry "db" in /etc/nsswitch.conf you should also create
the database files. The glibc sources contain a Makefile which does the
neccessary conversion and calls to create those files. The file is
`db-Makefile' in the subdirectory `nss' and you can call it with `make -f
db-Makefile'. Please note that not all services are capable of using a
database. Currently passwd, group, ethers, protocol, rpc, services shadow
and netgroup are implemented.
2.16. I have /usr/include/net and /usr/include/scsi as symlinks
into my Linux source tree. Is that wrong? into my Linux source tree. Is that wrong?
{PB} This was necessary for libc5, but is not correct when using glibc. {PB} This was necessary for libc5, but is not correct when using glibc.
@ -711,14 +723,14 @@ in place before you install glibc. However, /usr/include/asm and
/usr/include/linux should remain as they were. /usr/include/linux should remain as they were.
2.16. Programs like `logname', `top', `uptime' `users', `w' and 2.17. Programs like `logname', `top', `uptime' `users', `w' and
`who', show incorrect information about the (number of) `who', show incorrect information about the (number of)
users on my system. Why? users on my system. Why?
{MK} See question 3.2. {MK} See question 3.2.
2.17. After upgrading to glibc 2.1 with symbol versioning I get 2.18. After upgrading to glibc 2.1 with symbol versioning I get
errors about undefined symbols. What went wrong? errors about undefined symbols. What went wrong?
{AJ} The problem is caused either by wrong program code or tools. In the {AJ} The problem is caused either by wrong program code or tools. In the
@ -732,7 +744,7 @@ price you might have to pay once for quite a number of advantages with
symbol versioning. symbol versioning.
2.18. When I start the program XXX after upgrading the library 2.19. When I start the program XXX after upgrading the library
I get I get
XXX: Symbol `_sys_errlist' has different size in shared XXX: Symbol `_sys_errlist' has different size in shared
object, consider re-linking object, consider re-linking
@ -754,7 +766,7 @@ be possible that a symbol changed size when that should not have happened.
So in case of doubt report such a warning message as a problem. So in case of doubt report such a warning message as a problem.
2.19. What do I need for C++ development? 2.20. What do I need for C++ development?
{HJ,AJ} You need either egcs 1.0.2 or gcc-2.8.1 with libstdc++ 2.8.1 (or {HJ,AJ} You need either egcs 1.0.2 or gcc-2.8.1 with libstdc++ 2.8.1 (or
more recent versions). libg++ 2.7.2 (and the Linux Versions 2.7.2.x) doesn't more recent versions). libg++ 2.7.2 (and the Linux Versions 2.7.2.x) doesn't
@ -764,7 +776,7 @@ library compiled for 2.0 is not compatible due to the new Large File Support
(LFS) in version 2.1. (LFS) in version 2.1.
2.20. Even statically linked programs need some shared libraries 2.21. Even statically linked programs need some shared libraries
which is not acceptable for me. What can I do? which is not acceptable for me. What can I do?
{AJ} NSS (for details just type `info libc "Name Service Switch"') won't {AJ} NSS (for details just type `info libc "Name Service Switch"') won't
@ -983,8 +995,8 @@ siginterrupt().
functions. Why? functions. Why?
{AJ} glibc 2.1 has special string functions that are faster than the normal {AJ} glibc 2.1 has special string functions that are faster than the normal
library functions. Some of the functions are implemented as inline functions library functions. Some of the functions are additionally implemented as
and others as macros. inline functions and others as macros.
The optimized string functions are only used when compiling with The optimized string functions are only used when compiling with
optimizations (-O1 or higher). The behavior can be changed with two feature optimizations (-O1 or higher). The behavior can be changed with two feature

16
FAQ.in
View File

@ -560,6 +560,18 @@ know about other versions.
(just type `info libc "NSS Configuration File"'). The NSS configuration (just type `info libc "NSS Configuration File"'). The NSS configuration
file is usually the culprit. file is usually the culprit.
?? How do I create the databases for NSS?
{AJ} If you have an entry "db" in /etc/nsswitch.conf you should also create
the database files. The glibc sources contain a Makefile which does the
neccessary conversion and calls to create those files. The file is
`db-Makefile' in the subdirectory `nss' and you can call it with `make -f
db-Makefile'. Please note that not all services are capable of using a
database. Currently passwd, group, ethers, protocol, rpc, services shadow
and netgroup are implemented.
?? I have /usr/include/net and /usr/include/scsi as symlinks ?? I have /usr/include/net and /usr/include/scsi as symlinks
into my Linux source tree. Is that wrong? into my Linux source tree. Is that wrong?
@ -829,8 +841,8 @@ siginterrupt().
functions. Why? functions. Why?
{AJ} glibc 2.1 has special string functions that are faster than the normal {AJ} glibc 2.1 has special string functions that are faster than the normal
library functions. Some of the functions are implemented as inline functions library functions. Some of the functions are additionally implemented as
and others as macros. inline functions and others as macros.
The optimized string functions are only used when compiling with The optimized string functions are only used when compiling with
optimizations (-O1 or higher). The behavior can be changed with two feature optimizations (-O1 or higher). The behavior can be changed with two feature

View File

@ -516,15 +516,15 @@ print_known_names (void)
{ {
if (strcmp (__gconv_modules_db[cnt]->from_constpfx, "INTERNAL")) if (strcmp (__gconv_modules_db[cnt]->from_constpfx, "INTERNAL"))
tsearch (__gconv_modules_db[cnt]->from_constpfx, &printlist, tsearch (__gconv_modules_db[cnt]->from_constpfx, &printlist,
(__compar_fn_t) strcoll); (__compar_fn_t) strverscmp);
if (strcmp (__gconv_modules_db[cnt]->to_string, "INTERNAL")) if (strcmp (__gconv_modules_db[cnt]->to_string, "INTERNAL"))
tsearch (__gconv_modules_db[cnt]->to_string, &printlist, tsearch (__gconv_modules_db[cnt]->to_string, &printlist,
(__compar_fn_t) strcoll); (__compar_fn_t) strverscmp);
} }
else else
if (strcmp (__gconv_modules_db[cnt]->from_pattern, "INTERNAL")) if (strcmp (__gconv_modules_db[cnt]->from_pattern, "INTERNAL"))
tsearch (__gconv_modules_db[cnt]->from_pattern, &printlist, tsearch (__gconv_modules_db[cnt]->from_pattern, &printlist,
(__compar_fn_t) strcoll); (__compar_fn_t) strverscmp);
} }
fputs (_("\ fputs (_("\