The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
problems installing 5.0.7 on HP DL 380G5 jose_antonio SCO 1 09-28-2007 05:52 PM
Problems de-installing NetConnect i_am_homer SUN Solaris 2 04-18-2007 10:46 AM
Problems installing AIX on vio Morella AIX 0 08-15-2006 09:27 PM
Problems installing perl5 irasela UNIX for Dummies Questions & Answers 0 03-03-2006 08:06 PM
problems about installing Solaris 8 on PC samprax UNIX for Dummies Questions & Answers 2 07-05-2002 05:43 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-29-2007
KenLynch KenLynch is offline
Registered User
  
 

Join Date: Jan 2007
Location: Dublin, Ireland
Posts: 15
Problems Installing Top

I've been trying to install Top on our Solaris box but it's giving me some trouble.

The uname -a command shows

SunOS servername 5.9 Generic sun4u sparc SUNW,Ultra-250

I downloaded Top form www.unixtop.com.

On the initial install I got errors because I didn't have a C compiler installed.

So I downloaded GCC from Sunfree and also downloaded the libiconv library as the site suggested.

I used pkgadd to install both of these.

When I try to configure Top after these packages had been installed, i.e. try to do "make" or "make install" I get the following error messages...

We are done with the questions.
Saving configuration...
Building Makefile...
Building top.local.h...
Building top.1...
Doing a "make clean".
rm -f *.o top core core.* sigdesc.h
To create the executable, type "make".
To install the executable, type "make install".
# make
/usr/local/bin/gcc -DHAVE_GETOPT -DORDER -DHAVE_STRERROR -DUSE_SIZE_T -c top.c
In file included from /usr/include/sys/time.h:418,
from /usr/include/sys/select.h:20,
from /usr/local/lib/gcc/sparc-sun-solaris2.5.1/3.4.2/include/sys/types.h:291,
from os.h:1,
from top.c:34:
/usr/include/time.h:111: error: parse error before "pthread_attr_t"
/usr/include/time.h:113: error: parse error before '}' token
In file included from /usr/local/lib/gcc/sparc-sun-solaris2.5.1/3.4.2/include/sys/signal.h:127,
from /usr/include/signal.h:27,
from top.c:35:
/usr/include/sys/siginfo.h:284: error: parse error before "int32_t"
/usr/include/sys/siginfo.h:286: error: parse error before '}' token
/usr/include/sys/siginfo.h:288: error: parse error before '}' token
/usr/include/sys/siginfo.h:415: error: parse error before "int32_t"
/usr/include/sys/siginfo.h:416: error: conflicting types for '__rctl'
/usr/include/sys/siginfo.h:285: error: previous declaration of '__rctl' was here
/usr/include/sys/siginfo.h:418: error: parse error before '}' token
/usr/include/sys/siginfo.h:420: error: parse error before '}' token
/usr/include/sys/siginfo.h:424: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
In file included from /usr/include/signal.h:27,
from top.c:35:
/usr/local/lib/gcc/sparc-sun-solaris2.5.1/3.4.2/include/sys/signal.h:160: error: parse error before "siginfo_t"
In file included from top.c:35:
/usr/include/signal.h:103: error: parse error before "int"
/usr/include/signal.h:105: error: parse error before "siginfo_t"
/usr/include/signal.h:106: error: parse error before "siginfo_t"
*** Error code 1
make: Fatal error: Command failed for target `top.o'
# make install
/usr/local/bin/gcc -DHAVE_GETOPT -DORDER -DHAVE_STRERROR -DUSE_SIZE_T -c top.c
In file included from /usr/include/sys/time.h:418,
from /usr/include/sys/select.h:20,
from /usr/local/lib/gcc/sparc-sun-solaris2.5.1/3.4.2/include/sys/types.h:291,
from os.h:1,
from top.c:34:
/usr/include/time.h:111: error: parse error before "pthread_attr_t"
/usr/include/time.h:113: error: parse error before '}' token
In file included from /usr/local/lib/gcc/sparc-sun-solaris2.5.1/3.4.2/include/sys/signal.h:127,
from /usr/include/signal.h:27,
from top.c:35:
/usr/include/sys/siginfo.h:284: error: parse error before "int32_t"
/usr/include/sys/siginfo.h:286: error: parse error before '}' token
/usr/include/sys/siginfo.h:288: error: parse error before '}' token
/usr/include/sys/siginfo.h:415: error: parse error before "int32_t"
/usr/include/sys/siginfo.h:416: error: conflicting types for '__rctl'
/usr/include/sys/siginfo.h:285: error: previous declaration of '__rctl' was here
/usr/include/sys/siginfo.h:418: error: parse error before '}' token
/usr/include/sys/siginfo.h:420: error: parse error before '}' token
/usr/include/sys/siginfo.h:424: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
In file included from /usr/include/signal.h:27,
from top.c:35:
/usr/local/lib/gcc/sparc-sun-solaris2.5.1/3.4.2/include/sys/signal.h:160: error: parse error before "siginfo_t"
In file included from top.c:35:
/usr/include/signal.h:103: error: parse error before "int"
/usr/include/signal.h:105: error: parse error before "siginfo_t"
/usr/include/signal.h:106: error: parse error before "siginfo_t"
*** Error code 1
make: Fatal error: Command failed for target `top.o'



Any ideas on what the problem here is?

What am I missing?

Any help would be greatly appreciated.

EDIT:

Can anyone tell me why its looking for top.o when it has clearly deleted all files ending with that extension i.e.

Doing a "make clean".
rm -f *.o top core core.* sigdesc.h


I have done a find from root on all files ending in a .o extension and there is no top.o ...

Curious eh?


Slàn.

Last edited by KenLynch; 01-29-2007 at 08:52 AM..
  #2 (permalink)  
Old 01-29-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,124
Building a top.o is the operation that "make" was attempting when errors occurred. It knows there is no top.o. That is what it is complaining about. Somehow you have the wrong gcc. Here are two lines that you posted:

SunOS servername 5.9 Generic sun4u sparc SUNW,Ultra-250
from /usr/local/lib/gcc/sparc-sun-solaris2.5.1/3.4.2/include/sys/types.h:291,

You are using 5.9 but your gcc is designed for 2.5.1. What is Sunfree? You should use www.sunfreeware.com and you should simply download a 5.9 version of top from that site.

Exact link:
http://www.sunfreeware.com/programlistsparc9.html#top
  #3 (permalink)  
Old 01-29-2007
KenLynch KenLynch is offline
Registered User
  
 

Join Date: Jan 2007
Location: Dublin, Ireland
Posts: 15
Yes I realised that..

I downloaded the compiled version from sunfreeware in the end and all was well.

Cheers,
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:02 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0