#3624: Wrong usage if IDN library (undefined reference to `assert')
--------------------+-------------------------------------------------------
 Reporter:  petr_p  |       Owner:  mutt-dev
     Type:  defect  |      Status:  new     
 Priority:  major   |   Milestone:          
Component:  mutt    |     Version:          
 Keywords:          |  
--------------------+-------------------------------------------------------
 When configuring HG tip as "./configure CFLAGS='-O0 -g'", compilation
 fails:

 {{{
 gcc  -Wall -pedantic -Wno-long-long -O0 -g   -o mutt addrbook.o alias.o
 attach.o base64.o browser.o buffy.o color.o crypt.o cryptglue.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
 muttlib.o editmsg.o mbyte.o url.o ascii.o crypt-mod.o safe_asprintf.o
 patchlist.o conststrings.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 resize.o mutt_idna.o   -lncursesw     -lidn
 curs_main.o: In function `update_index':
 /home/petr/mutt-devel/curs_main.c:300: undefined reference to `assert'
 }}}

 This is because you set -I/usr/include/idn and then #include <assert.h>
 what consumes /usr/include/idn/assert.h instead of /usr/include/assert.h.

 This is considered as mutt bug. See
 [https://bugs.gentoo.org/show_bug.cgi?id=452710]. Solution is not to set
 -I to /usr/include/idn.

 To reproduce this bug you have to have installed libidn and idnkit  in
 your system.

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3624>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to