Package: mutt
Version: 1.5.23-1
Severity: wishlist
Usertags: goto-cc

During a rebuild of all packages in a clean sid chroot (and cowbuilder+pbuilder)
the build failed with the following error. Please note that we use our research
compiler tool-chain (using tools from the cbmc package), which permits extended
reporting on type inconsistencies at link time.

[...]
gcc  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat 
-Werror=format-security -Wall  -Wl,-z,relro -o mutt addrbook.o alias.o attach.o 
base64.o browser.o buffy.o color.o crypt.o cryptglue.o compress.o commands.o 
complete.o compose.o copy.o curs_lib.o curs_main.o date.o edit.o enter.o 
flags.o init.o filter.o from.o getdomain.o group.o handler.o hash.o hdrline.o 
headers.o help.o hook.o keymap.o main.o mbox.o menu.o mh.o mx.o pager.o parse.o 
pattern.o postpone.o query.o recvattach.o recvcmd.o rfc822.o rfc1524.o 
rfc2047.o rfc2231.o rfc3676.o score.o send.o sendlib.o signal.o sort.o status.o 
system.o thread.o charset.o history.o lib.o sidebar.o muttlib.o editmsg.o 
mbyte.o url.o ascii.o crypt-mod.o safe_asprintf.o patchlist.o conststrings.o  
crypt-gpgme.o crypt-mod-pgp-gpgme.o crypt-mod-smime-gpgme.o pgp.o pgpinvoke.o 
pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o crypt-mod-pgp-classic.o 
smime.o crypt-mod-smime-classic.o remailer.o resize.o pop.o pop_lib.o 
pop_auth.o nntp.o newsrc.o smtp.o bcache.o account.o mutt_socket.o 
mutt_tunnel.o mutt_ssl_gnutls.o mutt_sasl.o hcache.o md5.o mutt_idna.o  -Limap 
-limap -lncursesw  -lncursesw -Wl,-z,relro -lgssapi_krb5 -lkrb5 -lk5crypto 
-lcom_err -lgnutls -lsasl2  -ltokyocabinet    -L/usr/lib/x86_64-linux-gnu 
-lgpgme -lassuan -lgpg-error -lidn 
muttlib.o: In function `mutt_adv_mktemp':
/srv/jenkins-slave/workspace/sid-goto-cc-mutt/mutt-1.5.23/obj-x86_64-linux-gnu-patched/../muttlib.c:78:
 warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'

error: conflicting types for variable "cc_version"
old definition in module main file ../main.c line 165
const char []
new definition in module conststrings file conststrings.c line 1
unsigned char [1347l]
Makefile:633: recipe for target 'mutt' failed
make[3]: *** [mutt] Error 64
make[3]: Leaving directory 
'/srv/jenkins-slave/workspace/sid-goto-cc-mutt/mutt-1.5.23/obj-x86_64-linux-gnu-patched'
Makefile:849: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1

If all values actually fit into a positive signed char, the above may be
harmless - but it does keep the compiler from reporting potential risks. Thus
the declaration here should be changed to const char:

http://sources.debian.net/src/mutt/1.5.23-1/txt2c.sh?hl=7#L7

Best,
Michael

Attachment: pgpunxTDL7aVj.pgp
Description: PGP signature

Reply via email to