delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/03/31/08:09:49

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:cc:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; q=dns; s=default; b=wdHznkPXtATeTkQRXL1OgSnp84BA+
2Hu+GV0Ks5t80zfG5TlrYWzvEihZRo5qLvN8+XjtPkN1SbIuu2ZdGlQvKwAKvG0T
/OCOCFZJeXYS+CAQGRgD8J9e+7QbcudP3Av1VJ6E4KuGc65mOllYIr7qJwtEkxVq
LqJj1HIJhNXkYQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:cc:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; s=default; bh=8AvY9759dj+EEXjpVZa+lOLGSpc=; b=kBB
ERkYGAGEgfOmD7lrPumJUqf0wetL59UFcl8faZ4ZtkhGbSewkWHEOTovipNPM1Z7
ZnKVMDLqsNPtXacm7/eRYvBUNyozZsNUVkX7yB6HWFyLunt+3Rlj6SsPKIvvSuGd
G2LwUvKEA9wTS6mjzBD5FZSpcgAxxg8s5Q4lvvuM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.0 required=5.0 tests=AWL,BAYES_20,KAM_COUK autolearn=no version=3.3.2
X-HELO: mx-relay36-dus.antispameurope.com
From: Fergus Daly <fergusd AT frontier-science DOT co DOT uk>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
CC: Fergus Daly <fergusd AT frontier-science DOT co DOT uk>
Subject: Compiling nano from source
Date: Tue, 31 Mar 2015 12:09:11 +0000
Message-ID: <9D9AC45310887B40A7245734E850FBE1125C4526@FS-MX02.frontier.local>
References: <9D9AC45310887B40A7245734E850FBE1125C44DD AT FS-MX02 DOT frontier DOT local>
In-Reply-To: <9D9AC45310887B40A7245734E850FBE1125C44DD@FS-MX02.frontier.local>
MIME-Version: 1.0
X-cloud-security-sender:fergusd AT frontier-science DOT co DOT uk :
X-cloud-security-recipient:cygwin AT cygwin DOT com :
X-cloud-security-Virusscan:CLEAN :
X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mx-gate36-dus with 560062118004
X-cloud-security-connect: unknown[195.59.181.82], TLS=, IP=195.59.181.82
X-cloud-security:scantime:.1444 :
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t2VC9j7j018936

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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019