From: Andre Heidenreich <andre@swol.de>
To: gcc-help@gcc.gnu.org
Subject: undefined reference
Date: Fri, 04 Feb 2000 08:18:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.10.10002031202480.869-100000@deathvalley.darknet.de> (raw)
hi gcc-users
i've a problem when i compiling and linking glibc-2.1.2.
the following error occured
$> gcc -nostdlib -nostartfiles -o /usr/src/misc/glibc-2.1.2.obj/db2/makedb
/usr/src/misc/glibc-2.1.2.obj/csu/crt1.o
/usr/src/misc/glibc-2.1.2.obj/csu/crti.o `gcc
--print-file-name=crtbegin.o`
/usr/src/misc/glibc-2.1.2.obj/db2/makedb.o
/usr/src/misc/glibc-2.1.2.obj/db2/libdb.so.3
-Wl,-rpath-link=/usr/src/misc/glibc-2.1.2.obj:/usr/src/misc/glibc-2.1.2.obj/math:/usr/src/misc/glibc-2.1.2.obj/elf:/usr/src/misc/glibc-2.1.2.obj/nss:/usr/src/misc/glibc-2.1.2.obj/nis:/usr/src/misc/glibc-2.1.2.obj/db2:/usr/src/misc/glibc-2.1.2.obj/rt:/usr/src/misc/glibc-2.1.2.obj/resolv:/usr/src/misc/glibc-2.1.2.obj/linuxthreads
/usr/src/misc/glibc-2.1.2.obj/libc.so.6.1
/usr/src/misc/glibc-2.1.2.obj/libc_nonshared.a -lgcc `gcc
--print-file-name=crtend.o` /usr/src/misc/glibc-2.1.2.obj/csu/crtn.o
/usr/src/misc/glibc-2.1.2.obj/elf/ld-linux.so.2: undefined reference to
`__libc_global_ctors'
why was /usr/src/misc/glibc-2.1.2.obj/elf/ld-linux.so.2 used?
$> nm /usr/src/misc/glibc-2.1.2.obj/elf/ld-linux.so.2 | grep
__libc_global_ctors
U __libc_global_ctors
and
$> nm /usr/src/misc/glibc-2.1.2.obj/libc.so.6.1 | grep
__libc_global_ctors
0000000000031ba0 t __libc_global_ctors
and also
$> nm /lib/libc.so.6.1 | grep __libc_global_ctors
0000000000032280 t __libc_global_ctors
why are there errors during linking?
my system:
$> gcc -v
Reading specs from
/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
with glibc-2.1.2-17.alpha.rpm installed
thx for advise
andre
WARNING: multiple messages have this Message-ID
From: Andre Heidenreich <andre@swol.de>
To: gcc-help@gcc.gnu.org
Subject: undefined reference
Date: Sat, 01 Apr 2000 00:00:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.10.10002031202480.869-100000@deathvalley.darknet.de> (raw)
Message-ID: <20000401000000.lGYDPc6BHh__YvG3x-eoG7r8GcgQJoBGn22Hkhl-0JU@z> (raw)
hi gcc-users
i've a problem when i compiling and linking glibc-2.1.2.
the following error occured
$> gcc -nostdlib -nostartfiles -o /usr/src/misc/glibc-2.1.2.obj/db2/makedb
/usr/src/misc/glibc-2.1.2.obj/csu/crt1.o
/usr/src/misc/glibc-2.1.2.obj/csu/crti.o `gcc
--print-file-name=crtbegin.o`
/usr/src/misc/glibc-2.1.2.obj/db2/makedb.o
/usr/src/misc/glibc-2.1.2.obj/db2/libdb.so.3
-Wl,-rpath-link=/usr/src/misc/glibc-2.1.2.obj:/usr/src/misc/glibc-2.1.2.obj/math:/usr/src/misc/glibc-2.1.2.obj/elf:/usr/src/misc/glibc-2.1.2.obj/nss:/usr/src/misc/glibc-2.1.2.obj/nis:/usr/src/misc/glibc-2.1.2.obj/db2:/usr/src/misc/glibc-2.1.2.obj/rt:/usr/src/misc/glibc-2.1.2.obj/resolv:/usr/src/misc/glibc-2.1.2.obj/linuxthreads
/usr/src/misc/glibc-2.1.2.obj/libc.so.6.1
/usr/src/misc/glibc-2.1.2.obj/libc_nonshared.a -lgcc `gcc
--print-file-name=crtend.o` /usr/src/misc/glibc-2.1.2.obj/csu/crtn.o
/usr/src/misc/glibc-2.1.2.obj/elf/ld-linux.so.2: undefined reference to
`__libc_global_ctors'
why was /usr/src/misc/glibc-2.1.2.obj/elf/ld-linux.so.2 used?
$> nm /usr/src/misc/glibc-2.1.2.obj/elf/ld-linux.so.2 | grep
__libc_global_ctors
U __libc_global_ctors
and
$> nm /usr/src/misc/glibc-2.1.2.obj/libc.so.6.1 | grep
__libc_global_ctors
0000000000031ba0 t __libc_global_ctors
and also
$> nm /lib/libc.so.6.1 | grep __libc_global_ctors
0000000000032280 t __libc_global_ctors
why are there errors during linking?
my system:
$> gcc -v
Reading specs from
/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
with glibc-2.1.2-17.alpha.rpm installed
thx for advise
andre
next reply other threads:[~2000-02-04 8:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-02-04 8:18 Andre Heidenreich [this message]
2000-02-06 19:06 ` Alexandre Oliva
2000-04-01 0:00 ` Alexandre Oliva
2000-04-01 0:00 ` Andre Heidenreich
2002-10-29 17:22 Undefined Reference Vincent Lee
2002-10-30 1:06 ` bjorn rohde jensen
2004-09-11 15:35 undefined reference zippo
2004-09-11 15:58 ` Eljay Love-Jensen
2004-09-11 20:00 ` zippo
2004-09-11 23:35 ` Eljay Love-Jensen
[not found] <CA+JCqFYCePkAWFyUv5gp4rZbMUL8j71hBxY6=-4ju2DduhpCGA@mail.gmail.com>
2022-06-05 13:03 ` renwang101
2022-06-05 22:07 ` fedor_qd
2022-06-05 22:54 ` renwang101
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=Pine.LNX.4.10.10002031202480.869-100000@deathvalley.darknet.de \
--to=andre@swol.de \
--cc=gcc-help@gcc.gnu.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).