Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: swamp-dog@ntlworld.com (Guy Harrison)
To: <cygwin@cygwin.com>
Subject: Re: groff : grap and deroff
Date: Sat, 17 Nov 2001 21:11:10 GMT
Reply-To: swamp-dog@ntlworld.com
Message-ID: <3bf7d23d.1177102@smtp.swampdog>
References: <000901c16dd7$5d931100$6fc82486@medschool.dundee.ac.uk>
In-Reply-To: <000901c16dd7$5d931100$6fc82486@medschool.dundee.ac.uk>
X-Mailer: Forte Agent 1.5/32.451
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id fAHLHnc02129

On Thu, 15 Nov 2001 13:13:49 -0000, "Fergus"
<fergus@bonhard.uklinux.net> wrote:


>I tried installing grap-1.21.tar.gz available from
>http://www.lunabase.org/~faber/Vault/software/grap/ but failed at the make
>stage. No doubt me doing something daft or failing to do something sensible.

Was this the error?

c++ -Wall -DHAVE_CONFIG_H -Wno-unused -c grap_lex.cc
c++ -Wall -DHAVE_CONFIG_H  grap.o grap_lex.o grap_draw.o grap_pic.o
grap_parse.o
 grap_tokenizer.o   -o grap
grap_lex.o(.text+0x6630):grap_lex.cc: undefined reference to `errno'
collect2: ld returned 1 exit status
make: *** [grap] Error 1

If so, and nothing else amiss, then it will link if you insert...
#include <errno.h>
...into grap_lex.cc just after <stdio.h> (line 9)...

<snippet>
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5

#include <stdio.h>
#include <errno.h>	// <-insert
</snippet>

..then make again.


-- 
swamp-dog@ntlworld.com

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

