Re: Solaris 9 count the number of forks



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". That
should do the trick.
I tried Studio 11 same problem.

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
.



Relevant Pages

  • Re: GR -> Black Holes Cant Form... Take 2
    ... >> publishing of his solution and his untimely death in the trenches ... happens to a neutron star of say, ... I would think that with the amount of people who dislike black holes on ... saying that "Schwarzschild says black holes do not exist". ...
    (sci.physics)
  • Re: GR -> Black Holes Cant Form... Take 2
    ... >> publishing of his solution and his untimely death in the trenches ... happens to a neutron star of say, ... I would think that with the amount of people who dislike black holes on ... saying that "Schwarzschild says black holes do not exist". ...
    (sci.physics.relativity)
  • Re: Damn you, FEDEX! or Nikon D40 lost in Springfield, MO blackhole.
    ... the 2 mp Mavica he had been using with a Nikon D40. ... After shopping around, he got me to order one for him. ... The shipper had it insured, but from what I have read it could take weeks to sort this crap out. ... You may get your insurance from FedEx and a couple weeks later they find it and deliver it. ...
    (alt.photography)
  • Re: The Sci-Fi Rejection Letter That Time Forgot
    ... nations have stockpiled arsenals of these incredible bombs and the time the story is set. ...
    (rec.arts.sf.written)
  • RE: copied music cds have a skip in last 18 seconds
    ... If installing all missing Windows Updates doesn't fix your problem ... xiowan.......in tucson ...
    (microsoft.public.windows.mediacenter)

Loading