i have other kind of error when apply the path.

afther make i obtain the follow error.


******************
flex  -Pcfg_yy -olex.yy.c lexer.l
sed '/^#/ s|lex.yy\.c|lexer.c|' lex.yy.c >lexer.c
rm -f lex.yy.c
source='lexer.c' object='lexer.lo' libtool=yes  DEPDIR=.deps depmode=tru64
/bin/ksh ../support/depcomp  /bin/ksh ../libtool --tag=CC --mode=compile cc
-DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H  -I. -I. -I..
-pthread -c -o lexer.lo lexer.c
 cc -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I. -I..
-pthread -c -MD lexer.c -o lexer.o
cc: Error: lexer.l, line 82: Missing ";". (nosemi)
        YY_BREAK
--------^
cc: Error: lexer.l, line 82: In this statement, "cfg" is not declared.
(undeclared)
cfg->line++; /* keep track of line number */
^
cc: Warning: lexer.l, line 125: In this statement, "getenv(...)" of type
"int", is being converted to "pointer to char". (cvtdiftypes)
    var = getenv(yytext+2);
----^
cc: Warning: lexer.l, line 257: In this statement, "getenv(...)" of type
"int", is being converted to "pointer to char". (cvtdiftypes)
    var = getenv(yytext+2);
----^
*** Exit 1
Stop.
*******************************************


now going to try compile version 3.0.4 maybe that is easy compile hehehe

