home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!corton!jussieu!card
- From: card@masi.ibp.fr (Remy CARD)
- Newsgroups: comp.os.linux
- Subject: Re: GNU shell utils 1.7: date(1) dumps core (with easy solution:)
- Message-ID: <1992Sep3.135118.21625@jussieu.fr>
- Date: 3 Sep 92 13:51:18 GMT
- References: <9209013094@gandalf.moria>
- Sender: news@jussieu.fr (Le Facteur)
- Organization: Laboratoire MASI - Universite Pierre et Marie Curie - Paris - France
- Lines: 48
- Nntp-Posting-Host: ares.ibp.fr
-
- In article <9209013094@gandalf.moria> u31b3hs@pool.informatik.rwth-aachen.de (Michael Haardt) writes:
- >I have just installed the GNU shell utilities 1.7 on Linux 0.96c-pl1,
- >using GCC 2.2.2. They compile on first try without changes, but the
- >first program I tried crashed: "date"
- >
- >The fix is simple, after the configure run just add -DHAVE_TZNAME.
- >Otherwise, a function char *timezone() is used, and in Linux,
- >timezone is a long int variable!
- >
- >People who are interested in it may improve configure (or Linux), I
- >don't have the time for it.
-
- In fact, the fix to configure is pretty small. configure tries
- to compile a program defining 'extern char **tzname' and gcc complains
- because tzname is declared as 'extern char *tzname[]' so configure assumes
- that tzname does not exist in Linux.
-
- You can apply this patch to correct configure :
-
- *** configure.old Thu Sep 3 15:44:35 1992
- --- configure Thu Sep 3 15:44:47 1992
- ***************
- *** 606,612 ****
- echo checking for tzname
- echo "#include <time.h>
- #ifndef tzname /* For SGI. */
- ! extern char **tzname;
- #endif
- main() { exit(0); } t() { atoi(*tzname); }" > conftest.c
- if eval $compile; then
- --- 606,612 ----
- echo checking for tzname
- echo "#include <time.h>
- #ifndef tzname /* For SGI. */
- ! extern char *tzname[];
- #endif
- main() { exit(0); } t() { atoi(*tzname); }" > conftest.c
- if eval $compile; then
-
- >
- >Michael
-
-
- Remy
- --
-
- Remy Card
- card@masi.ibp.fr
-