Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* elm compile errors
@ 1997-09-10 23:28 vbajaj
  0 siblings, 0 replies; only message in thread
From: vbajaj @ 1997-09-10 23:28 UTC (permalink / 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-09-10 23:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-09-10 23:28 elm compile errors vbajaj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox