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

Joe Ciccone jciccone at gmail.com
Sun Aug 9 09:34:51 PDT 2009


Roy Bekken wrote:
> $ ll {,/usr}/lib{,64}/libdl*
> ls: cannot access /lib/libdl*: No such file or directory
> ls: cannot access /usr/lib/libdl*: No such file or directory
> -rwxr-xr-x.   1 root root 23208 2009-05-22 18:35 /lib64/libdl-2.10.1.so
> lrwxrwxrwx. 1 root root        15 2009-07-18 12:02 /lib64/libdl.so.2
> -> libdl-2.10.1.so
> lrwxrwxrwx. 1 root root        22 2009-07-18 12:04 /usr/lib64/libdl.so
> -> ../../lib64/libdl.so.2
>
>
> On Sun, Aug 9, 2009 at 4:37 PM, Joe Ciccone<jciccone at gmail.com> wrote:
>   
>> Roy Bekken wrote:
>>     
>>> $ echo $PATH
>>> /cross-tools/bin:/bin:/usr/bin
>>>
>>>
>>> On Sun, Aug 9, 2009 at 3:57 PM, Joe Ciccone <jciccone at gmail.com> wrote:
>>>
>>>       
>>>> Roy Bekken wrote:
>>>>
>>>>         
>>>>> Hi
>>>>>
>>>>> ncurses in chapter 5 fails on “make -C progs tic”
>>>>>
>>>>>
>>>>> make[1]: Leaving directory `/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
>>>>>
>>>>> /usr/bin/ld: cannot find -ldl
>>>>>
>>>>> collect2: ld returned 1 exit status
>>>>>
>>>>> make: *** [tic] Error 1
>>>>>
>>>>> make: Leaving directory `/mnt/clfs/tools/build/ncurses-5.7/progs'
>>>>>
>>>>>
>>>>> I'm building on Fedora 11 x86_64
>>>>>
>>>>> The book is from commit e47a554. Do anyone else experience this or
>>>>> have a solution?
>>>>>
>>>>>
>>>>>           
>> Next step, check if libdl.so exists on your host system.
>>
>>     
Could you please run this test and send the results?

echo "int main() {}" | gcc -ldl -x c - -v -Wl,-verbose



More information about the Clfs-support mailing list