🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52529

These may or may not be considered bugs...

#52529
From: dwex
Date: Tue, 30 Jun 1992 16:24
36 lines
2208 bytes
Version: GCC 2.2.2
Configuration: i386v4

1) In SVR4, when one wants to build a program using Berkeley networking
   stuff, to get the SVR4 stuff, and only the networking stuff (and not
   the rest of the BSD emulation package), one uses a compile line like:

	cc -I/usr/include -I/usr/ucbinclude foo.c -lc -lucb -lsocket -lnsl

   This is required to get the default (e.g.) stdio.h, rather than the one
   in /usr/ucbinclude.

   But if you do this, the fixed include files are not picked up (verified
   with the -H option).  This leads to problems, because the fixed 
   <sys/byteorder.h> is rather important with gcc (:->).

   The only way around this that I could find was to modify 
   /usr/include/sys/byteorder.h to include the GCC version if __GNUC__
   is defined.  This defeats the purpose of having a seperate directory
   for fixed include files.

2) The strategy for fixed include files assumes that all include files
   that may need to be fixed are under /usr/include.  On SVR4, you may
   need to fix both /usr/include and /usr/ucbinclude.  And many sites
   install add-on packages outside of /usr (e.g. /usr/X386/include for
   X11R5, /usr/local/include).

Anyhow, I'm not sure if those are really bugs, but they are annoying, and
difficult to impossible to work around.


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
David Wexelblat             | dwex@mtgzfs3.att.com  | I asked her her name
AT&T Bell Laboratories      | ...!att!mtgzfs3!dwex  |    She said her name was
200 Laurel Ave - 4B-421     |                       |       'Maybe'
Middletown, NJ  07748       | (908) 957-5871        | --Damn Yankees
Technical Details
Message-ID: <9206301624.AA07034@mtgzfs3.att.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!mtgzy.UUCP!dwex

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,a8bb64550e3aa3cd,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-06-30 03:23:28 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!mtgzy.UUCP!dwex
From: dwex@mtgzy.UUCP
Subject: These may or may not be considered bugs...
Message-ID: <9206301624.AA07034@mtgzfs3.att.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 30 Jun 1992 16:24:13 GMT
Lines: 37