This is my first attempt at GTop.
Unfortunately Solaris doesn't
support a recursive grep, and equally unfortunately I wan't able to find
u_init64_t anywhere.
With some Googleing around I came across
this fix to compiling libgtop on Solaris 8 and 9
" For the
meantime, I patched glibtop.h to have
#ifndef u_int64_t
#define u_int64_t unsigned long long int
#endif "
I
applied the above to glibtop.h and that allowed GTop to finally
compile.
With that done, back to what started this whole thing,
Apache::VMonitor. Using cpan the compile works, but the tests fail with
this error which causes the install to fail.
waiting 60 seconds
for server to start: ...glibtop: kvm_open(): Error 0
(126)Cannot
assign requested address: make_sock: could not bind to address
[::1]:8531
no listening sockets available, shutting down
Unable
to open logs
...........................................................
waiting
60 seconds for server to start: not ok
[ error] giving up after 61
secs. If you think that your system
is slow or overloaded try again
with a longer timeout value.
by setting the environment variable
APACHE_TEST_STARTUP_TIMEOUT
to a high value (e.g. 360) and repeat the
last command.
[ error] server failed to start!
(t/logs/error_log wasn't created, start the server in the debug mode)
make: *** [run_tests] Error 1
/usr/local/bin/make test -- NOT
OK
Running make install
make test had returned bad status,
won't install without force
So I installed VMonitor without the
test and was able to point my browser at it and got a nice display.
Unfortunately the system function doesn't appear to be working, I
don't know if that is related to the u_int64_t cludge, but here's what it
shows.
CPU: 0.0% user, 0.0% nice, 0.0% sys, 0.0% idle
Mem: 768M av, 455M used, 313M free, 0K shared, 0K buff
Swap: 325K av, 30K used, 295K free, 0 pagein, 0 pageout
Not sure if any of this helps, but this what I have now.
Pete
--
"Unencumbered by the thought process"
--1992-2000 Click and Clack presidential campaign slogan
Stas
Bekman said:
> Pete Geenhuizen wrote:
>> Well a little
headway, the Server compiles but not GTop. In case it
>>
matters, Solaris 9 doesn't have pkgconfig, it does have pkg-config.
>
> Yes, it was a typo in the email, it uses pkg-config
everywhere. The
> configuration works fine for you.
>
>> Here's the output from the build and make.
> [...]
>> /usr/local/bin/perl /usr/local/lib/perl5/5.8.2/ExtUtils/xsubpp
-typemap
>> /usr/local/lib/perl5/5.8.2/ExtUtils/typemap
-typemap typemap.gtop
>> -typemap typemap -typemap typemap
GTop.xs > GTop.xsc && mv GTop.xsc
>> GTop.c
>> cc -c -I/usr/local/include/libgtop-2.0
-I/usr/local/include/glib-2.0
>>
-I/usr/local/lib/glib-2.0/include -fno-strict-aliasing
>>
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
>> -DVERSION=\"0.13\" -DXS_VERSION=\"0.13\"
-fPIC
>>
"-I/usr/local/lib/perl5/5.8.2/sun4-solaris/CORE"
-DGTOP_2_5_PLUS GTop.c
>> GTop.xs: In function
`XS_GTop_field_u_int64_t':
>> GTop.xs:120: error: `u_int64_t'
undeclared (first use in this function)
>
> Well, nothing
has changed in GTop itself. Were you able to build GTop
>
before
> on Solaris? On linux u_int64_t is defined in:
>
> /usr/include/sys/types.h:__extension__ typedef unsigned long
long int
> u_int64_t;
>
> Can you figure out
where yours is defined and include that header in
> GTop.xs?
> To find that header I did:
>
> grep -Ir u_int64_t
/usr/include/ | grep typedef
>
>
>
__________________________________________________________________
> Stas Bekman JAm_pH ------> Just Another mod_perl
Hacker
> http://stason.org/ mod_perl Guide --->
http://perl.apache.org
> mailto:[EMAIL PROTECTED]
http://use.perl.org http://apacheweek.com
> http://modperlbook.org
http://apache.org http://ticketmaster.com
>
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
- new version Re: GTop-0.12 compile and ... Stas Bekman
- Re: new version Re: GTop-0.12 compile ... Radoslaw Zielinski
- Re: new version Re: GTop-0.12 compile ... Stas Bekman
- Re: new version Re: GTop-0.12 compile ... Radoslaw Zielinski
- Re: new version Re: GTop-0.12 compile ... Stas Bekman
- Re: new version Re: GTop-0.12 compile ... Radoslaw Zielinski
- Re: new version Re: GTop-0.12 compile ... Stas Bekman
- Re: new version Re: GTop-0.12 compile ... Pete Geenhuizen
- Re: new version Re: GTop-0.12 compile ... Stas Bekman
- Re: new version Re: GTop-0.12 compile ... Pete Geenhuizen
- Re: new version Re: GTop-0.12 compile ... Pete Geenhuizen
- Re: new version Re: GTop-0.12 compile ... Stas Bekman
- Re: new version Re: GTop-0.12 compile ... Stas Bekman
- Re: new version Re: GTop-0.12 compile ... Pete Geenhuizen
- Re: new version Re: GTop-0.12 compile ... Stas Bekman
- Re: new version Re: GTop-0.12 compile ... Pete Geenhuizen
- Re: GTop-0.12 compile and installation problems Pete Geenhuizen
- Re: GTop-0.12 compile and installation problems Pete Geenhuizen