bug-groff
[Top][All Lists]
Advanced

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

RE: groff 1.20 on Interix (all_source)


From: Jay
Subject: RE: groff 1.20 on Interix (all_source)
Date: Sun, 21 Jun 2009 04:35:05 +0000

Darnit, hotmail likes to remove things between less than and greater than.
Those were stdio.h or stdlib.h.
Here it is with quotes, but they should be less than and greater than.
 
 
 
bash-4.0$ diff -u ./src/include/lib.h.orig ./src/include/lib.h
--- ./src/include/lib.h.orig    Sat Jun 20 05:08:52 2009
+++ ./src/include/lib.h Sat Jun 20 05:18:09 2009
@@ -18,6 +18,12 @@
 You should have received a copy of the GNU General Public License
 along with this program. If not, see . */
+#if defined(__INTERIX) && !defined(_ALL_SOURCE)
+#define _ALL_SOURCE
+#include "stdio.h"         should be less than and greater than
+#undef _ALL_SOURCE
+#endif
+
 #ifdef HAVE_CONFIG_H
 #include 
 #endif
 
 
hypot.cpp -- was ok
 
 
 
bash-4.0$ diff -u ./src/libs/libgroff/relocate.cpp.orig ./src/libs/libgroff/rel
ocate.cpp
--- ./src/libs/libgroff/relocate.cpp.orig       Sat Jun 20 04:53:56 2009
+++ ./src/libs/libgroff/relocate.cpp    Sat Jun 20 05:16:41 2009
@@ -17,6 +17,12 @@
 // Made after relocation code in kpathsea and gettext.
+#if defined(__INTERIX) && !defined(_ALL_SOURCE)
+#define _ALL_SOURCE
+#include "stdlib.h"    should be less than and greater than 
+#undef _ALL_SOURCE
+#endif
+
 #include "lib.h"
 #include 
 
 
 - Jay



----------------------------------------
> From: address@hidden
> To: address@hidden
> Subject: groff 1.20 on Interix (all_source)
> Date: Sat, 20 Jun 2009 12:21:20 +0000
>
>
> /dev/fs/C/src/groff-1.20/src/libs/libgroff/hypot.cpp: In function `double
> groff_hypot(double, double)':
> /dev/fs/C/src/groff-1.20/src/libs/libgroff/hypot.cpp:33: error: `isnan'
> undeclared (first use this function)
> /dev/fs/C/src/groff-1.20/src/libs/libgroff/hypot.cpp:33: error: (Each
> undeclared identifier is reported only once for each function it appears
> in.)
> /dev/fs/C/src/groff-1.20/src/libs/libgroff/relocate.cpp: In function `char*
> searchpath(const char*, const char*)':
> /dev/fs/C/src/groff-1.20/src/libs/libgroff/relocate.cpp:88: error: `realpath'
> undeclared (first use this function)
> /dev/fs/C/src/groff-1.20/src/libs/libgroff/relocate.cpp:88: error: (Each
> undeclared identifier is reported only once for each function it appears
> in.)
>
>
> similar for fdopen in a few places (tmpfile.cpp, maybe index.cpp)
>
>
> It would be nice to just:
>
>
> #if defined(__INTERIX) && !defined(_ALL_SOURCE)
> #define _ALL_SOURCE
> #endif
>
>
> in lib.h, but that invites clashing declarations like:
>
>
> /src/groff-1.20/src/include/lib.h:120: error: declaration of C function `int
> strncasecmp(const char*, const char*, int)' conflicts with
> /usr/include/strings.h:68: error: previous declaration `int strncasecmp(const
> char*, const char*, unsigned int)' here
>
>
> and similar for putenv.
>
>
> So this form limits the impact.
>
>
> I had to use configure -without-x, and got errors building the documentation, 
> ok,
> I might look into those later.
>
>
> C:\src\groff-1.20\src\libs\libgroff>diff -u relocate.cpp.orig relocate.cpp
> --- relocate.cpp.orig 2009-06-20 04:53:56.546875000 -0700
> +++ relocate.cpp 2009-06-20 05:16:41.984375000 -0700
> @@ -17,6 +17,12 @@
> // Made after relocation code in kpathsea and gettext.
> +#if defined(__INTERIX) && !defined(_ALL_SOURCE)
> +#define _ALL_SOURCE
> +#include
> +#undef _ALL_SOURCE
> +#endif
> +
> #include "lib.h"
> #include
>
>
>
> C:\src\groff-1.20\src\libs\libgroff>diff -u hypot.cpp.orig hypot.cpp
> --- hypot.cpp.orig 2009-06-20 04:52:45.968750000 -0700
> +++ hypot.cpp 2009-06-20 05:16:41.906250000 -0700
> @@ -14,6 +14,10 @@
> You should have received a copy of the GNU Library General Public License
> along with this program. If not, see . */
> +#if defined(__INTERIX) && !defined(_ALL_SOURCE)
> +#define _ALL_SOURCE
> +#endif
> +
> #ifdef HAVE_CONFIG_H
> #include
> #endif
>
>
>
> C:\src\groff-1.20\src\include>diff -u lib.h.orig lib.h
> --- lib.h.orig 2009-06-20 05:08:52.593750000 -0700
> +++ lib.h 2009-06-20 05:18:09.625000000 -0700
> @@ -18,6 +18,12 @@
> You should have received a copy of the GNU General Public License
> along with this program. If not, see . */
> +#if defined(__INTERIX) && !defined(_ALL_SOURCE)
> +#define _ALL_SOURCE
> +#include
> +#undef _ALL_SOURCE
> +#endif
> +
> #ifdef HAVE_CONFIG_H
> #include
> #endif
>
>
>
> Thanks,
> - Jay



reply via email to

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