This is the mail archive of the libc-help@sourceware.org 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] |
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,-)' \ -Wl,-Map,/root/rpmbuild/BUILD/glibc-build/elf/librtld.os.map gcc -nostdlib -nostartfiles -shared -o /root/rpmbuild/BUILD/glibc-build/elf/ld.so.new \ -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/ld.map \ -Wl,-soname=ld-linux-x86-64.so.2 \ -Wl,-defsym=_begin=0 /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/ld.so] 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 Andreas
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] |