2007/11/7, Alejandro Feijóo < [EMAIL PROTECTED]>:
>
> oh thanks! :)
>
> i found a similar bug on metrics.c (line 166) and do a good compile....
> but gmond not do any!! no output no data...
>
> i´m going to try the path if error persist can you send your gmond
> compiled?
>
> 2007/11/7, FURUSAWA Kazumi <[EMAIL PROTECTED]>:
> >
> > Hi,
> >
> > I use following patch, and commands as below:
> >
> > ./configure --prefix=/usr/ganglia \
> >             --disable-shared \
> >             --enable-static
> > patch -p1 < ganglia-3.0.4-tru64v5.1b.patch
> > make
> >
> > --
> > FURUSAWA Kazumi <[EMAIL PROTECTED]>
> >
> > *** ganglia-3.0.4/libmetrics/osf/metrics.c.org  Tue Apr 24 14:02:53 2007
> >
> > --- ganglia-3.0.4/libmetrics/osf/metrics.c      Tue Apr 24 14:34:53 2007
> >
> > ***************
> > *** 163,170 ****
> >       {
> >         alpha = 0.5 * (timediff / 30.0e7);
> >         beta = 1.0 - alpha;
> > !       debug_msg("* * * * Setting alpha to %f and beta to %f because
> > timediff
> > ! = %d",alpha,beta,timediff);
> >       }
> >     else
> >       {
> > --- 163,169 ----
> >       {
> >         alpha = 0.5 * (timediff / 30.0e7);
> >         beta = 1.0 - alpha;
> > !       debug_msg("* * * * Setting alpha to %f and beta to %f because
> > timediff = %d",alpha,beta,timediff);
> >       }
> >     else
> >       {
> > *** ganglia-3.0.4/libmetrics/get_ifi_info.c.org Tue Apr 24 14:11:05 2007
> > --- ganglia-3.0.4/libmetrics/get_ifi_info.c     Tue Apr 24 14:35:33 2007
> > ***************
> > *** 135,142 ****
> > --- 135,146 ----
> >
> >                   /* Grab the MTU for this interface */
> >                   memcpy( mtu.ifr_name , ifi->ifi_name, IFI_NAME);
> > + #if defined(SIOCGIFMTU)
> >                   Ioctl(sockfd, SIOCGIFMTU, &mtu);
> >                   ifi->ifi_mtu = mtu.ifr_mtu;
> > + #else
> > +                 ifi->ifi_mtu = 1500;
> > + #endif
> >
> >
> >   /* end get_ifi_info2 */
> > *** ganglia-3.0.4/gmond/gstat/Makefile.org      Tue Apr 24 14:49:36 2007
> >
> > --- ganglia-3.0.4/gmond/gstat/Makefile  Tue Apr 24 14:51:34 2007
> > ***************
> > *** 86,92 ****
> >   BUILD_GMETAD_TRUE = #
> >   CC = cc
> >   CCDEPMODE = depmode=tru64
> > ! CFLAGS = -g -Wall -D_SOCKADDR_LEN
> >   CPP = cc -E
> >   CPPFLAGS = -pthread -DYY_USE_PROTOS
> >   CXX = g++
> > --- 86,92 ----
> >   BUILD_GMETAD_TRUE = #
> >   CC = cc
> >   CCDEPMODE = depmode=tru64
> > ! CFLAGS = -g -D_SOCKADDR_LEN
> >   CPP = cc -E
> >   CPPFLAGS = -pthread -DYY_USE_PROTOS
> >   CXX = g++
> > ***************
> > *** 117,123 ****
> >   LIBGANGLIA_BINARY_AGE = 0
> >   LIBGANGLIA_INTERFACE_AGE = 0
> >   LIBOBJS =
> > ! LIBS = -lresolv -lrpc -lpthreads
> >   LIBTOOL = $(SHELL) $(top_builddir)/libtool
> >   LN_S = ln -s
> >   LTLIBOBJS =
> > --- 117,123 ----
> >   LIBGANGLIA_BINARY_AGE = 0
> >   LIBGANGLIA_INTERFACE_AGE = 0
> >   LIBOBJS =
> > ! LIBS = -lresolv -lrpc -lpthreads -lpthread
> >   LIBTOOL = $(SHELL) $(top_builddir)/libtool
> >   LN_S = ln -s
> >   LTLIBOBJS =
> > *** ganglia-3.0.4/libmetrics/config.h.org       Tue Apr 24 15:10:07 2007
> > --- ganglia-3.0.4/libmetrics/config.h   Tue Apr 24 15:10:19 2007
> > ***************
> > *** 252,258 ****
> >   /* #undef int8_t */
> >
> >   /* Define to rpl_malloc if the replacement function should be used. */
> > ! #define malloc rpl_malloc
> >
> >   /* Define to `long' if <sys/types.h> does not define. */
> >   /* #undef off_t */
> > --- 252,258 ----
> >   /* #undef int8_t */
> >
> >   /* Define to rpl_malloc if the replacement function should be used. */
> > ! /* #define malloc rpl_malloc */
> >
> >   /* Define to `long' if <sys/types.h> does not define. */
> >   /* #undef off_t */
> > *** ganglia-3.0.4/gmond/Makefile.org    Tue Apr 24 15:28:18 2007
> > --- ganglia-3.0.4/gmond/Makefile        Tue Apr 24 15:28:46 2007
> > ***************
> > *** 91,97 ****
> >   BUILD_GMETAD_TRUE = #
> >   CC = cc
> >   CCDEPMODE = depmode=tru64
> > ! CFLAGS = -g -Wall -D_SOCKADDR_LEN
> >   CPP = cc -E
> >   CPPFLAGS = -pthread -DYY_USE_PROTOS
> >   CXX = g++
> > --- 91,97 ----
> >   BUILD_GMETAD_TRUE = #
> >   CC = cc
> >   CCDEPMODE = depmode=tru64
> > ! CFLAGS = -g -D_SOCKADDR_LEN
> >   CPP = cc -E
> >   CPPFLAGS = -pthread -DYY_USE_PROTOS
> >   CXX = g++
> > *** ganglia-3.0.4/gmetric/Makefile.org  Tue Apr 24 15:36:10 2007
> > --- ganglia-3.0.4/gmetric/Makefile      Tue Apr 24 15:36:22 2007
> > ***************
> > *** 88,94 ****
> >   BUILD_GMETAD_TRUE = #
> >   CC = cc
> >   CCDEPMODE = depmode=tru64
> > ! CFLAGS = -g -Wall -D_SOCKADDR_LEN
> >   CPP = cc -E
> >   CPPFLAGS = -pthread -DYY_USE_PROTOS
> >   CXX = g++
> > --- 88,94 ----
> >   BUILD_GMETAD_TRUE = #
> >   CC = cc
> >   CCDEPMODE = depmode=tru64
> > ! CFLAGS = -g -D_SOCKADDR_LEN
> >   CPP = cc -E
> >   CPPFLAGS = -pthread -DYY_USE_PROTOS
> >   CXX = g++
> > *** ganglia-3.0.4/srclib/apr/include/apr.h.org  Tue Apr 24 16:18:31 2007
> >
> > --- ganglia-3.0.4/srclib/apr/include/apr.h      Tue Apr 24 16:18:40 2007
> > ***************
> > *** 194,200 ****
> >   #define APR_HAVE_IN_ADDR        1
> >   #define APR_HAVE_INET_ADDR      1
> >   #define APR_HAVE_INET_NETWORK   1
> > ! #define APR_HAVE_IPV6           1
> >   #define APR_HAVE_MEMMOVE        1
> >   #define APR_HAVE_SETRLIMIT      1
> >   #define APR_HAVE_SIGACTION      1
> > --- 194,200 ----
> >   #define APR_HAVE_IN_ADDR        1
> >   #define APR_HAVE_INET_ADDR      1
> >   #define APR_HAVE_INET_NETWORK   1
> > ! #define APR_HAVE_IPV6           0
> >   #define APR_HAVE_MEMMOVE        1
> >   #define APR_HAVE_SETRLIMIT      1
> >   #define APR_HAVE_SIGACTION      1
> >
> > -------------------------------------------------------------------------
> >
> > This SF.net email is sponsored by: Splunk Inc.
> > Still grepping through log files to find problems?  Stop.
> > Now Search log events and configuration files using AJAX and a browser.
> > Download your FREE copy of Splunk now >> http://get.splunk.com/
> > _______________________________________________
> > Ganglia-general mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/ganglia-general
> >
>
>
>
> --
> Alejandro Feijóo Fraga.
> SysAdmin since 2000 HomeAdmin since 1983
>



-- 
Alejandro Feijóo Fraga.
SysAdmin since 2000 HomeAdmin since 1983
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Ganglia-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to