This is the glibc problem. Please see if the following can help.
Installing
Kylix 3 in Redhat version > 7.2
prepared by Henry Leung <henryl@net-yan.com>
The Borland
Kylix 3 is designed to run on glibc 2.1, therefore it's certified to operate on Redhat Linux 7.2. For version greater than 7.2, the glibc package have been upgraded to glibc 2.2 or greater, therefore it will generate errors during compilation.
To solve this problem, we need to install a compatible version of glibc, i.e. Compat-glibc. Besides, we also need to change the include path and library path in the project options. The following is the procedures:
Install the package Xfree86-devel. It contains libX11.so, and
Kylix needs it.
Get the software package compat-glibc-6.2-2.1.3.2 from Redhat 7.2 CD, or from ftp websites. Install the package:
rpm -ivh compat-glibc-6.2-2.1.3.2.rpm
Execute the
Kylix installation program, using -m argument for non-rpm install, as many versions of rpm have problem in relocating the software package:
sh ./setup.sh -m
Complete the registration and copy the registration file to your home directory. Then execute:
startbcb
When
Kylix comes up, DO NOT open any project yet. You need to change the default settings. Set the include path and the library path to the compatible version of glibc:
Click Project ¡V Options ¡V Directories/Conditions
In the Include Path field, replace /usr/include with /usr/i386-glibc21-linux/include. Also move this entry to the top of the list.
In the Library Path field, replace /usr/lib with /usr/i386-glibc21-linux/lib. Again move the entry to the top.
Additional notes for Redhat 9
In Redhat 9, there is one more problem. The imcompatibility focus is on the wineserver used by
Kylix and the native posix thread library (NPTL) included in the RH9 kernel. Using a stock kernel solves the problem, but may have some impact on other programs installed by the RH distribution. One workaround is to use the following when calling
Kylix:
export LD_ASSUME_KERNEL=2.2.5; startdelphi
This disables the NPTL for
Kylix only. See
http://www.gurulabs.com/RedHatLinux9-review.html for details.
Now the installation is complete and try to run a simple program for testing. Good luck.