This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Building 2.27 on CentOS

Hi everyone,

I’d like to build glibc under a CentOS to be packed in a RPM and a different root dir.
But currently I have problems with my build and hope someone can help me.

gcc   -nostdlib -nostartfiles -r -o /root/rpmbuild/BUILD/glibc-build/elf/librtld.os '-Wl,-(' /root/rpmbuild/BUILD/glibc-build/elf/dl-allobjs.os /root/rpmbuild/BUILD/glibc-build/elf/rtld-libc.a -lgcc '-Wl,-)' \
gcc   -nostdlib -nostartfiles -shared -o /root/rpmbuild/BUILD/glibc-build/elf/         \
        -Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -Wl,-z,defs       \
        /root/rpmbuild/BUILD/glibc-build/elf/librtld.os -Wl,--version-script=/root/rpmbuild/BUILD/glibc-build/          \
        -Wl,                      \
/root/rpmbuild/BUILD/glibc-build/elf/librtld.os: In function `dl_main':
rtld.c:(.text+0x25ab): undefined reference to `__open'
rtld.c:(.text+0x2b19): undefined reference to `__access'
rtld.c:(.text+0x441c): undefined reference to `__access'
/root/rpmbuild/BUILD/glibc-build/elf/librtld.os: In function `lose.isra.5':
dl-load.c:(.text+0x485a): undefined reference to `__close'
/root/rpmbuild/BUILD/glibc-build/elf/librtld.os: In function `_dl_map_object_from_fd':
dl-load.c:(.text+0x490c): undefined reference to `__GI___fxstat64'
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: /root/rpmbuild/BUILD/glibc-build/elf/librtld.os: relocation R_X86_64_PC32 against undefined symbol `__GI___fxstat64' can not be used when making a shared object; recompile with -fPIC
/opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [/root/rpmbuild/BUILD/glibc-build/elf/] Error 1
make[2]: Leaving directory `/root/rpmbuild/BUILD/glibc-2.27/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/root/rpmbuild/BUILD/glibc-2.27'
make: *** [all] Error 2

Thanks for any help

Attachment: signature.asc
Description: Message signed with OpenPGP

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]