This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error building ncurses.


On 06/30/2010 12:53 PM, Yann E. MORIN wrote:
Ben, All,

On Wednesday 30 June 2010 21:16:36 Ben Greear wrote:
cg-ng build
[--SNIP--]
I'm using arm-unknown-linux-gnueabi.  The only changes I made were to
disable gcj and Fortran.
Host system is 64-bit Fedora 11.

OK.


The build.log had this at the bottom:
[--SNIP--]
[ALL  ]    x86_64-build_redhat-linux-gnu-gcc ../objects/tic.o ../objects/dump_entry.o  -I../progs -I/home/greearb/tmp/cxt/targets/src/ncurses-5.7/progs
-DHAVE_CONFIG_H -I/home/greearb/tmp/cxt/targets/src/ncurses-5.7/progs/../include -I. -I../include  -D_GNU_SOURCE -DNDEBUG -O2 --param
max-inline-insns-single=1200 -static -L../lib -lncurses -L../lib -lncurses -dynamic  -ldl  -o tic
[ALL  ]    /usr/bin/ld: cannot find -ldl
[ALL  ]    collect2: ld returned 1 exit status
[ERROR]    make[1]: *** [tic] Error 1
[ALL  ]    make[1]: Leaving directory `/home/greearb/tmp/cxt/targets/arm-unknown-linux-gnueabi/build/build-ncurses-build-tic/progs'
[--SNIP--]
As far as I can tell, I have lib dl installed fine:
/lib/libdl-2.10.2.so
/lib/libdl.so.2
/lib64/libdl-2.10.2.so
/lib64/libdl.so.2
/usr/lib64/libdl.so

Notice the '-static' on the command line? Do you have a libdl.a somewhere? On my Debian, libdl is in package libc6-dev. Fedora should have it in a similarly named package.

Doesn't that -dynamic before -ldl change it back to use dynamic?


Anyway, glibc-static on Fedora installs some static libs, including libdl.a.

I just installed that and I'm recompiling now. I'll let you know how that goes.

Thanks,
Ben

--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


-- For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]