Torsdag 03 april 2008 12:44, skrev werner maes:
> hello
>
> I got this error both with perl-5.8.8 & perl-5.10.0. Any ideas what's
> wrong. machine = etch
> glibc = 2.3.6
>
> ...
> Any additional ld flags (NOT including libraries)? [none]
>
> Checking your choice of C compiler and flags for coherency...
> I've tried to compile and run the following simple program:
>
> #include <stdio.h>
> int main() { printf("Ok\n"); return(0); }
>
> I used the command:
>
>          cc -o try -O2 -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
> -isystem /unattended/linuxboot/fakeinclude
> -L/unattended/linuxboot/fakelib -L/unattended/linuxboot/stage1/lib
> -L/unattended/linuxboot/stage1/usr/lib
> -Wl,-rpath-link,/unattended/linuxboot/stage1/lib -fno-strict-aliasing
> -pipe -Wdeclaration-after-statement -I/usr/local/include try.c -lnsl
> -ldl -lm -lcrypt -lutil -lpthread -lc
>           ./try
>
> and I got the following output:
>
> /unattended/linuxboot/stage1/lib/libdl.so: undefined reference to
> [EMAIL PROTECTED]'
> /unattended/linuxboot/stage1/lib/libdl.so: undefined reference to
> [EMAIL PROTECTED]'
> collect2: ld returned 1 exit status
> I can't compile the test program.
> (The supplied flags or libraries might be incorrect.)
>
> You have a BIG problem.  Shall I abort Configure [y]
> Ok.  Stopping Configure.
> make: *** [perl-5.8.8/perl] Error 1
>
>
> For parted-1.8.8 I had to add --disable-dynamic-loading to the
> configure script because of this error
>
> checking for dlopen in -ldl: no
> configure:error; -ldl not found
> Try using --disable-dynamic-loading
>
> werner
>

hi werner

Sorry, I got no idea, but Im trying to read up on this..
We could certainly need a more solid build system!

looks like a glibc issue..
and the parted failure seems related to the glibc one.
you dont have any old files laying in the tree from another glibc build?
I believe to always start with a virgin downloaded source tree before 
switching glibc is a good idea.

According to glibc documentation:
"GCC 3.4 is the compiler we advise to use for 2.3 versions."
so if youre using Etch's gcc 4.1.2 its a stretch..
But this has been working for me on etch a long time now.

So, I just braindump what I have found so far:
use gawk, not mawk (for glibc 2.4 and up)
linuxthreads: comment it out. glibc 2.4 and up does not support it,
glibc 2.3.6 works fine without linuxtrhreads.
glibc seems to be picky about binutils version..
etch has binutils 2.17, lenny 2.18.



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
unattended-devel mailing list
unattended-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-devel

Reply via email to