[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Installing bash-3.0 on hppa2.0-hp-hpux-10.20
From: |
Chet Ramey |
Subject: |
Re: Installing bash-3.0 on hppa2.0-hp-hpux-10.20 |
Date: |
Tue, 24 May 2005 10:31:49 -0400 |
> I was trying to install bash-3.0 on hppa2.0-hp-hpux10.20 machine.
>
> Configuration was (seems to be) successful. But I make I got the
> following error ....
>
> gcc -c -I. -I../.. -I../../../bash-3.0 -I../../../bash-3.0/lib
> -I../../../bash-
> 3.0/include -I../../../bash-3.0/lib/sh -I../../../bash-3.0/lib/intl
> -I/home/bred
> dy/buildbash/lib/intl -DHAVE_CONFIG_H -DSHELL -DHPUX -g -O2
> ../../../bash-3.0
> /lib/sh/strftime.c
> ../../../bash-3.0/lib/sh/strftime.c:101: error: conflicting types for
> `timezone'
> /usr/include/sys/time.h:385: error: previous declaration of `timezone'
> ../../../bash-3.0/lib/sh/strftime.c: In function `strftime':
> ../../../bash-3.0/lib/sh/strftime.c:185: warning: assignment makes pointer
> from
> integer without a cast
> make: *** [strftime.o] Error 1
Try the attached patch:
*** bash-3.0-patched/lib/sh/strftime.c Wed Mar 3 22:13:23 2004
--- src/lib/sh/strftime.c Wed Nov 24 15:28:03 2004
***************
*** 81,88 ****
--- 81,93 ----
#undef strchr /* avoid AIX weirdness */
+ #if defined (SHELL)
+ extern char *get_string_value (const char *);
+ #endif
+
extern void tzset(void);
static int weeknumber(const struct tm *timeptr, int firstweekday);
static int iso8601wknum(const struct tm *timeptr);
+ #ifndef inline
#ifdef __GNUC__
#define inline __inline__
***************
*** 90,93 ****
--- 95,99 ----
#define inline /**/
#endif
+ #endif
#define range(low, item, hi) max(low, min(item, hi))
***************
*** 99,104 ****
extern long int timezone, altzone;
#else
extern int timezone, altzone;
! #endif
#endif
--- 105,114 ----
extern long int timezone, altzone;
#else
+ # if defined (HPUX)
+ extern long int timezone;
+ # else
extern int timezone, altzone;
! # endif /* !HPUX */
! #endif /* !SOLARIS && !mips && !M_UNIX */
#endif
***************
*** 481,486 ****
--- 491,501 ----
* secs west of GMT. Convert to mins east of GMT.
*/
+ # ifdef HPUX
+ off = -timezone / 60;
+ # else
off = -(daylight ? timezone : altzone) / 60;
+ # endif /* !HPUX */
#else /* !HAVE_TZNAME */
+ gettimeofday(& tv, & zone);
off = -zone.tz_minuteswest;
#endif /* !HAVE_TZNAME */
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU chet@case.edu http://tiswww.tis.case.edu/~chet/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Installing bash-3.0 on hppa2.0-hp-hpux-10.20,
Chet Ramey <=