🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.windows.interviews
1 messages
1 total messages Started by Michael Pichler Wed, 18 Jan 1995 18:18
building shared library with g++
#1673
Author: Michael Pichler
Date: Wed, 18 Jan 1995 18:18
56 lines
4017 bytes
Hello InterViews and GNU experts,

We are trying to build a shared version of the InterViews library
using g++ (2.6.3) on a SUN Solaris system (SUNOS 5.3).
Has anyone succeeded in doing this before?

For compiling the .o we call  g++ -fpic.

For linking we tried  gcc -z text -G, but get a lot of warnings like

Text relocation remains                       referenced
    against symbol                  offset      in file
atexit                              0x1c        /usr/local/lib/gcc-lib/sparc-sun-solaris2.3/2.6.3/crt1.o
_fini                               0x24        /usr/local/lib/gcc-lib/sparc-sun-solaris2.3/2.6.3/crt1.o
_fini                               0x28        /usr/local/lib/gcc-lib/sparc-sun-solaris2.3/2.6.3/crt1.o
...
main                                0x5c        /usr/local/lib/gcc-lib/sparc-sun-solaris2.3/2.6.3/crt1.o
exit                                0x64        /usr/local/lib/gcc-lib/sparc-sun-solaris2.3/2.6.3/crt1.o
_exit                               0x6c        /usr/local/lib/gcc-lib/sparc-sun-solaris2.3/2.6.3/crt1.o
__CTOR_LIST__                       0x8         /usr/local/lib/gcc-lib/sparc-sun-solaris2.3/2.6.3/crtbegin.o
__CTOR_LIST__                       0xc         /usr/local/lib/gcc-lib/sparc-sun-solaris2.3/2.6.3/crtbegin.o
...
fprintf                             0x1c        /usr/local/lib/gcc-lib/sparc-sun-solaris2.3/2.6.3/libgcc.a(_eprintf.o)
fflush                              0x24        /usr/local/lib/gcc-lib/sparc-sun-solaris2.3/2.6.3/libgcc.a(_eprintf.o)
abort                               0x2c        /usr/local/lib/gcc-lib/sparc-sun-solaris2.3/2.6.3/libgcc.a(_eprintf.o)
free                                0x10        /usr/local/lib/gcc-lib/sparc-sun-solaris2.3/2.6.3/libgcc.a(_op_delete.o)
malloc                              0x10        /usr/local/lib/gcc-lib/sparc-sun-solaris2.3/2.6.3/libgcc.a(_op_new.o)
...
_GLOBAL_.I.__7DragBoxP7ivGlyphPC7ivColor 0x0            xdrag.o
ld: fatal: relocations remain against allocatable but non-writable sections


What does "relocation against non-writeable sections" mean?

Can these relocations be ignored (what is done with omitting -z text)
or are they harmful (e.g. when several programs are using the shared
library)? Are we doing something wrong?

Thanks in advance for any help.

                                        greetings,
--
                                        Michael Pichler

*--------------------------------------------------------------------*
DI Michael Pichler                         mpichler@iicm.tu-graz.ac.at
IICM                               ______
Graz University of Technology       / /        Tel: ++43-316-832551-36
Schieszstattgasse 4a               / / 95         Fax: ++43-316-824394
A-8010 Graz                   "reality inside"
Austria                             Austria -- in the heart of EU-rope
*--------------------------------------------------------------------*
  Hyper-G: the first second generation hypermedia information system
   For info on Hyper-G look in ftp://iicm.tu-graz.ac.at/pub/Hyper-G
 ED-MEDIA 95, Graz, Austria, June 18-21 1995, info: aace@virginia.edu
*--------------------------------------------------------------------*
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads