help-gnu-radius
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gnu-radius] Can't compile localtime_r.c


From: Vlad -
Subject: [Help-gnu-radius] Can't compile localtime_r.c
Date: Sun, 05 Oct 2003 19:46:31 +0400

Hello to all,
Can't to build radius 1.1 at old system - FreeBSD-2.2.8
gcc version 2.7.2.1

Got error:

make  all-am
source='localtime_r.c' object='localtime_r.o' libtool=no  depfile='.deps/localti
me_r.Po' tmpdepfile='.deps/localtime_r.TPo'  depmode=gcc /usr/local/bin/bash ../
scripts/depcomp  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include  -I../intl -DLOCA
LEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\" -DRADPID_DIR=\
"/var/run\" -DRADLOG_DIR=\"/var/log\"   -static -g -O2 -c `test -f 'localtime_r.
c' || echo './'`localtime_r.c
localtime_r.c: In function `LOCK_DECLARE':
localtime_r.c:8: parse error before `{'
localtime_r.c:8: declaration for parameter `localtime_r' but no such parameter
*** Error code 1


While run ./configure:
checking whether strncasecmp is declared... yes
checking whether strtok_r is declared... no
checking whether localtime_r is declared... no
checking whether asprintf is declared... yes
checking whether vasprintf is declared... yes
checking whether getline is declared... no
checking for argp_parse... no
checking for getline... no
checking for strerror... yes
checking for strncasecmp... yes
checking for strcspn... yes
checking for snprintf... yes
checking for vasprintf... yes
checking for strtok_r... no
checking for localtime_r... no

localtime_r.c:
------------
struct tm *
localtime_r(const time_t *timep, struct tm *res)
{

        struct tm *tm;

        LOCK_SET(lock);
        tm = localtime(timep);
        memcpy(res, tm, sizeof(*res));
        LOCK_RELEASE(lock);
        return res;
}
---------
timep and res undeclared in my system

Is it possible to do something? 

Thank you
Vlad




reply via email to

[Prev in Thread] Current Thread [Next in Thread]