Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#226 closed task (invalid)

/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 (5)

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

Download all attachments as: .zip

Change History (8)

by plsak, 15 years ago

Attachment: Makefile added

by plsak, 15 years ago

Attachment: environment.txt added

by plsak, 15 years ago

Attachment: ncurses_compile_error.txt added

by plsak, 15 years ago

Attachment: config.log added

comment:1 by plsak, 15 years ago

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 by Joe Ciccone, 15 years ago

Resolution: invalid
Status: newclosed

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.

by yermandu, 15 years ago

Attachment: config.2.log added
Note: See TracTickets for help on using tickets.