compiling perl fails

Dan Nicholson dbn.lists at gmail.com
Thu Jan 3 08:59:24 PST 2008


On Jan 1, 2008 7:36 AM, Tobias Vogel <tobias.vogel at bluewin.ch> wrote:
> hi,
>
> i'm trying to compile perl, i also tried to use the perl-5.10.0 instead
> of the 5.8.8-package, but both of them fail with this message:
>
>
>       Making B (dynamic)
> make[1]: Entering directory `/sources/perl-5.10.0/ext/B´
> make[1]: Leaving directory `/sources/perl-5.10.0/ext/B´
> make[1]: Entering directory `/sources/perl-5.10.0/ext/B´
> rm -f ../../lib/auto/B/B.so
> cc  -L/usr/local/lib B.o  -o  ./../lib/auto/B/B.so    \
> \
>
> /usr/lib/gcc/i486-pc-linux-gnu/4.0.3/../../../crt1.o: In function `_start´:
> ../sysdeps/i386/elf/start.S:115: undefined reference to `main´

I suspect the toolchain adjustment did not go correctly. It's trying
to use the startfiles (crt1.o) from your host's glibc. However, at
this point, it should be using the /tools startfiles
(/tools/lib/crt1.o). Is cc /tools/bin/gcc? Perhaps you're actually
using your host's compiler or forgot the /tools/bin/cc -> gcc symlink.

--
Dan



More information about the lfs-support mailing list