Compile problems on Solaris

Michael Eklund (Michael.Eklund@era.ericsson.se)
Thu, 29 Apr 1999 12:46:42 +0200

--------------88F61CFDFAE35006C4A89967
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello,

I have problems to compile netperf-2.1 on my Sun Solaris workstation.
The compilation stops when the compiler is compiling netLib.c.
I receives the error messages:

netlib.c: In function `install_signal_catchers':
netlib.c:646: storage size of `action' isn't known
netlib.c:652: warning: implicit declaration of function `sigemptyset'
netlib.c:662: `NSIG' undeclared (first use this function)
netlib.c:662: (Each undeclared identifier is reported only once
netlib.c:662: for each function it appears in.)
netlib.c:664: warning: implicit declaration of function `sigaction'
netlib.c:646: warning: unused variable `action'
netlib.c: In function `start_timer':
netlib.c:726: storage size of `action' isn't known
netlib.c:735: warning: implicit declaration of function `sigaddset'
netlib.c:726: warning: unused variable `action'
netlib.c: In function `netlib_init':
netlib.c:862: warning: unsigned int format, pointer arg (arg 3)
netlib.c:865: warning: unsigned int format, pointer arg (arg 3)
netlib.c: In function `send_request':
netlib.c:1274: warning: unsigned int format, pointer arg (arg 4)
netlib.c: In function `send_response':
netlib.c:1332: warning: unsigned int format, pointer arg (arg 4)
netlib.c: In function `cpu_start':
netlib.c:2080: warning: unused variable `i'
netlib.c: In function `cpu_stop':
netlib.c:2191: warning: unused variable `i'
netlib.c: In function `calc_cpu_util':
netlib.c:2362: warning: unused variable `i'
netlib.c:2351: warning: unused variable `actual_rate'
*** Error code 1
make: Fatal error: Command failed for target `netlib.o'

In the makefile I have changed the following:

#CC = cc -O
CC = gcc

#CFLAGS = -D$(LOG_FILE) -DUSE_LOOPER
CFLAGS = -ansi -Wall -Dsun -D__STDC__=0 -DINTERVALS

#LIBS= -lm
LIBS = -L/usr/ucblib -lucb -lsocket -lnsl -lelf

Do you have any idea what the problem might be ?

/ / Michael

--
Michael Eklund, KI/ERA/RB/G       Phone: +46 8 75 730 66
Wideband Radio Network Systems    Fax: +46 8 40 437 00
Ericsson Radio Systems AB         MEMO: ERI.ERA.ERAMMED
S-164 80 Stockholm, SWEDEN        mailto:Michael.Eklund@era.ericsson.se

--------------88F61CFDFAE35006C4A89967 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit

Hello,

I have problems to compile netperf-2.1 on my Sun Solaris workstation.
The compilation stops when the compiler is compiling netLib.c.
I receives the error messages:

netlib.c: In function `install_signal_catchers':
netlib.c:646: storage size of `action' isn't known
netlib.c:652: warning: implicit declaration of function `sigemptyset'
netlib.c:662: `NSIG' undeclared (first use this function)
netlib.c:662: (Each undeclared identifier is reported only once
netlib.c:662: for each function it appears in.)
netlib.c:664: warning: implicit declaration of function `sigaction'
netlib.c:646: warning: unused variable `action'
netlib.c: In function `start_timer':
netlib.c:726: storage size of `action' isn't known
netlib.c:735: warning: implicit declaration of function `sigaddset'
netlib.c:726: warning: unused variable `action'
netlib.c: In function `netlib_init':
netlib.c:862: warning: unsigned int format, pointer arg (arg 3)
netlib.c:865: warning: unsigned int format, pointer arg (arg 3)
netlib.c: In function `send_request':
netlib.c:1274: warning: unsigned int format, pointer arg (arg 4)
netlib.c: In function `send_response':
netlib.c:1332: warning: unsigned int format, pointer arg (arg 4)
netlib.c: In function `cpu_start':
netlib.c:2080: warning: unused variable `i'
netlib.c: In function `cpu_stop':
netlib.c:2191: warning: unused variable `i'
netlib.c: In function `calc_cpu_util':
netlib.c:2362: warning: unused variable `i'
netlib.c:2351: warning: unused variable `actual_rate'
*** Error code 1
make: Fatal error: Command failed for target `netlib.o'

In the makefile I have changed the following:

#CC = cc -O
CC = gcc

#CFLAGS = -D$(LOG_FILE) -DUSE_LOOPER
CFLAGS  = -ansi -Wall -Dsun -D__STDC__=0 -DINTERVALS

#LIBS= -lm
LIBS = -L/usr/ucblib -lucb -lsocket -lnsl -lelf
 

Do you have any idea what the problem might be ?

/ / Michael
 
 
 
 







-- 
Michael Eklund, KI/ERA/RB/G       Phone: +46 8 75 730 66
Wideband Radio Network Systems    Fax: +46 8 40 437 00
Ericsson Radio Systems AB         MEMO: ERI.ERA.ERAMMED
S-164 80 Stockholm, SWEDEN        mailto:Michael.Eklund@era.ericsson.se
  --------------88F61CFDFAE35006C4A89967--