[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] [ANNOUNCE:] leafnode-1.9.12
Ron Rosson wrote:
> Well I just downloaded it. Here is what happened during the compile,
>
> gcc -c -I. -DHAVE_CONFIG_H -Wall -Wstrict-prototypes
> -Wmissing-prototypes -g ./nntpd.c
> /nntpd.c: In function `donewgroups':
> /nntpd.c:795: invalid operands to binary -
> *** Error code 1
>
> Stop.
This is line 795; the underlined part has been added since 1.9.11:
age = mktime( &timearray ) - (strstr( arg, "GMT" ) ? timezone : 0);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I have no idea what your error message could mean. However, upon
investigation it appears to me that the "timezone" variable is not
explicitely declared. It should, however, be declared in <time.h>.
If this is not the case (or if the type is incorrect: on my Linux
glibc2.1 system, it is declared as "long int"), the a ? b : 0 construct
might fail. I have no idea if this could yield your error message.
What does "./configure" say about gmtoff ? On my system, it looks like
this:
checking for gmtoff in struct tm... (cached) yes
--Cornelius.
PS: Maybe I've asked you this before: please mail me the man page of
ctime(3).
--
/* Cornelius Krasel, U Wuerzburg, Dept. of Pharmacology, Versbacher Str. 9 */
/* D-97078 Wuerzburg, Germany email: phak004@xxxxxxxxxxxxxxxxxxxxxx SP4 */
/* "Science is the game we play with God to find out what His rules are." */
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list