delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/17/16:17:50

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

On Thu, 15 Nov 2001 13:13:49 -0000, "Fergus"
<fergus AT bonhard DOT uklinux DOT 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 AT ntlworld DOT 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/

- Raw text -


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