Ticket #226 (closed task: invalid)

Opened 8 years ago

Last modified 8 years ago

/usr/bin/ld: cannot find -ldl

Reported by: plsak Owned by: clfs-commits@…
Priority: major Milestone:
Component: BOOK Version:
Keywords: Cc:

Description

Hi,

during compilation of ncurses ( http://cross-lfs.org/view/svn/x86_64-64/cross-tools/ncurses.html) all is going file until "make -C progs tic".

After execution of this I get error: a - ../objects/keyok.o a - ../objects/version.o ranlib ../lib/libncurses.a make[1]: Leaving directory `/mnt/clfs/sources/ncurses-5.7/ncurses' gcc ../objects/tic.o ../objects/dump_entry.o -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/sources/ncurses-5.7/progs'

Pls help as all environment is set exactly as in book, also all commands and patches have been applied. I have been trying to link the libdl.so or to modify the progs Makefile, but without success (just another errors).

The progs Makefile is attached.

Thx

Attachments

Makefile Download (12.7 KB) - added by plsak 8 years ago.
environment.txt Download (1.6 KB) - added by plsak 8 years ago.
ncurses_compile_error.txt Download (4.0 KB) - added by plsak 8 years ago.
config.log Download (62.3 KB) - added by plsak 8 years ago.
config.2.log Download (61.8 KB) - added by yermandu 8 years ago.

Change History

Changed 8 years ago by plsak

Changed 8 years ago by plsak

Changed 8 years ago by plsak

Changed 8 years ago by plsak

comment:1 Changed 8 years ago by plsak

Problem seems to be solved by:

  1. I finished section 5. Constructing Cross-Compile Tools (without Ncurses-5.7)
  2. ln -s /mnt/clfs/tools/lib/libdl.a /mnt/clfs/sources/ncurses-5.7/lib/libdl.a
  3. ln -s /mnt/clfs/tools/lib/libc.a /mnt/clfs/sources/ncurses-5.7/lib/libc.a

Then compilation was finished successfully (progs/tic created).

comment:2 Changed 8 years ago by jciccone

  • Status changed from new to closed
  • Resolution set to invalid

You're fix is contaminating the build. It will only work if you target and host are of compatible archs. This is most likely due to a missing host system dependency, eg, libdl. Instead of linking it into ncurses-5.7 you should have installed the appropriate library on your host.

Resolving as invalid because there's nothing to fix.

Changed 8 years ago by yermandu

Note: See TracTickets for help on using tickets.