This is the mail archive of the 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
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.


The build.log had this at the bottom:
[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'
As far as I can tell, I have lib dl installed fine:

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.


Ben Greear <>
Candela Technologies Inc

-- For unsubscribe information see

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