Problems Installing Top


 
Thread Tools Search this Thread
Operating Systems Solaris Problems Installing Top
# 1  
Old 01-29-2007
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  
Old 01-29-2007
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  
Old 01-29-2007
Yes I realised that..

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

Cheers,
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Installing SAMBA problems

I have created an LPAR and the next step is to get SAMBA installed, I have mounted our NIM server up and copied over the SAMBA binaries .bff files. How do i install these? i tried doing this through SMIT but had no luck..? Any help would be greatly appreciated. AIX OS 6.1 (2 Replies)
Discussion started by: audis$
2 Replies

2. UNIX for Dummies Questions & Answers

Installing Java Problems

Hello, When i attempt to install Java. I get this error code Can someone tell me what im doing wrong. (2 Replies)
Discussion started by: Fob Upset
2 Replies

3. Solaris

Problems installing Solaris 10

I just built my new computer with a q6600 quad core, 4 gig ram, Nvidia vidoo card but when I try to install the latest Solaris 10 on it the keyboard is not being detected when the installation starts so I'm unable to go complete the installation. First I tried a USB keyboard and it didn't work,... (2 Replies)
Discussion started by: isomorphic
2 Replies

4. AIX

Problems installing SSH on AIX 5.2

Hi all. I'm a newbie around here and starting an "adventure" through AIX OS's. I'm having a few troubles when i try to install OpenSSH 4.7.0.5201 through smitty installp. I have all prerequisites already installed on my server. As you can see below, my problem is only with the SSH Server.... (7 Replies)
Discussion started by: celotibau
7 Replies

5. SCO

problems installing 5.0.7 on HP DL 380G5

hi there, i have a hp DL380G5 with hpsas array controller P400. when installing, i use bootstring as following; defbootstr link=hpsas hd=Sdsk Sdsk=hpsas(0,0,0,0) Srom=wd(0,0,0) then BTLD disk boots ok and looks like the drivers are loaded, all devices show up in boot screen, giving me a... (1 Reply)
Discussion started by: jose_antonio
1 Replies

6. Solaris

Problems de-installing NetConnect

I have run into a problem while attempting to de-install netconnect from a Sol8 box. We got an error during the un-install script when it tries to remove SUNWsrsrp. It can't find the srsuser. We have no idea what user was specified initially. I have tried to remove the package on its own, to no... (2 Replies)
Discussion started by: i_am_homer
2 Replies

7. Solaris

problems in redirecting TOP

Hi All, I am trying to run top in crontab, but I am getting problem while trying to redirecting the output of top cmd. I am getting the process part but the CPU states, user, kernel, iowait, swap part is not showing. While trying top > some_file_name the output i'm getting, top: cannot open... (7 Replies)
Discussion started by: rana_d
7 Replies

8. UNIX for Dummies Questions & Answers

Problems installing perl5

Hi!! I have problems installing perl5 in a Tru64 4.0F enviroment, and i need it to install OpenSSL and OpenSSH to establis a SFTP... I'm installing perl 5.8.8 but an error occurr during make test, i ran ./perl harness and the result is the problem is on op/filetest.t I didn't know what to... (0 Replies)
Discussion started by: irasela
0 Replies

9. UNIX for Dummies Questions & Answers

Problems Downloading and Installing Stuff

HI to everyone, I have been for a very long time in my life a GUI user, and now that i have to use a Solaris 5 terminal, i am not sure how to do some things: Downloading stuff from the internet: How do i do that? in a GUI you just click on the link and start downloading automatic, but i have... (4 Replies)
Discussion started by: sx3v1l_1n51de
4 Replies

10. UNIX for Dummies Questions & Answers

problems about installing Solaris 8 on PC

1. OSes coexistence can i install solaris 8 on my pc's 3th primary harddisk partition without damage the user and boot datas of installed operation system? and does i have to install Solaris 8 within several G(such as 8G) size of the harddisk? the following is partition table of my harddisk: ... (2 Replies)
Discussion started by: samprax
2 Replies
Login or Register to Ask a Question