🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51879

Shared library support on HPUX 8.0

#51879
From: Dave Stevenson
Date: Tue, 16 Mar 1993 23:54
23 lines
1691 bytes
The problem I've got is that I want to build shared libraries for HPUX 8.0,
using gcc 2.3.3 with the native HP 'as' and 'ld'. I'm using the -fpic
option to the compiler (libraries must be built with position independent
code according to the man page for ld), and the -b option to 'ld' to tell
it to build a shared library instead of an a.out formatted executable.

At the link stage of building my library ld complains that:

	ld: supplemental symbol table required for module test.o

If I add a main() routine to the library and compile it as an executable
(but still with the -fpic option) then it core dumps, even if I don't call
any of the internal routines from within main(). Compiling without the
-fpic option makes it run as expected.

Can anyone tell me what I'm doing wrong? I'm running on an HP 9000/300 if
that helps.

Thanks in advance...

Dave Stevenson, Senior Engineer  | Spider Systems Limited, Spider Park,
davids@spider.co.uk              | Stanwell Street, Edinburgh, EH6 5NG
Phone: (031) 554 9424 x 4019     | Fax: (031) 554 0649
Technical Details
Message-ID: <1993Mar16.235435.12931@spider.co.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!marble.uknet.ac.uk!uknet!edcastle!spider!raft.spider.co.uk!davids

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,b5407c94b6ada977,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-03-16 17:18:36 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!marble.uknet.ac.uk!uknet!edcastle!spider!raft.spider.co.uk!davids
From: davids@spider.co.uk (Dave Stevenson)
Newsgroups: gnu.gcc.help
Subject: Shared library support on HPUX 8.0
Message-ID: <1993Mar16.235435.12931@spider.co.uk>
Date: 16 Mar 93 23:54:35 GMT
Sender: news@spider.co.uk (USENET News System)
Organization: Spider Systems Limited, Edinburgh, UK
Lines: 23
Nntp-Posting-Host: orbweb.spider.co.uk