On Fri, Feb 4, 2011 at 3:14 AM, <[email protected]> wrote:

>
> Sorry, I got my error all wrong. :-(  It is about not having the variable
> declared.  The code snippet is really:
>
> #ifndef cygwin
>     /*
>      * Timezone offset
>      */
>     {
> #ifdef HAVE_STRUCT_TM_TM_GMTOFF
>     const int tzoffset = tm_p->tm_gmtoff;
> #else
>     const int tzoffset = timezone;
> #endif
>
> since the target is not cygwin  the #else is what is being used. In the
> declarations in this function, date_n_time, the pointer is declared but not
> timezone, and it isn't passed in as a parameter.
>
> Is there some setting for ./configure for the condition not cgywin
> concerning GMT offset that is suppose to be used?
>
>
>
>  *Ruth A Bielski/USA/RockwellCollins*
>
> 02/03/2011 07:52 PM
>   To
> [email protected]
> cc
>   Subject
> Newbie ->Make Error (hopefully not too dumb)
>
>
>
> Hi, I have used ./configure --host=i686-pc-cygwin --target=ppc-lynx  with
> v5.5. When I go on to the next step, make,  I get the following error:
>
> snmp-tc.c: In function `date_n_time':
> snmp-tc.c(166) : error: `timezone' undeclared (first use in this function)
> snmp-tc.c(166) : error: (Each undeclared identifier is reported only once
> snmp-tc.c(166) : error: for each function it appears in.)
> ppcmk[1]: *** [snmp-tc.lo] Error 1
> ppcmk[1]: Leaving directory `/cygdrive/c/Net-SNMP/net-snmp-5.6.1/snmplib'
> ppcmk: *** [subdirs] Error 1
> Done with LynuxMake.
>
> The thing is 'timezone' is part of #include <time.h> in snmp-tc.c. Here's
> the snippet from snmptc-tc.c (TIME_WITH_SYS_TIME is set to 1):
>
> #if TIME_WITH_SYS_TIME
> #ifdef WIN32
> # include <sys/timeb.h>
> #else
> # include <sys/time.h>
> #endif
> # include <time.h>
> #else
> # if HAVE_SYS_TIME_H
> #  include <sys/time.h>
> # else
> #  include <time.h>
> # endif
> #endif
>
> Any hints or suggestions?
>

Hello,

Does Net-SNMP version 5.6.1 compile fine or does it trigger the same error
message ?

Bart.
------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to