Red Hat Bugzilla – Bug 150680
glibc does not export functions
Last modified: 2007-11-30 17:07:06 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.6)
Description of problem:
We need to install the version 9.1D of the database Progress.
Therefore it's necessary to run a "probuild", this fails with
undefined references _ctype_b.
undefined reference to '__ctype_b'
undefined reference to '__ctype_tolower'
undefined reference to '__ctype_toupper'
Fatal error when running probuild ldpro script on Linux
probuild on Linux fails with undefined references __ctype_b
The problem is related to glibc version on RH 3.0. The newer versions
of glibc do not export __ctype_b() and 2 other functions.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Installation of the database
2.Running the "probuild" command
3.Running the command "ldpro" / "ldprort"
Actual Results: undefined reference to '__ctype_b'
Expected Results: New database startup file should be made.
Those symbols are prohibited for all newly linked programs/libraries, because
they aren't thread safe.
glibc ensures binary compatibility for shared libraries and binaries only,
while apparently Progress is trying to link objects that were compiled on
different glibc against the RHEL3 glibc. That never worked reliably and never
will. Either you need to recompile them against RHEL3 glibc, then you can also
link them against that glibc, or you need to link them against the glibc that
was used to compile them.
RHEL3 includes compat-glibc package, which could help you, as that's glibc
from AS 2.1.
So compiling and linking with gcc -B /usr/lib/i386-redhat-linux7/lib/
-static-libgcc -L /usr/lib/i386-redhat-linux7/lib/
-I/usr/lib/i386-redhat-linux7/include/ could work.