public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: egcs on i386-unknown-freebsd2.1.6
@ 1997-08-31  2:07 Jim Wilson
  0 siblings, 0 replies; only message in thread
From: Jim Wilson @ 1997-08-31  2:07 UTC (permalink / raw)
  To: egcs

	The build succeeded except for a couple of little glitches in the texinfo
	directory:

	terminal.c: In function `terminal_prep_terminal':
	terminal.c:640: `OCRNL' undeclared (first use this function)

I have checked in a fix for this from more recent texinfo sources.
This is the first patch below.

	install-info.c: In function `my_strerror':
	install-info.c:345: conflicting types for `sys_errlist'

I see that there is a fix for this in more recent texinfo sources, but
it is rather involved, and I don't want to make such a large change at this
time.  I tried a simpler change of just using strerror if HAVE_STRERROR is
defined.  Let me know if this works.  I haven't checked it in yet, but I
doubt that it will cause any problems.  This is the second patch below.

	On the other hand, using g++ fails:

	gecko% g++ hello.cc
	ld: -lstdc++: no match
	collect2: ld returned 1 exit status

Check to make sure that libstdc++ was built and installed OK.
You can use the -v option to see what options are being passed to the
linker.  There should be a -L option pointing to the directory where
libstdc++ was installed.

Patches:

Fri Mar 14 15:05:17 1997  Karl Berry  

	* info/terminal.c (terminal_prep_terminal): Only use OCRNL and
		ONLCR if they are defined.  Reported by many people.

Index: info/terminal.c
===================================================================
RCS file: /cvs/cvsfiles/egcs/texinfo/info/terminal.c,v
retrieving revision 1.1.1.1
diff -p -r1.1.1.1 terminal.c
*** terminal.c	1997/08/21 22:58:04	1.1.1.1
--- terminal.c	1997/08/31 01:38:15
*************** terminal_prep_terminal ()
*** 637,643 ****
  
  #if defined (HAVE_TERMIOS_H) || defined (HAVE_TERMIO_H)
    ttybuff.c_iflag &= (~ISTRIP & ~INLCR & ~IGNCR & ~ICRNL & ~IXON);
!   ttybuff.c_oflag &= (~ONLCR & ~OCRNL);
    ttybuff.c_lflag &= (~ICANON & ~ECHO);
  
    ttybuff.c_cc[VMIN] = 1;
--- 637,650 ----
  
  #if defined (HAVE_TERMIOS_H) || defined (HAVE_TERMIO_H)
    ttybuff.c_iflag &= (~ISTRIP & ~INLCR & ~IGNCR & ~ICRNL & ~IXON);
! /* These output flags are not part of POSIX, so only use them if they
!    are defined.  */
! #ifdef ONLCR
!   ttybuff.c_oflag &= ~ONLCR ;
! #endif
! #ifdef OCRNL
!   ttybuff.c_oflag &= ~OCRNL;
! #endif
    ttybuff.c_lflag &= (~ICANON & ~ECHO);
  
    ttybuff.c_cc[VMIN] = 1;


Sat Aug 30 18:58:30 1997  Jim Wilson  

	* util/install-info.c (my_strerror): Use strerror if HAVE_STRERROR.

Index: util/install-info.c
===================================================================
RCS file: /cvs/cvsfiles/egcs/texinfo/util/install-info.c,v
retrieving revision 1.1.1.1
diff -p -r1.1.1.1 install-info.c
*** install-info.c	1997/08/21 22:58:12	1.1.1.1
--- install-info.c	1997/08/31 02:00:08
*************** char *
*** 342,353 ****
--- 342,357 ----
  my_strerror (errnum)
       int errnum;
  {
+ #ifdef HAVE_STRERROR
+   return (char *) strerror (errnum);
+ #else
    extern char *sys_errlist[];
    extern int sys_nerr;
  
    if (errnum >= 0 && errnum 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-08-31  2:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-08-31  2:07 egcs on i386-unknown-freebsd2.1.6 Jim Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).