/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 _______________________________________________ bug-groff mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-groff
