Re: Compiling nano from source

2015-03-31 Thread Marco Atzeri



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



Compiling nano from source

2015-03-31 Thread Fergus Daly
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


--
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