Top v3.7 and v3.8beta1 will not compile on Power7/AIX6.1 server.


 
Thread Tools Search this Thread
Top Forums Programming Top v3.7 and v3.8beta1 will not compile on Power7/AIX6.1 server.
# 1  
Old 04-12-2010
Top v3.7 and v3.8beta1 will not compile on Power7/AIX6.1 server.

Please help!

We are upgrading our server to a new Power7/AIX6.1 from Power5/AIX5.3. I have some programs that rely on output of the TOP command to do various things, however, I keep getting an error when I try to re-compile TOP on my new server (see below). I have tried TOP 3.7 (current release) and 3.8beta1 (latest beta) and neither one will compile.

I am using the m_aix5.c module since there is no module for TOP specific to AIX 6 yet. I was under this impression this would still work, however I'm getting the compile error below in the screen.c program.

Any help with debugging would be appreciated!!

Thanks,
Troy Morton
Senior Technical Analyst
Integration Team

Code:
[/opt/freeware/src/top-3.8beta1]
# ./configure --with-module=aix5
Configuring top 3.8beta1
checking build system type... rs6000-ibm-aix
checking host system type... rs6000-ibm-aix
checking target system type... rs6000-ibm-aix
checking for make... make
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for a BSD-compatible install... ./install-sh -c
checking for isainfo... no
checking for isaexec... no
checking for uname... /usr/bin/uname
checking OS revision number... 1
checking hardware platform... 00F607564C00
checking for elf32_getphdr in -lelf... no
checking for kstat_open in -lkstat... no
checking for kvm_open in -lkvm... no
checking for vm_statistics in -lmach... no
checking for library containing tgetent... -lcurses
checking for exp in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking getopt.h usability... no
checking getopt.h presence... no
checking for getopt.h... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking sysexits.h usability... yes
checking sysexits.h presence... yes
checking for sysexits.h... yes
checking termcap.h usability... no
checking termcap.h presence... no
checking for termcap.h... no
checking for unistd.h... (cached) yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking for term.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for a good signal.h... /usr/include/sys/signal.h
checking for variadic macros...  c99 gnu
checking whether sys_errlist is declared... no
checking whether sys_signame is declared... no
checking whether tputs is declared... yes
checking whether tgoto is declared... yes
checking whether tgetent is declared... yes
checking whether tgetflag is declared... yes
checking whether tgetnum is declared... yes
checking whether tgetstr is declared... yes
checking argument type of tputs putc function... int
checking return type of signal handlers... void
checking for id_t... yes
checking for lwpid_t... no
checking for pid_t... yes
checking for time_t... yes
checking for uid_t... yes
checking for getopt... yes
checking for getopt_long... no
checking for gettimeofday... yes
checking for memcpy... yes
checking for setbuffer... yes
checking for setpriority... yes
checking for setvbuf... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strerror... yes
checking for snprintf... yes
checking for sighold... yes
checking for sigrelse... yes
checking for sigaction... yes
checking for sigprocmask... yes
checking for sysconf... yes
checking for uname... yes
checking for vsnprintf... yes
checking for correct ls options... ls -l
checking for a platform module... aix5
checking for perfstat_cpu_total in -lperfstat... yes
checking address space size... 64
checking whether compiler accepts -m64... no
checking for installation settings... mode=755
checking CFLAGS for maximum warnings... -Wall
checking MODULE_CFLAGS for gcc -fno-strict-aliasing... -fno-strict-aliasing
configure: creating ./config.status
config.status: creating Makefile
config.status: creating top.1
config.status: creating config.h
config.status: config.h is unchanged
 
[/opt/freeware/src/top-3.8beta1]
# make install
        gcc -DHAVE_CONFIG_H  -I. -I. -g -O2 -Wall  -c screen.c
screen.c: In function 'screen_init':
screen.c:368: error: 'struct sgttyb' has no member named 'sg_werase'
make: 1254-004 The error code from the last command is 1.
 
Stop.
[/opt/freeware/src/top-3.8beta1]
# ls -al |grep install


Last edited by troym72; 04-12-2010 at 03:02 PM.. Reason: Removed line with root account and hostname on it.
# 2  
Old 04-12-2010
Googling for that structure member finds an AIX patch for top 3.8beta1.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Pango 1.20 does not compile when passing Cairo or X server packages as backends

Hello. Trying to compile Pango with one or mentioned packages as backend, Cairo or X11 related packages I have been facing a series of error messages that I do not know how to fix. First with Cairo. I try to compile Pango with ./configure ... (1 Reply)
Discussion started by: colt
1 Replies

2. AIX

Power6 vs. Power7 hardware performance

I know I will get blasted for posting here, not know where to post this, however, I have performance question between the 2 platforms. Not knowing the exact processors in each box, but the Power6 Platform clock speed is 4400 (?? at least what was told to me), and the Power7 clock speed is 3500.... (5 Replies)
Discussion started by: mrmurdock
5 Replies

3. AIX

Server Power7 p750 support CentOS or not ?

Hi All, I would like to install CentOS 5.5 linux on Power7 server (P750). it support or not?? I found information from IBM websites as detail below, but not sure for CentOS. IBM Power 750 support linux >>Red Hat Enterprise Linux 5.5, SUSE Linux Enterprise Server 10 SP3,... (2 Replies)
Discussion started by: arm_naja
2 Replies

4. AIX

Migration DB2 V8 databases to Power7 server

hi Guys, I just wondering if someone has gone through this process before. We are about to migrate all our current LPARS from a Power6 server to a new Power7 server. The only concern we have is that we are runing a few DB2 V8 databases on AIX 5.3 and basically DB2 v8 is been out of support for... (2 Replies)
Discussion started by: arizah
2 Replies

5. AIX

RS/6000 server and AIX6.1 question

Hello all. This is my first post on here and I have a question. Recently I was asked how you would go about backing up data from the server to a tape drive that is attached to the RS/6000 system. Assuming that the systems are all new it would be great if someone has a step by step guide that would... (4 Replies)
Discussion started by: aten
4 Replies

6. AIX

Setup DNS server on AIX6.1

I'm planning of setting up a DNS server on AIX 6.1. Could someone shed me some lights on the step-by-steps of how to set this up? Thanks. (2 Replies)
Discussion started by: famasutika
2 Replies

7. AIX

IBM POWER7 595

Does anybody know when POWER7 595 is going to be announced??? I was looking for in IBM's web page but could not find (1 Reply)
Discussion started by: Vit0_Corleone
1 Replies

8. UNIX for Dummies Questions & Answers

Top is not install on my server, is other command I can use!

Hi, Top is not install on my server, is other command I can use? Kind Regards Mehrdad (1 Reply)
Discussion started by: mehrdad68
1 Replies

9. Programming

client/server compile question

Hi, I have 2 files-->server.c and client.c My server.c takes local ip as saying: *.sin_addr.s_addr=INADDR_ANY; client.c is in the same machine.It has a line like: *.sin_addr.s_addr=inet_addr(argv); I don't know how to compile.I tried ./client 127.0.0.1 It used port 7777 in both client... (2 Replies)
Discussion started by: mlhazan
2 Replies

10. UNIX for Dummies Questions & Answers

top server issues

? what are the top server issues. (1 Reply)
Discussion started by: geekmaan
1 Replies
Login or Register to Ask a Question