[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
groff 1.17.2 fails to build under vax-dec-ultrix4.3
From: |
John David Anglin |
Subject: |
groff 1.17.2 fails to build under vax-dec-ultrix4.3 |
Date: |
Sun, 15 Jul 2001 12:09:22 -0400 (EDT) |
I tried to build groff-1.17.2 under vax-dec-ultrix4.3 with g++-3.0 (primarily
as a test of this compiler). The build fails here:
make[2]: Entering directory `/xxx/gnu/groff-1.17.2/objdir/src/preproc/html'
g++ -I. -I/xxx/gnu/groff-1.17.2/src/preproc/html
-I/xxx/gnu/groff-1.17.2/objdir/src/include -I/xxx/gnu/groff-1.17.2/src/include
-DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1
-DHAVE_SYS_DIR_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_MATH_H=1
-DRET_TYPE_SRAND_IS_VOID=1 -DNEED_DECLARATION_STRNCASECMP=1
-DHAVE_CC_LIMITS_H=1 -DRETSIGTYPE=void -DHAVE_STRUCT_EXCEPTION=1
-DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_FMOD=1
-DHAVE_STRTOL=1 -DHAVE_GETCWD=1 -DHAVE_STRERROR=1 -DHAVE_PUTENV=1
-DHAVE_RENAME=1 -DHAVE_STRCASECMP=1 -DHAVE_STRNCASECMP=1 -DWCOREFLAG=0200 -O2
-c /xxx/gnu/groff-1.17.2/src/preproc/html/pre-html.cc
/xxx/gnu/groff-1.17.2/src/preproc/html/pre-html.cc: In function `char*
make_message(const char*, ...)':
/xxx/gnu/groff-1.17.2/src/preproc/html/pre-html.cc:275: `strdup' undeclared
(first use this function)
/xxx/gnu/groff-1.17.2/src/preproc/html/pre-html.cc:275: (Each undeclared
identifier is reported only once for each function it appears in.)
/xxx/gnu/groff-1.17.2/src/preproc/html/pre-html.cc: In function `int
createAllPages()':
/xxx/gnu/groff-1.17.2/src/preproc/html/pre-html.cc:861: `mktemp' undeclared
(first use this function)
/xxx/gnu/groff-1.17.2/src/preproc/html/pre-html.cc: In function `int
makeTempFiles()':
/xxx/gnu/groff-1.17.2/src/preproc/html/pre-html.cc:1373: `mkstemp' undeclared
(first use this function)
I also had a problem here:
g++ -I. -I/xxx/gnu/groff-1.17.2/src/libs/libgroff
-I/xxx/gnu/groff-1.17.2/objdir/src/include -I/xxx/gnu/groff-1.17.2/src/include
-DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1
-DHAVE_SYS_DIR_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_MATH_H=1
-DRET_TYPE_SRAND_IS_VOID=1 -DNEED_DECLARATION_STRNCASECMP=1
-DHAVE_CC_LIMITS_H=1 -DRETSIGTYPE=void -DHAVE_STRUCT_EXCEPTION=1
-DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_FMOD=1
-DHAVE_STRTOL=1 -DHAVE_GETCWD=1 -DHAVE_STRERROR=1 -DHAVE_PUTENV=1
-DHAVE_RENAME=1 -DHAVE_STRCASECMP=1 -DHAVE_STRNCASECMP=1 -DWCOREFLAG=0200 -O2
-c /xxx/gnu/groff-1.17.2/src/libs/libgroff/tmpfile.cc
/xxx/gnu/groff-1.17.2/src/libs/libgroff/tmpfile.cc: In function `void
add_tmp_file(const char*)':
/xxx/gnu/groff-1.17.2/src/libs/libgroff/tmpfile.cc:123: cannot convert `void
(*)()' to `void (*)(...)' for argument `1' to `int atexit(void (*)(...))'
/xxx/gnu/groff-1.17.2/src/libs/libgroff/tmpfile.cc: In function `FILE*
xtmpfile(char**, char*, int)':
/xxx/gnu/groff-1.17.2/src/libs/libgroff/tmpfile.cc:153: `mktemp' undeclared
(first use this function)
/xxx/gnu/groff-1.17.2/src/libs/libgroff/tmpfile.cc:153: (Each undeclared
identifier is reported only once for each function it appears in.)
The atexit problem is a prototype problem which needs a fixincl hack. I
did a quick hack around the mktemp problem in tmpfile.cc.
The system doesn't have either strdup or mkstemp. It does have mktemp
although there is no prototype for it in any system include file. The
man page says the function should not be used for "new" applications.
Its ultrix prototype should be:
extern "C" {
extern char * mktemp (char *);
}
Dave
--
J. David Anglin address@hidden
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
- groff 1.17.2 fails to build under vax-dec-ultrix4.3,
John David Anglin <=
- Re: groff 1.17.2 fails to build under vax-dec-ultrix4.3, Werner LEMBERG, 2001/07/15
- Re: groff 1.17.2 fails to build under vax-dec-ultrix4.3, John David Anglin, 2001/07/15
- Re: groff 1.17.2 fails to build under vax-dec-ultrix4.3, Werner LEMBERG, 2001/07/16
- Re: groff 1.17.2 fails to build under vax-dec-ultrix4.3, John David Anglin, 2001/07/16
- Re: groff 1.17.2 fails to build under vax-dec-ultrix4.3, Ralph Corderoy, 2001/07/16
- Re: groff 1.17.2 fails to build under vax-dec-ultrix4.3, Werner LEMBERG, 2001/07/17
- Re: groff 1.17.2 fails to build under vax-dec-ultrix4.3, John David Anglin, 2001/07/17
- Re: groff 1.17.2 fails to build under vax-dec-ultrix4.3, Werner LEMBERG, 2001/07/17
- Re: groff 1.17.2 fails to build under vax-dec-ultrix4.3, John David Anglin, 2001/07/18
- Re: groff 1.17.2 fails to build under vax-dec-ultrix4.3, Werner LEMBERG, 2001/07/19