This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Compiling nano from source
- From: Marco Atzeri <marco dot atzeri at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 31 Mar 2015 14:22:18 +0200
- Subject: Re: Compiling nano from source
- Authentication-results: sourceware.org; auth=none
- References: <9D9AC45310887B40A7245734E850FBE1125C44DD at FS-MX02 dot frontier dot local> <9D9AC45310887B40A7245734E850FBE1125C4526 at FS-MX02 dot frontier dot local>
On 3/31/2015 2:09 PM, Fergus Daly wrote:
The editor nano-2.4.0 comes with Cygwin. But recently a patch to nano-2.4.0 has been made available on nano-devel which I would like to try on a Cygwin platform. I'll need to patch nano from source. So I downloaded the source direct from the nano site.
Starting with ./configure works fine. Then make proceeds quite energetically for a while but then fails as follows:
gcc -DHAVE_CONFIG_H -I. -I.. -DLOCALEDIR=\"/usr/local/share/locale\" -DSYSCONFDIR=\"/usr/local/etc\" -D_XOPEN_SOURCE=600 -g -O2 -Wall -MT text.o -MD -MP -MF .deps/text.Tpo -c -o text.o text.c
text.c: In function 'do_alt_speller':
text.c:2667:5: error: unknown type name '__time_t'
__time_t timestamp;
^
Makefile:411: recipe for target 'text.o' failed
make[2]: *** [text.o] Error 1
make[2]: Leaving directory '/home/user/nano-2.4.0/src'
Makefile:395: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/user/nano-2.4.0'
Makefile:333: recipe for target 'all' failed
make: *** [all] Error 2
It is possible that I have not installed enough of Cygwin: I installed gcc-core and any dependencies but stopped there. (In the past I have had to be explicit about . bison, flex . and some others.) Can anybody offer advice on what package in Cygwin Devel (or other) I might be missing that is preventing compilation of nano from source?
Or is there a tweak to the script Makefile that I need to attend to? (Actually it's not obvious to me that src/text.o exists.)
Thank you.
Fergus
as the current cygwin package has an additional patch
https://cygwin.com/packages/x86/nano/nano-2.4.0-1-src
I suggest to download the cygwin source package and compare.
(the patch name 2.4.0-time_t.patch seems linked to your problem)
Regards
Marco
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple