From: vbajaj@grt-213-117.resnet.upenn.edu <vbajaj@grt-213-117.resnet.upenn.edu>
Subject: elm compile errors
Date: Wed, 10 Sep 1997 19:28:49 -0400 (EDT) [thread overview]
Message-ID: <5e78ee9bf3162095efa14c36c525e401.axp-list@archive.invalid> (raw)
There were the standard sys_errlist problems, even though the configure
program explicitly asks if this is globally defined. I would
appreciate any suggestions. I now have:
gcc -I../hdrs -fno-strength-reduce -O -c get_tz.c -o get_tz.o
get_tz.c: In function `get_tz_mins':
get_tz.c:98: warning: assignment makes pointer from integer without a cast
get_tz.c:99: dereferencing pointer to incomplete type
get_tz.c:99: derefere
...
get_tz.c: In function `get_tz_name':
get_tz.c:138: warning: assignment makes pointer from integer without a cast
get_tz.c:166: dereferencing pointer to incomplete type
make[1]: *** [get_tz.o] Error 1
make[1]: Leaving directory `/usr/src/elm/elm-2.4ME+pl28
Where the lines are:
* The TZNAME_HANDLING definition is just used to verify the configurations
* was setup correctly. It will force a compiler warning or error if there
* is a configuration problem.
*/
char *get_tz_name(tm)
struct tm *tm;
{
if (tm == 0) {
time_t t;
(void) time(&t);
tm = localtime(&t);
}
and, 166:
#ifdef TZNAME_USE_TZNAME
#define TZNAME_HANDLING 3
/*
* This system maintains a global array that contains two timezone
* names, one for when DST is in effect and one for when it is not.
* We simply need to pick the right one.
*/
{
extern char *tzname[];
return tzname[tm->tm_isdst];
}
#endif
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
reply other threads:[~1997-09-10 23:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox