Stas Bekman wrote:
Pete Geenhuizen wrote:

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.


It should have been applied to GTop.xs, as it has nothing to do with glibtop itself I believe. I'll apply it.

Actually i'm not sure how safe it is. http://www.opensource.apple.com/darwinsource/10.3/OpenSSH-39/openssh/defines.h does:

#ifndef HAVE_U_INT64_T
# if (SIZEOF_LONG_INT == 8)
typedef unsigned long int u_int64_t;
#   define HAVE_U_INT64_T 1
# else
#  if (SIZEOF_LONG_LONG_INT == 8)
typedef unsigned long long int u_int64_t;
#  endif
# endif
#endif

Though this is from darwin, so Solaris may have a different flag. Googling for "Solaris u_int64_t typedef" gives quite a lot of hits, one using HAVE_INT64_T. So try to google with these words and I hope you will find the most correct ifdef setting. Thanks.

__________________________________________________________________
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



Reply via email to