Subject: libedit and cygwin
To: firstname.lastname@example.org, <lukem@NetBSD.org>
From: Jeremy C. Reed <email@example.com>
Date: 12/22/2004 13:54:24
I have done several patches for bootstrap and cygwin.
My latest error is:
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbs
In file included from chared.h:136,
fcns.h:5: error: parse error before numeric constant
fcns.h:186: warning: data definition has no type or storage class
In file included from el.h:105,
map.h:63: error: parse error before "el_func_t"
map.h:63: warning: no semicolon at end of struct or union
map.h:65: error: parse error before '}' token
map.h:65: warning: data definition has no type or storage class
map.h:77: error: parse error before "el_func_t"
In file included from chared.c:46:
el.h:129: error: parse error before "el_map_t"
el.h:129: warning: no semicolon at end of struct or union
el.h:135: error: parse error before '}' token
chared.c: In function `cv_undo':
This fcns.h is generated.
It only has a couple lines of code:
typedef el_action_t (*el_func_t)(EditLine *, int);
protected el_func_t* func__get(void);
Also, maybe the libedit should be split out of the
pkgsrc/net/tnftp/files/libedit and put into its own pkgsrc/devel/libedit/
packages (with source included in pkgsrc for bootstrapping).
(I am not suggesting removing libedit from your official tnftp download
but for pkgsrc.)
Here is a recent NetBSD port of libedit to autotool/libtool:
I see it does say it has been successfully tested on i686-pc-cygwin.
I haven't looked closely, but maybe this version fixes my problem.
Jeremy C. Reed
BSD News, BSD tutorials, BSD links