2009-11-23 21:03:22     Ncurses Build Error ( /usr/bin/ld: cannot find -ldl )

Document created by Aaronwu Employee on Aug 19, 2013
Version 1Show Document
  • View in full screen mode

2009-11-23 21:03:22     Ncurses Build Error ( /usr/bin/ld: cannot find -ldl )

marcello marabese (UNITED KINGDOM)

Message: 82672   

 

Hi guys, was wondering if someone could help me out with a problem building my kernel which seems to be something to do with Ncurses, I'm using Fedora and have installed Ncurses. But when i build i get the following output:

 

 

 

make[5]: Nothing to be done for `all'.

make[5]: Leaving directory `/home/marcello/Development/UClinux/uClinux-dist/lib/ncurses/build-host-ncurses-5.7/include'

make -C build-host-ncurses-5.7/progs tic

make[5]: Entering directory `/home/marcello/Development/UClinux/uClinux-dist/lib/ncurses/build-host-ncurses-5.7/progs'

cc ../objects/tic.o ../objects/dump_entry.o  -I../progs -I../../ncurses-5.7/progs -DHAVE_CONFIG_H -I../../ncurses-5.7/progs/../include -I. -I../include  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64  -DNDEBUG -O2 -g  --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[5]: *** [tic] Error 1

make[5]: Leaving directory `/home/marcello/Development/UClinux/uClinux-dist/lib/ncurses/build-host-ncurses-5.7/progs'

make[4]: *** [host-build] Error 2

make[4]: Leaving directory `/home/marcello/Development/UClinux/uClinux-dist/lib/ncurses'

make[3]: *** [build-host-ncurses-5.7/Makefile] Error 2

make[3]: Leaving directory `/home/marcello/Development/UClinux/uClinux-dist/lib/ncurses'

make[2]: *** [ncurses] Error 2

make[2]: Leaving directory `/home/marcello/Development/UClinux/uClinux-dist/lib'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/home/marcello/Development/UClinux/uClinux-dist/lib'

make: *** [subdirs] Error 1

 

The problem starts with "/usr/bin/ld: cannot find -ldl", i have googled this to find the same problem but haven't found anything. Anyone have any ideas? Any help would be great.

 

 

 

Thanks.

QuoteReplyEditDelete

 

 

2009-11-23 21:11:38     Re: Ncurses Build Error ( /usr/bin/ld: cannot find -ldl )

Mike Frysinger (UNITED STATES)

Message: 82673   

 

you need to install the development packages in your host distro like the documentation tells you to.  in this case, you didnt install the glibc dev package.

QuoteReplyEditDelete

 

 

2009-11-23 21:22:22     Re: Ncurses Build Error ( /usr/bin/ld: cannot find -ldl )

marcello marabese (UNITED KINGDOM)

Message: 82674   

 

Hi Mike,

 

thanks for your reply.

 

I installed "development tools" by using the command yum install "development tools" which i thought should take care of the development package installs.

 

Also i just tried $yum install glibc

 

output: Package glibc-2.11-2.i686 already installed and latest version

 

So glibc seems to be installed.

 

Is there anything else I may have possibly missed out ?

 

Thanks in advance.

QuoteReplyEditDelete

 

 

2009-11-23 21:24:50     Re: Ncurses Build Error ( /usr/bin/ld: cannot find -ldl )

marcello marabese (UNITED KINGDOM)

Message: 82675   

 

Sorry the command I actually used was: # yum groupinstall 'Development Tools'

 

QuoteReplyEditDelete

 

 

2009-11-23 21:26:34     Re: Ncurses Build Error ( /usr/bin/ld: cannot find -ldl )

Mike Frysinger (UNITED STATES)

Message: 82676   

 

if you need fedora help, i'm sure the fedora website can direct you to either documentation or mailing lists / forums / irc / etc...

 

  fedoraproject.org/

QuoteReplyEditDelete

 

 

2009-11-24 11:18:42     Re: Ncurses Build Error ( /usr/bin/ld: cannot find -ldl )

Robin Getz (UNITED STATES)

Message: 82707   

 

Marcello:

 

Have a look at the package lists at:

 

https://docs.blackfin.uclinux.org/doku.php?id=installing_linux

 

All should have Fedora equivilents.

QuoteReplyEditDelete

 

 

2010-01-09 03:10:36     Re: Ncurses Build Error ( /usr/bin/ld: cannot find -ldl )

Ray Zheng (CHINA)

Message: 84335   

 

I have the same problem, and I have checked the glibc package in my fedora system, it exists and works well, like if I write a helloworld program and run the command "cc -o hello hello.c -ldl", no errors happen. so I don't think this is the reason.

 

How do I solve the problem? please let me know, thanks!

TranslateQuoteReplyEditDelete

 

 

2010-01-09 03:23:32     Re: Ncurses Build Error ( /usr/bin/ld: cannot find -ldl )

Mike Frysinger (UNITED STATES)

Message: 84368   

 

you dont have all the glibc packages installed, and your simple test doesnt represent the failure as you didnt use the -static option.

Attachments

    Outcomes