Article View: gnu.groff.bug
Article #100compilation error for groff-1.06 on hp9k8x7 ( using g++2.3 )
From: Michael J. Corrigan
Date: Tue, 26 Jan 1993 01:18
Date: Tue, 26 Jan 1993 01:18
27 lines
1390 bytes
1390 bytes
GROFF VERSION: 1.06 MACHINE: HP 9000/827 OS: HP-UX 8.02 [The operating system you are using. For example, `SunOS 4.1.1'] COMPILER: g++ 2.3/gcc.2.3.u3 INPUT FILES: COMMAND LINE: gmake DESCRIPTION OF INCORRECT BEHAVIOUR: g++ fails in the compilation of libgroff/tmpfile.cc, with a complaint about conflicting delcarations for 'int getopt getopt(int, const char **, const char *)' from lib.h and /usr/include/sys/unistd.h SUGGESTED FIX: in lib.h, change: int getopt getopt(int, const char **, const char *) to int getopt(int, char * const [], const char *) which is how it is declared in /usr/include/sys/unistd.h on the HP. Note that <unistd.h> includes <sys/unistd.h> on the HP. Possibly gcc is overzealous about saying that these delcarations conflict, but I don't understand the declarations well enough to know. They look similar: const char **, and char * const []
Technical Details
Message-ID:
<9301240034.AA14184@weber.ucsd.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!weber.ucsd.edu!corriganShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!weber.ucsd.edu!corrigan From: corrigan@weber.ucsd.edu (Michael J. Corrigan) Newsgroups: gnu.groff.bug Subject: compilation error for groff-1.06 on hp9k8x7 ( using g++2.3 ) Date: 25 Jan 1993 20:18:20 -0500 Organization: GNUs Not Usenet Lines: 29 Sender: daemon@cis.ohio-state.edu Approved: bug-groff@prep.ai.mit.edu Distribution: gnu Message-ID: <9301240034.AA14184@weber.ucsd.edu>