I suspect that I've configured something incorrectly; however, it isn't
clear to me exactly what that might be. With that said; here's the reason
why i'm asking for advice:
gcc -nostdlib -nostartfiles -o /src/glibc/glibc/db2/makedb -Wl,-dynamic-lin
ker=/lib/ld-linux.so.2 /src/glibc/glibc/csu/crt1.o /src/glibc/glibc/csu/cr
ti.o `gcc --print-file-name=crtbegin.o` /src/glibc/glibc/db2/makedb.o /src/g
libc/glibc/db2/libdb.so.3 -Wl,-rpath-link=/src/glibc/glibc:/src/glibc/glibc
/math:/src/glibc/glibc/elf:/src/glibc/glibc/nss:/src/glibc/glibc/nis:/src/gl
ibc/glibc/db2:/src/glibc/glibc/rt:/src/glibc/glibc/resolv:/src/glibc/glibc/l
inuxthreads /src/glibc/glibc/libc.so.6 /src/glibc/glibc/libc_nonshared.a -lg
cc `gcc --print-file-name=crtend.o` /src/glibc/glibc/csu/crtn.o
/src/glibc/glibc/libc.so.6: undefined reference to `__strtold_internal'
/src/glibc/glibc/libc.so.6: undefined reference to `__printf_fphex'
collect2: ld returned 1 exit status
make[2]: *** [/src/glibc/glibc/db2/makedb] Error 1
make[2]: Leaving directory `/src/glibc/glibc-2.1/db2'
make[1]: *** [db2/others] Error 2
make[1]: Leaving directory `/src/glibc/glibc-2.1'
make: *** [all] Error 2
Now, with that out of the way, let's go on with the pertinent
information:
-- Versions installed: (if some fields are empty or looks
-- unusual then possibly you have very old versions)
Linux DarkStar 2.2.7-ac2 #1 SMP Fri May 7 00:12:07 MST 1999 i686 unknown
Kernel modules 2.2.2-pre6
Gnu C egcs-2.91.66
Binutils 2.9.1.0.24
Linux C Library 2.0.7
Dynamic linker ldd (GNU libc) 2.0.7
Linux C++ Library 2.8.1
Linux C++ Library 2.9.0
Procps 2.0.0
Mount 2.9g
Net-tools 1.51
Kbd 0.94
Sh-utils 1.16
Modules Loaded st
awe_wave opl3 sb uart401 sound soundcore soundlow
nls_iso8859-1 nls_cp437
vfat fat
I'm using make 3.76.1, according to the FAQ, this should be adequate;
however, the FAQ does note that there have been reports of problems
related to the aforementioned version of make. The error message I'm
receiving is not a 'make' related issue, but an issue with the linker
(ld). Additionally, the FAQ mentions that 'gettext-0.10.35' and 'gperf'
might be needed, but it goes on to say that these are necessary only if
one modifies the source code (I have not done so).
So, here's the procedure I used to build glibc-2.1:
Unpack everything:
gunzip -v ../glibc-2.1-2.1.1pre1.diff.gz
gunzip -v ../glibc-2.1.1pre1-2.1.1pre2.diff.gz
tar -zxvf glibc-2.1.tar.gz
tar -zxvf glibc-crypt-2.0.111.tar.gz
tar -zxvf glibc-linuxthreads-2.1.1pre2.tar.gz
mv crypt glibc-2.1/.
mv linuxthreads glibc-2.1/.
Apply patches:
cd glibc-2.1
patch -p1 < ../glibc-2.1-2.1.1pre1.diff > ../log.patch.1 2>&1
patch -p1 < ../glibc-2.1.1pre1-2.1.1pre2.diff > ../log.patch.2 2>&1
Check that the patches applied OK:
less ../log.patch.[12]
Read INSTALL:
less INSTALL
Prepare for build:
On my first attempt, I issued the './configure ...' command shown
below. I received an error message indicating that it would
be better to move the '/usr/include' directory out of the way.
This seemed like a reasonable suggestion to me (at least not
'un-reasonable'), so that is why I performed the next step.
su - root
cd /usr
mv include include.save
mkdir include
cd include
ln -s ../src/linux/include/asm asm
ln -s ../src/linux/include/linux linux
exit
Configure for build:
mkdir glibc
cd glibc
../glibc-2.1/configure \
--prefix=/usr \
--host=i686-pc-linux-gnu \
--build=i686-pc-linux-gnu \
--enable-add-ons
(Yes, '--prefix=/usr' is probably not the smartest thing to
do ... letting 'prefix' default to '/usr/local' yields the same
error message)
Start build:
make
Thus, I arrived at the error message listed in the beginning of this message.
Have I missed an important step in the configuration procedure? If anyone
has some insight as to where I've gone wrong; please let me know what it
is so that I can correct my oversight. I assume that this could also be a
'bug'; however, i'd prefer not to make that claim.
Thank you for your time and 'cc:'
Brubaker