compiling ncurses on Solaris 10 fails with ld: fatal: library -lc: not found
Hi,
I am trying to setup spew on my solaris 10 box, the dependency for spew is ncurses. However when i start compiling the ncurses-5.7 the compilation fails with error
gcc ../objects/tic.o ../objects/dump_entry.o -I../progs -I. -DHAVE_CONFIG_H -I. -I../include -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 -DNDEBUG -I/usr/local/include/ncurses -O2 --param max-inline-insns-single=1200 -static -L../lib -lncurses -L../lib -lncurses -dynamic -o tic
ld: fatal: library -lc: not found
ld: fatal: File processing errors. No output written to tic
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `tic'
Current working directory /Desktop/ncurses-5.7/progs
*** Error code 1
make: Fatal error: Command failed for target `all'
I have exported the LD_LIBRARY_PATH to /usr/lib where my libncurses.so exists but no use.
please, any help on this is appreciated. this is my first time on solaris so if its a stupid mistake, please let me know..
Thanks in advance
|