>>>>> Xavyer  writes:

Xavyer> I suspect that I've configured something incorrectly; however, it isn't
Xavyer> clear to me exactly what that might be.  With that said; here's the reason
Xavyer> why i'm asking for advice:

Xavyer> gcc -nostdlib -nostartfiles -o /src/glibc/glibc/db2/makedb  -Wl,-dynamic-lin
Xavyer> ker=/lib/ld-linux.so.2   /src/glibc/glibc/csu/crt1.o /src/glibc/glibc/csu/cr
Xavyer> ti.o `gcc --print-file-name=crtbegin.o` /src/glibc/glibc/db2/makedb.o /src/g
Xavyer> libc/glibc/db2/libdb.so.3  -Wl,-rpath-link=/src/glibc/glibc:/src/glibc/glibc
Xavyer> /math:/src/glibc/glibc/elf:/src/glibc/glibc/nss:/src/glibc/glibc/nis:/src/gl
Xavyer> ibc/glibc/db2:/src/glibc/glibc/rt:/src/glibc/glibc/resolv:/src/glibc/glibc/l
Xavyer> inuxthreads /src/glibc/glibc/libc.so.6 /src/glibc/glibc/libc_nonshared.a -lg
Xavyer> cc `gcc --print-file-name=crtend.o` /src/glibc/glibc/csu/crtn.o
Xavyer> /src/glibc/glibc/libc.so.6: undefined reference to `__strtold_internal'
Xavyer> /src/glibc/glibc/libc.so.6: undefined reference to `__printf_fphex'
Xavyer> collect2: ld returned 1 exit status
Xavyer> make[2]: *** [/src/glibc/glibc/db2/makedb] Error 1
Xavyer> make[2]: Leaving directory `/src/glibc/glibc-2.1/db2'
Xavyer> make[1]: *** [db2/others] Error 2
Xavyer> make[1]: Leaving directory `/src/glibc/glibc-2.1'
Xavyer> make: *** [all] Error 2

Read the file BUGS on how to report bugs.

This looks like you've got some files with length zero lying around.
Please always use patch -E or a newer patch version.  For now:
rm `find . -size 0` 
in your source directory and start with a fresh build in the separate
build directory.

Xavyer> Apply patches:

Xavyer>         cd glibc-2.1
Xavyer>         patch -p1 < ../glibc-2.1-2.1.1pre1.diff > ../log.patch.1 2>&1
patch -p1 -E !
Xavyer>         patch -p1 < ../glibc-2.1.1pre1-2.1.1pre2.diff > ../log.patch.2 2>&1
likewise
Xavyer> Check that the patches applied OK:

Xavyer>         less ../log.patch.[12]

Xavyer> Read INSTALL:

Xavyer>         less INSTALL

Xavyer> Prepare for build:

Xavyer>         On my first attempt, I issued the './configure ...' command shown
Xavyer>         below.  I received an error message indicating that it would
Xavyer>         be better to move the '/usr/include' directory out of the way.
Xavyer>         This seemed like a reasonable suggestion to me (at least not
Xavyer>         'un-reasonable'), so that is why I performed the next step.
The message is different, glibc will remove some files, you don't need 
to remove those yourself.
Xavyer>         su - root
Xavyer>         cd /usr
Xavyer>         mv include include.save
Xavyer>         mkdir include
Xavyer>         cd include
Xavyer>         ln -s ../src/linux/include/asm asm
Xavyer>         ln -s ../src/linux/include/linux linux
Xavyer>         exit

Xavyer> Configure for build:

Xavyer>         mkdir glibc
Xavyer>         cd glibc
Xavyer>         ../glibc-2.1/configure \
Xavyer>                 --prefix=/usr \
Fine
Xavyer>                 --host=i686-pc-linux-gnu \
Xavyer>                 --build=i686-pc-linux-gnu \
Just i686-pc-linux-gnu is enough.
Xavyer>                 --enable-add-ons

Xavyer>         (Yes, '--prefix=/usr' is probably not the smartest thing to
Xavyer>         do ... letting 'prefix' default to '/usr/local' yields the same
Xavyer>         error message)

Andreas
-- 
 Andreas Jaeger   [EMAIL PROTECTED]    [EMAIL PROTECTED]
  for pgp-key finger [EMAIL PROTECTED]

Reply via email to