Re: Solaris 9 count the number of forks
- From: Thomas Maier-Komor <thomas@xxxxxxxxxxxxxx>
- Date: Tue, 22 May 2007 15:30:12 +0200
Thommy M. Malmström schrieb:
Thomas Maier-Komor wrote:
Thomas Glanzmann schrieb:
Hello,
Looks like Sun Studio 12 beta is still buggy.I consider it more stable than Studio 11.
Studio 11 and gcc work fine. Try "make CC=/usr/sfw/bin/gcc". ThatI tried Studio 11 same problem.
should do the trick.
Thomas
which version did you use. I just compiled revision 20070403
successfully with
$ cc -V
cc: Sun C 5.8 Patch 121015-04 2007/01/10
$ /usr/sfw/bin/gcc --version
gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Looks as if it doesn't compile that easy...
thommym@dhcppc13:/usr/local/src/sysstat-20070403$ make
./configure -n
found libncurses.a in /opt/sfw/lib
CC = cc
C_CFLAGS = -O -I/opt/sfw/include -I/opt/sfw/include/ncurses
-DSOLARIS=10
D_CFLAGS = -O -xarch=generic64 -DSOLARIS=10
CDIR = i386
DDIR = amd64
C_LIBS += -L/opt/sfw/lib
PREFIX = /usr/local
mkdir i386
cc -O -I/opt/sfw/include -I/opt/sfw/include/ncurses -DSOLARIS=10 -c
log.c -o i386/log.o
cc -O -I/opt/sfw/include -I/opt/sfw/include/ncurses -DSOLARIS=10 -c
sysstat.c -o i386/sysstat.o
cc -O -I/opt/sfw/include -I/opt/sfw/include/ncurses -DSOLARIS=10 -c
terminal.c -o i386/terminal.o
cc -O -I/opt/sfw/include -I/opt/sfw/include/ncurses -DSOLARIS=10 -c
stdout.c -o i386/stdout.o
cc -O -I/opt/sfw/include -I/opt/sfw/include/ncurses -DSOLARIS=10 -c
client.c -o i386/client.o
cc -O -I/opt/sfw/include -I/opt/sfw/include/ncurses -DSOLARIS=10 -c
sort.c -o i386/sort.o
cc -O -I/opt/sfw/include -I/opt/sfw/include/ncurses -DSOLARIS=10 -o
sysstat i386/log.o i386/sysstat.o i386/terminal.o i386/stdout.o
i386/client.o i386/sort.o -lkstat -lm -lsocket -lnsl -L/opt/sfw/lib
Undefined first referenced
symbol in file
COLS i386/terminal.o
nonl i386/terminal.o
initscr i386/terminal.o
LINES i386/terminal.o
wmove i386/terminal.o
init_pair i386/terminal.o
nodelay i386/terminal.o
has_colors i386/terminal.o
cbreak i386/terminal.o
delwin i386/terminal.o
endwin i386/terminal.o
newwin i386/terminal.o
noecho i386/terminal.o
stdscr i386/terminal.o
waddnstr i386/terminal.o
wclear i386/terminal.o
werase i386/terminal.o
wrefresh i386/terminal.o
start_color i386/terminal.o
init_color i386/terminal.o
intrflush i386/terminal.o
wredrawln i386/terminal.o
curs_set i386/terminal.o
wsyncup i386/terminal.o
ld: fatal: Symbol referencing errors. No output written to sysstat
*** Error code 1
make: Fatal error: Command failed for target `sysstat'
thommym@dhcppc13:/usr/local/src/sysstat-20070403$ cc -V
cc: Sun C 5.8 Patch 121016-05 2007/01/10
usage: cc [ options] files. Use 'cc -flags' for details
thommym@dhcppc13:/usr/local/src/sysstat-20070403$
Ahh - the configure script fails to pick up the static libncurses on
AMD64. Thank you for that info!
On SPARC it works without a problem - I've never tested it on an AMD64
machine, because I don't have one. But I really wonder why there is no
shared library for libncurses on x86. Anyway, you can get it running, my
manually executing
cc -O -I/opt/sfw/include -I/opt/sfw/include/ncurses -DSOLARIS=10 -o
sysstat i386/log.o i386/sysstat.o i386/terminal.o i386/stdout.o
i386/client.o i386/sort.o -lkstat -lm -lsocket -lnsl -L/opt/sfw/lib
-lncurses
and then calling make again.
I'll create a new tar that deals with this situation.
- Thomas
.
- Follow-Ups:
- Re: Solaris 9 count the number of forks
- From: "Thommy M. Malmström"
- Re: Solaris 9 count the number of forks
- References:
- Solaris 9 count the number of forks
- From: Thomas Glanzmann
- Re: Solaris 9 count the number of forks
- From: Thomas Maier-Komor
- Re: Solaris 9 count the number of forks
- From: Thomas Glanzmann
- Re: Solaris 9 count the number of forks
- From: Thomas Maier-Komor
- Re: Solaris 9 count the number of forks
- From: Thomas Glanzmann
- Re: Solaris 9 count the number of forks
- From: Thomas Maier-Komor
- Re: Solaris 9 count the number of forks
- From: "Thommy M. Malmström"
- Solaris 9 count the number of forks
- Prev by Date: Re: Find a binary
- Next by Date: Re: Solaris 9 count the number of forks
- Previous by thread: Re: Solaris 9 count the number of forks
- Next by thread: Re: Solaris 9 count the number of forks
- Index(es):
Relevant Pages
|
Loading