[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Zile build breaks in lib/btow.c on NetBSD 1.5
From: |
Hauke Fath |
Subject: |
Zile build breaks in lib/btow.c on NetBSD 1.5 |
Date: |
Tue, 30 Mar 2010 13:29:03 +0100 |
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 project maintainer pointed me in
the direction of gnulib.
The preprocessor magic in lib/wchar.h
<http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/wchar.in.h;h=3f96a8548964e46c46612cdd26d58d5c047ed582;hb=master>
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 patch at
<http://la.causeuse.org/hauke/pkgsrc/zile/lib_wchar.in.h.diff>
does two things:
(1) decouple the WEOF definition from wint_t availability
(2) include <stdlib.h> where NetBSD declares mbtowc()
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Zile build breaks in lib/btow.c on NetBSD 1.5,
Hauke Fath <=