Article View: gnu.gcc.help
Article #53423Re: RPC and gcc
From: Doug Anson
Date: Thu, 23 Jan 1992 18:31
Date: Thu, 23 Jan 1992 18:31
33 lines
2172 bytes
2172 bytes
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. |> |> I have re-compiled rpclib with gcc, but the segementation violations persist |> (generally when a call to gethostbyname) is made. |> |> The same program runs fine when compiled with the default version of cc |> on the SparcStation. |> |> Has anyone else experienced these problems? Any ideas? |> |> Thanks in advance, Gail. |> |> P.S.: I apologize if this is too specific of a problem for comp.unix.programmer. |> |> Gail Murphy | Voice : (604) 293-5462 |> MPR Teltech Ltd. | Fax : (604) 293-5787 |> 8999 Nelson Way, Burnaby, BC | E-Mail: murphy@mprgate.mpr.ca |> Canada, V5A 4B5 | mprgate.mpr.ca!murphy@uunet.uu.net If I am not mistaken, gcc handles structure passing differently than cc. I had an RPC based program that died miserably when I tried compiling the RPC stubs and application code with gcc. I was using TCP as the transport. The fix I used was to compile the RPC stubs with cc, then compile the rest of my application with gcc and link the whole thing with gcc. Works like a charm! Hope this helps doug -------------------------- Doug Anson Internet: danson@lgc.com Landmark Graphics LGC 333 Cypress Run Houston, TX 77084 --------------------------
Technical Details
Message-ID:
<1992Jan23.183131.5242@lgc.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!cs.utexas.edu!lgc.com!lgc.com!dansonReferences:
<1992Jan22.233901.29599@mprgate.mpr.ca>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 10:53:40 PST Newsgroups: gnu.gcc.help,comp.unix.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!usc!cs.utexas.edu!lgc.com!lgc.com!danson From: danson@lgc.com (Doug Anson) Subject: Re: RPC and gcc Message-ID: <1992Jan23.183131.5242@lgc.com> Sender: usenet@lgc.com Nntp-Posting-Host: voodoo.lgc.com Organization: Landmark Graphics LGC References: <1992Jan22.233901.29599@mprgate.mpr.ca> Date: Thu, 23 Jan 1992 18:31:31 GMT Lines: 33