bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: building groff 1.19 on Interix 3.5


From: Werner LEMBERG
Subject: Re: building groff 1.19 on Interix 3.5
Date: Tue, 16 Nov 2004 08:28:52 +0100 (CET)

> when attempting to build groff 1.19 on Interix 3.5 I encountered the
> following errors after typing 'make all' [...]
>
> tmpfile.cpp:162: error: `fdopen' undeclared (first use this function)
>
> The cause is a lack of '#define'ing either the constant _ALL_SOURCE
> or _POSIX_C_SOURCE

Whether _POSIX_SOURCE has to be used or not is tested with the
availability of the function `fileno'.  (Please check the config.log
file whether _POSIX_SOURCE is really not set on your platform.)
Apparently this isn't enough, so will add fdclose to the GROFF_POSIX
m4 macro.  Since fdopen is a POSIX.1 function this should be
sufficient, and _POSIX_C_SOURCE isn't needed.  Please correct me if
I'm wrong -- Interix 3.5 has then to be handled specially since it is
not conformant to POSIX.1.

The fix (see below) should also correct the problem with strncasecmp
automatically since the autoconf tests for function declarations
include the definitions of all the AC_DEFINES performed so far.

> However, the build process then failed when attempting to generate
> the first '.ps' file from the doc directory, with a continuous
> unending stream of messages similar to the following:
>
> <standard input>:1211422: warning: numeric expression expected (got `N')
>
> while trying to do a test run by creating 'pic.ps' from doc/pic.ms .
> The number '1211422' is how many lines it printed (it began with 1
> and printed for each line, sometimes more than once).

I don't know the reason for this failure.  Maybe it is a compiler
problem since you are the first who is reporting this.  Have you tried
compiling groff without optimization?  Can you try a different g++
version?


    Werner


======================================================================


--- aclocal.m4.old      2004-10-07 12:59:50.000000000 +0200
+++ aclocal.m4  2004-11-16 08:18:32.183550168 +0100
@@ -171,7 +171,10 @@
        AC_LANG_PROGRAM([[
 
 #include <stdio.h>
-extern "C" { void fileno(int); }
+extern "C" {
+  void fileno(int);
+  int fdopen(int, char *);
+}
 
        ]])
      ],


======================================================================


--- configure.old       2004-10-07 12:59:50.000000000 +0200
+++ configure   2004-11-16 08:18:45.912463056 +0100
@@ -6155,7 +6155,10 @@
 
 
 #include <stdio.h>
-extern "C" { void fileno(int); }
+extern "C" {
+  void fileno(int);
+  int fdopen(int, char *);
+}
 
 
 int




reply via email to

[Prev in Thread] Current Thread [Next in Thread]