#226 closed task (invalid)
/usr/bin/ld: cannot find -ldl
Reported by: | plsak | Owned by: | |
---|---|---|---|
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)
Change History (8)
by , 15 years ago
by , 15 years ago
Attachment: | environment.txt added |
---|
by , 15 years ago
Attachment: | ncurses_compile_error.txt added |
---|
by , 15 years ago
Attachment: | config.log added |
---|
comment:1 by , 15 years ago
comment:2 by , 15 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
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 , 15 years ago
Attachment: | config.2.log added |
---|
Problem seems to be solved by:
Then compilation was finished successfully (progs/tic created).