🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #479

gdb 4.6/ISC 2.2.1/libiberty

#479
From: Karl Berry
Date: Wed, 14 Oct 1992 10:34
47 lines
1857 bytes
I tried to compile GDB 4.6 on Interactive Unix 2.2.1, a system
V-based-but-supposedly-POSIX system, and had a few troubles, which I
will detail in separate messages following.

I did `configure i386-sysv', and compiled with
CC="gcc -O -posix -DHAVE_UNISTD_H -DUSG -DTIOCGETC_BROKEN -DTIOCGLTC_BROKEN"

In libiberty, I had to make the following changes, as ISC requires (per
POSIX) <sys/types.h> before <signal.h> and already has _POSIX_SOURCE
defined.

Sun Oct 11 12:15:14 1992  Karl Berry  (karl@cs.umb.edu)

	* strsignal.h: Include <sys/types.h> before <signal.h>

	* sigsetmask.c (_POSIX_SOURCE) [!_POSIX_SOURCE]: Add conditional
	to avoid warning about redefinition.

*** ./ORIG/sigsetmask.c	Mon Jul  6 13:12:01 1992
--- ./sigsetmask.c	Sun Oct 11 12:04:33 1992
***************
*** 20,27 ****
--- 20,31 ----
  /* Set the current signal mask to the set provided, and return the 
     previous value */
  
+ #ifndef _POSIX_SOURCE
  #define _POSIX_SOURCE
+ #endif
+ 
  #include <ansidecl.h>
+ #include <sys/types.h>
  #include <signal.h>
  
  #ifdef SIG_SETMASK
*** ./ORIG/strsignal.c	Mon Jul  6 13:12:03 1992
--- ./strsignal.c	Sun Oct 11 11:52:47 1992
***************
*** 19,24 ****
--- 19,25 ----
  #include "config.h"
  
  #include <stdio.h>
+ #include <sys/types.h>
  #include <signal.h>
  
  /*  Routines imported from standard C runtime libraries. */
Technical Details
Message-ID: <199210141834.AA11847@claude.cs.umb.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!claude.cs.umb.edu!karl

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gdb.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!claude.cs.umb.edu!karl
From: karl@claude.cs.umb.edu (Karl Berry)
Subject: gdb 4.6/ISC 2.2.1/libiberty
Message-ID: <199210141834.AA11847@claude.cs.umb.edu>
Sender: gnulists@ai.mit.edu
Reply-To: karl@cs.umb.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 14 Oct 1992 10:34:07 GMT
Approved: bug-gdb@prep.ai.mit.edu
Lines: 48