🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52736

Re: R5 shared libs fail to build with gcc2.1 under SunOS4.1

#52736
From: Ian Dickinson
Date: Fri, 29 May 1992 10:02
29 lines
2039 bytes
In article <79nkbb16@csv.warwick.ac.uk> vato@csv.warwick.ac.uk (Ian Dickinson) writes:
>I'm trying to build X11R5fix12 on a Sun3 under SunOS4.1 using gcc2.1
>The patch to allow gcc compilation of the shared libs that came with
>gcc has been applied since it didn't conflict with any later official fixes.
>Everything runs fine until building the shared libraries fails with lots of
>messages of the form:
>...

Thanks for the responses - I have it fixed now.
The answer was not to use 'gas' for pic code.
The solution I used was provided by Wolfgang Rupprecht <wolfgang@wsrcc.com>

I changed the gcc patch for X so the line in config/sunLib.rules that read
	#define PositionIndependentCFlags -fpic
is now as follows
	#define PositionIndependentCFlags -B/bin/ -fpic

Whilst I was at it, adding
	#undef OptimizedCDebugFlags
to the part of the gcc patch for config/sun.cf before the line
	#define OptimizedCDebugFlags -O2
saves a lot of error reports from the preprocessor.

Cheers,
-- 
\/ato - Ian Dickinson - NIC handle: ID17                  Tax cuts don't help
vato@csv.warwick.ac.uk  ...!mcsun!uknet!warwick!vato         those without an
/I=I/S=Dickinson/OU=CSV/O=Warwick/PRMD=UK.AC/ADMD= /C=GB/              income
@c=GB@o=University of Warwick@ou=Computing Services@cn=Ian Dickinson
Technical Details
Message-ID: <9lqkbc7d@csv.warwick.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!warwick!cudep
References: <79nkbb16@csv.warwick.ac.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,cef85365d4fcc4ac
X-Google-Attributes: gid11318c,public
X-Google-Thread: 103734,cef85365d4fcc4ac
X-Google-Attributes: gid103734,public
X-Google-ArrivalTime: 1992-05-29 04:16:56 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!uknet!warwick!cudep
From: cudep@warwick.ac.uk (Ian Dickinson)
Newsgroups: gnu.gcc.help,comp.windows.x
Subject: Re: R5 shared libs fail to build with gcc2.1 under SunOS4.1
Message-ID: <9lqkbc7d@csv.warwick.ac.uk>
Date: 29 May 92 10:02:53 GMT
References: <79nkbb16@csv.warwick.ac.uk>
Sender: news@csv.warwick.ac.uk (Network news)
Organization: Team Limpid's Meathead With Aptitude - Kunst und Wahnsinn
Lines: 29
Nntp-Posting-Host: limpid