bug-zile
[Top][All Lists]
Advanced

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

[Bug-zile] Zile build breaks in lib/btow.c on NetBSD 1.5


From: Hauke Fath
Subject: [Bug-zile] Zile build breaks in lib/btow.c on NetBSD 1.5
Date: Mon, 29 Mar 2010 18:08:56 +0200
User-agent: Mozilla/5.0 (X11; U; NetBSD i386; en-US; rv:1.9.1.8) Gecko/20100316 Shredder/3.0.2

Hi,

trying to build Zile 2.3.15 on an older NetBSD release (1.5), I have run into problems compiling lib/btow.c. The preprocessor magic in lib/wchar.h misses #including <stdlib.h> for the definition of mbtowc() alike to the BSD/OS case,


btowc.c: In function `btowc':
btowc.c:34: warning: implicit declaration of function `mbtowc'


and this NetBSD version's <wchar.h> does not #define WEOF.


btowc.c:37: `WEOF' undeclared (first use in this function)
btowc.c:37: (Each undeclared identifier is reported only once
btowc.c:37: for each function it appears in.)
btowc.c:38: warning: control reaches end of non-void function
*** Error code 1


<http://la.causeuse.org/hauke/pkgsrc/zile/zile2315.out.gz>
<http://la.causeuse.org/hauke/pkgsrc/zile/btowc.i.gz>
<http://la.causeuse.org/hauke/pkgsrc/zile/config.log.gz>


The WEOF can be hacked in easily, but I am not sure how to tweak the aforementioned preprocessor magic to make sure we have the mbtowc() prototype. Maybe both can/should be checked for by auto* magic?

Please let me know if you need any additional information.

        hauke

--
     The ASCII Ribbon Campaign                    Hauke Fath
()     No HTML/RTF in email             Institut für Nachrichtentechnik
/\     No Word docs in email                     TU Darmstadt
     Respect for open standards              Ruf +49-6151-16-3281




reply via email to

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