<<< Date Index >>>     <<< Thread Index >>>

mutt/2131: mutt compilation on Mac OS X (darwin) 10.4.3 with gcc-4.0



>Number:         2131
>Notify-List:    
>Category:       mutt
>Synopsis:       mutt compilation on Mac OS X (darwin) 10.4.3 with gcc-4.0
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    mutt-dev
>State:          open
>Keywords:       
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 09 06:53:27 +0100 2005
>Originator:     andy lathrop
>Release:        
>Organization:
>Environment:
Mac OS X 10.4.3 (Darwin 8.3.0)
>Description:
Mutt 1.4.2.1i fails to compile giving error:

Error: Target com.apple.build returned: shell command "cd
"/opt/local/var/db/dports/build/file._opt_local_var_db_dports_sources_rsync.rsync.opendarwin.org_dpupdate_dports_mail_mutt/work/mutt-1.4.2.1"
&& make all" returned error 2
Command output: cd .. \
  && CONFIG_FILES=doc/Makefile CONFIG_HEADERS= /bin/sh ./config.status
config.status: creating doc/Makefile
config.status: executing default-1 commands
config.status: executing default-2 commands
gcc -E -I. -I.. -I/opt/local/include -I.. -DSYSCONFDIR=\"\"
-DBINDIR=\"/opt/local/bin\" -DHAVE_CONFIG_H=1 -I/opt/local/include -I../intl
-D_MAKEDOC -C  ../init.h | ../makedoc -m |         \
        cat ./muttrc.man.head - ./muttrc.man.tail\
        > muttrc.man
touch stamp-doc-man
test -f manual.html || make manual.html || cp ./manual*.html ./
test -f manual.txt || make manual.txt || cp ./manual.txt ./
Making all in contrib
cd .. \
  && CONFIG_FILES=contrib/Makefile CONFIG_HEADERS= /bin/sh ./config.status
config.status: creating contrib/Makefile
config.status: executing default-1 commands
config.status: executing default-2 commands
make[2]: Nothing to be done for `all'.
cd . \
  && CONFIG_FILES=Makefile CONFIG_HEADERS= /bin/sh ./config.status
config.status: creating Makefile
config.status: executing default-1 commands
config.status: executing default-2 commands
gcc -DPKGDATADIR=\"/opt/local/share/mutt\" -DSYSCONFDIR=\"/opt/local/etc\"    
-DBINDIR=\"/opt/local/bin\" -DMUTTLOCALEDIR=\"/opt/local/share/locale\" 
-DHAVE_CONFIG_H=1 -I. -I.  -Iintl  -I/opt/local/include -I./intl
-I/opt/local/include  -g -O2 -c addrbook.c
In file included from mutt_menu.h:23,
                 from addrbook.c:20:
keymap.h:83: error: array type has incomplete element type
make[2]: *** [addrbook.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2

-----

changing 'extern struct mapping_t Menus[];'
to
'extern struct mapping_t *Menus;'
in keymap.h:83, and making a similar change in keymap.c:31 will allow mutt to 
compile fine; however it causes a segfault at runtime.

this is outlined in the bug report here:
http://bugzilla.opendarwin.org/show_bug.cgi?id=4297

the problem is the same whether one is compiling directly from source, or when 
attempting to use darwinports
'sudo port install mutt'



>How-To-Repeat:
simply typing 'make' after doing './configure' produces the error
>Fix:
Unknown
>Add-To-Audit-Trail:

>Unformatted: