LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 06-20-2012, 12:18 AM   #1
dhiren02@solaris
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
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
 
Old 06-20-2012, 03:47 AM   #2
dickey
Member
 
Registered: Jun 2009
Posts: 43

Rep: Reputation: 18
Quote:
Originally Posted by dhiren02@solaris View Post
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
The problem actually is a long-ago change to gcc, which used to honor a mixture of -static and -dynamic options. ncurses 5.9 drops that feature (does not attempt to mix library types).
 
2 members found this post helpful.
Old 06-20-2012, 10:44 AM   #3
skipper123
LQ Newbie
 
Registered: Jun 2012
Posts: 10

Rep: Reputation: Disabled
You can install a pre-compiled copy of ncurses 5.7 from sunfreeware

Check out http://www.sunfreeware.com/

If you are using SPARC/Solaris 10 then http://www.sunfreeware.com/indexsparc10.html
If you are using x86/Solaris 10 then http://www.sunfreeware.com/indexintel10.html
After downloading the package, gunzip it and then install it using pkgadd -d <file.local>

Hope this helps
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Installation of 96.43 Nvidia driver in Zenwalk fails: fatal error- no screens found slipstream5 Zenwalk 6 03-16-2012 03:14 AM
Installation of 96.43 Nvidia driver in Zenwalk fails: fatal error- no screens found (closed) slipstream5 Zenwalk 1 03-11-2012 03:45 PM
error msg while compiling kernel 'grubby fatal error no suitable templates found' suj Linux - Server 1 08-12-2010 09:33 PM
LFS 6.3 - ncurses fails compiling - chapter 5.13.1 Doomed Linux From Scratch 2 05-27-2008 06:39 AM
Problem compiling programs using ncurses library (gcc 3.2.2 and RH9 default inst.) jclark7777 Linux - Newbie 1 07-20-2004 01:59 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 04:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration