bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: timezone bug in gawk-3.1.2 for HP-UX 11.00


From: Aharon Robbins
Subject: Re: timezone bug in gawk-3.1.2 for HP-UX 11.00
Date: Tue, 25 Mar 2003 12:20:36 +0200

Greetings.  Re this:

> Date: Mon, 24 Mar 2003 11:29:04 -0500 (EST)
> From: Tom Wurgler <address@hidden>
> To: address@hidden
> CC: address@hidden
> Subject: timezone bug in gawk-3.1.2 for HP-UX 11.00
>
> I get the following when trying to build gawk 3.1.2 on HP-UX 11.0 with:
>
> [gawk-3.1.2]rds294[109]% uname -a
> HP-UX rds294 B.11.00 U 9000/785 2000387327 unlimited-user license
> [gawk-3.1.2]rds294[110]% 
>
> [gawk-3.1.2]rds294[108]% gcc --version
> gcc (GCC) 3.2.1
> Copyright (C) 2002 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> [gawk-3.1.2]rds294[109]% 
>
> Same error with the HP Ansi C compiler.
>
> Thanks
> Tom

[ snip ]

> [gawk-3.1.2]rds294[106]% ./configure --prefix=/home/rdstt1/t901353/local

FWIW, I recommend using `configure --disable-nls' under HP/UX, if you
don't need the i18n.

> if gcc -DDEFPATH="\".:/home/rdstt1/t901353/local/share/awk\"" -DHAVE_CONFIG_H 
> -DGAWK -DLOCALEDIR="\"/home/rdstt1/t901353/local/share/locale\"" -I. -I. -I. 
> -I./intl    -g -O2 -MT replace.o -MD -MP -MF ".deps/replace.Tpo" \
>   -c -o replace.o `test -f 'replace.c' || echo './'`replace.c; \
> then mv ".deps/replace.Tpo" ".deps/replace.Po"; \
> else rm -f ".deps/replace.Tpo"; exit 1; \
> fi
> cc1: warning: -g is only supported when using GAS on this processor,
> cc1: warning: -g option disabled
> In file included from replace.c:59:
> missing_d/tzset.c:27: `timezone' redeclared as different kind of symbol
> /usr/include/sys/time.h:450: previous declaration of `timezone'
> make[2]: *** [replace.o] Error 1
> make[2]: Leaving directory `/u/rdstt1/t901353/src/gawk-3.1.2'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/u/rdstt1/t901353/src/gawk-3.1.2'
> make: *** [all] Error 2
> [gawk-3.1.2]rds294[108]% 

Weirdly enough, if you configure and compile with HP's K&R C compiler, it
almost works.  Anyway. For gcc, apply the following to custom.h. Then

        make distclean
        configure --disable-nls
        make

and it ought to put you back in business.

This worked for me on an HP/UX 11 system I have access to.

Thanks,

Arnold

*** custom.h.dist       Mon Oct 28 03:16:12 2002
--- custom.h    Tue Mar 25 05:10:38 2003
***************
*** 95,97 ****
--- 95,102 ----
  #ifdef USE_INCLUDED_STRFTIME
  #undef HAVE_STRFTIME
  #endif
+ 
+ /* For HP/UX with gcc */
+ #ifdef hpux
+ #define HAVE_TZSET 1
+ #endif




reply via email to

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