This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: groff : grap and deroff


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]