🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #53424

Re: RPC and gcc

#53424
From: John Clark
Date: Thu, 23 Jan 1992 23:16
24 lines
1885 bytes
In article <1992Jan23.170311.3952@cherokee.uswest.com> dir@lookout.uswest.com (Daniel I. Rosenblatt) writes:
>In article <1992Jan22.233901.29599@mprgate.mpr.ca>, murphy@photon.mpr.ca (Gail Murphy) writes:
+> We are experiencing segmentation violations when we attempt to use rpc
+> calls from a program compiled with gcc (1.37.1). This is on a SparcStation.
+
+Try adding -fwritable-strings to the gcc command line.
+Gcc puts constant strings into read-only memory and there are
+some anti-social libc.a routines that try to write to their string

Most notably, 'mktemp' and the casual
'char *tmp = "IMGOINGTOBOMBXXXXXX"' type of declaration.

Other than that there's the infamous 'ioctl' definitions in the
include files, and the even worse old cpp string concatenation in
the 'rpc' code libraries. The '-traditional' option would also be
useful in some of these cases.(in some cases one would meet these in
trying to compile the code, in others its only during execution does
one wonder why there's so many core droppings all over the file
system).

-- 

John Clark
jclark@ucsd.edu
Technical Details
Message-ID: <27635@sdcc12.ucsd.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!hellgate.utah.edu!dog.ee.lbl.gov!network.ucsd.edu!sdcc12!sdcc3!jclark
References: <1992Jan22.233901.29599@mprgate.mpr.ca> <1992Jan23.170311.3952@cherokee.uswest.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,7808c10d03c80e0e
X-Google-Attributes: gid11318c,public
X-Google-Thread: fc89c,7808c10d03c80e0e
X-Google-Attributes: gidfc89c,public
X-Google-ArrivalTime: 1992-01-23 16:08:26 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!hellgate.utah.edu!dog.ee.lbl.gov!network.ucsd.edu!sdcc12!sdcc3!jclark
From: jclark@sdcc3.ucsd.edu (John Clark)
Newsgroups: gnu.gcc.help,comp.unix.programmer
Subject: Re: RPC and gcc
Message-ID: <27635@sdcc12.ucsd.edu>
Date: 23 Jan 92 23:16:24 GMT
References: <1992Jan22.233901.29599@mprgate.mpr.ca> <1992Jan23.170311.3952@cherokee.uswest.com>
Sender: news@sdcc12.ucsd.edu
Followup-To: gnu.gcc.help
Organization: University of California, San Diego
Lines: 24
Nntp-Posting-Host: sdcc3.ucsd.edu