public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
From: Andreas Hubert <anhubert@googlemail.com>
To: libc-help@sourceware.org
Subject: Building 2.27 on CentOS
Date: Tue, 29 May 2018 09:21:00 -0000	[thread overview]
Message-ID: <FD83DD34-891A-466D-99E1-C97A17A80ECC@googlemail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2091 bytes --]

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 #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 873 bytes --]

             reply	other threads:[~2018-05-29  9:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-29  9:21 Andreas Hubert [this message]
2018-05-29 11:25 ` Florian Weimer
2018-05-29 12:05   ` Andreas Hubert
2018-06-01 10:45     ` Andreas Hubert
2018-06-01 11:33       ` Florian Weimer
2018-06-01 11:38         ` Andreas Hubert
2018-06-01 11:43           ` Florian Weimer
2018-06-01 13:54             ` Andreas Hubert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FD83DD34-891A-466D-99E1-C97A17A80ECC@googlemail.com \
    --to=anhubert@googlemail.com \
    --cc=libc-help@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).