Re: Can't compile mutt-1.4.1 on HP-UX 11.11i
On Thu, 5 Feb 2004, Witold Witkowski wrote:
> Hello,
>
> I got the following error when compiling mutt-1.4.1 on HP-UX 11.11i
> with gcc 3.3.2:
You have to define _XOPEN_SOURCE_EXTENDED (or _HPUX_SOURCE, iirc).
For instance, set $CPPFLAGS before invoking the configure script.
>
> make[2]: Entering directory `/src/mail/mutt-1.4.1'
> gcc -DPKGDATADIR=\"/usr/local/share/mutt\" -DSYSCONFDIR=\"/usr/local/etc\"
> -DBINDIR=\"/usr/local/bin\"
> -DMUTTLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H=1 -I. -I.
> -Iintl -I./intl -I/usr/local/include -Wall -pedantic -g -O2 -c keymap.c
> In file included from mutt_menu.h:23,
> from keymap.c:20:
> keymap.h:83: warning: array type has incomplete element type
> keymap.c:69: error: `KEY_END' undeclared here (not in a function)
> keymap.c:69: error: initializer element is not constant
> keymap.c:69: error: (near initialization for `KeyNames[10].value')
> keymap.c:69: error: initializer element is not constant
> keymap.c:69: error: (near initialization for `KeyNames[10]')
> keymap.c:71: error: initializer element is not constant
> keymap.c:71: error: (near initialization for `KeyNames[11]')
> keymap.c:73: error: initializer element is not constant
> keymap.c:73: error: (near initialization for `KeyNames[12]')
> keymap.c:74: error: initializer element is not constant
> keymap.c:74: error: (near initialization for `KeyNames[13]')
> keymap.c:75: error: initializer element is not constant
> keymap.c:75: error: (near initialization for `KeyNames[14]')
> keymap.c:76: error: initializer element is not constant
> keymap.c:76: error: (near initialization for `KeyNames[15]')
> keymap.c:77: error: initializer element is not constant
> keymap.c:77: error: (near initialization for `KeyNames[16]')
> keymap.c: In function `km_bind':
> keymap.c:189: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> keymap.c: In function `km_dokey':
> keymap.c:356: warning: implicit declaration of function `timeout'
> keymap.c: In function `mutt_parse_bind':
> keymap.c:793: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> keymap.c: In function `mutt_parse_macro':
> keymap.c:830: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> keymap.c:838: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> make[2]: *** [keymap.o] Error 1
> make[2]: Leaving directory `/src/mail/mutt-1.4.1'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/src/mail/mutt-1.4.1'
> make: *** [all-recursive-am] Error 2
>
> Can you help me ?
>
> Witold Witkowski
>
> -------------------------------------------------------------------------
> | Witold Witkowski e-mail: yawitkow@xxxxxxxxxxxxx |
> | Academic Computer Center CYFRONET phone: (+48 12) 632-33-55 ext. 119 |
> | ul. Nawojki 11 |
> | 30-950 KRAKOW 61, P.O. Box 386 |
> | POLAND |
> -------------------------------------------------------------------------
>
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net