Building glibc 2.19 for OS/ABI UNIX - System V

Shaun Jackman sjackman@gmail.com
Sat Jul 26 01:06:00 GMT 2014


On 24 July 2014 23:24, Paweł Sikora <pluto@agmk.net> wrote:
>
> On Thursday 24 of July 2014 11:54:52 Shaun Jackman wrote:
> > I’m building glibc 2.19 on CentOS 5.10. It built, and that makes me
> > happy. It unfortunately doesn’t load with the system’s default loader
> > /lib64/ld-2.5.so because the ABI UNIX - Linux is incompatible. How can
> > I build glibc 2.19 that has an OS/ABI of UNIX - System V rather than
> > UNIX - Linux?
>
> you need to configure gcc in non-standard way to get binaries
> compatible with old ld.so.
>
> configure \
> --with-linker-hash-style=both
> --disable-gnu-unique-object
> --disable-initfini-array
>
> with these additional options all should work on ancient rhel/centos.

Hi, Pawel. The odd thing is, GCC is the only component that I
*haven't* upgraded. I'm using the stock GCC 4.4.7 20120313 (Red Hat
4.4.7-1) that comes with CentOS 5.10. I did however upgrade binutils
to 2.24, because glibc requires binutils at least 2.20. Should I
compile binutils with these options?

Cheers,
Shaun



More information about the Libc-help mailing list