[Clfs-support] Cross-Compile Tools -- ncurses cannot find -ldl

Roy Bekken roy.bekken at gmail.com
Sun Aug 9 10:09:27 PDT 2009


On Sun, Aug 9, 2009 at 6:56 PM, Joe Ciccone<jciccone at gmail.com> wrote:
> Roy Bekken wrote:
>> On Sun, Aug 9, 2009 at 6:34 PM, Joe Ciccone<jciccone at gmail.com> wrote:
>>
>>> Could you please run this test and send the results?
>>>
>>> echo "int main() {}" | gcc -ldl -x c - -v -Wl,-verbose
>>> _______________________________________________
>>> Clfs-support mailing list
>>> Clfs-support at lists.cross-lfs.org
>>> http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
>>>
>>>
>>
>> I tried the command in both the clfs build environment as as my normal
>> user, output was identical.
>>
> The output you provided looks good, it compiled successfully.
>
> Lets try this,
>
> cd /mnt/clfs/tools/build/ncurses-5.7/ncurses
> gcc ../objects/tic.o ../objects/dump_entry.o -s -I../progs -I.
> -DHAVE_CONFIG_H -I. -I../include -D_GNU_SOURCE -DNDEBUG
> -I/cross-tools/include/ncurses -O2 --param max-inline-insns-single=1200
> -static -L../lib -lncurses -L../lib -lncurses -dynamic -ldl -o tic -v
> -Wl,--verbose
> _______________________________________________
> Clfs-support mailing list
> Clfs-support at lists.cross-lfs.org
> http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org
>
OK, the command revealed that libdl.a was missing. Turns out that
fedora have a package glibc-static that I didn't know about, I have
now installed that and now its builds fine.

Thanks for your help.
	Roy



More information about the Clfs-support mailing list