🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #300

Re: Libg++ on HP's

#300
From: Roman Augustyn
Date: Thu, 20 Aug 1992 07:54
55 lines
2281 bytes
> I built libg++ version 2.2 on a HP 9000/730 (running HP-UX 8.05)
> using GCC version 2.2.2.  Whenever I try to link libg++.a with
> any C++ program, no matter how trivial, I always get the following
> error from the linker:
>
> ld: Unsatisfied symbols:
>    _vt.filebuf (data)

A workaround for this problem was published by Per Bothner (bothner@cygnus.com)
in the news-group 'gnu.g++.lib.bug'.

Changing line 78 of ./libg++-2.2/libg++/utils/gen-params (as described by the
following 'diff' output) is doing the trick:

diff gen-params gen-params.orig
78c78
<     echo "#define ${macro_prefix}DOLLAR_IN_LABEL ${DOLLAR_IN_LABEL}"
---
>     echo "#define ${macro_prefix} ${DOLLAR_IN_LABEL} ${DOLLAR_IN_LABEL}"

I also applied a patch from Christoph Tietz (tietz@gmd.de, tietz@zi.gmd.dbp.de)
which corrects a problem with the 'contains' operation for SubString objects:
Change line 1077 of ./libg++-2.2/libg++/src/String.h according to the following
'diff' output.

diff String.h String.h.orig
1077c1077
<   return S.search(pos, pos+len, c) >= 0;
---
>   return S.search(pos, pos+len, 0, c) >= 0;

After that, 'make CC=gcc' followed by 'make CC=gcc check' passes most of
the tests. Unfortunately i get the following error when linking
'./libg++-2.2/libg++/tests/tString':

        gcc  tString.o -o tString ../libg++.a
ld: Unsatisfied symbols:
   RXdouble (code)
   RXalpha (code)
   RXwhite (code)
   RXint (code)
collect: /bin/ld returned 1 exit status
*** Error code 1

Stop.

I have not had the time to look into that error - perhaps someone can help me
out.

Thanks,

Roman Augustyn                           (roman@pauli.theochem.tuwien.ac.at)
Technical University Vienna
Getreidemarkt 9, 1060 Vienna, Austria, Europe
Technical Details
Message-ID: <1992Aug20.095428@pauli.theochem.tuwien.ac.at>
Path: arc1-ca.pugleaf.net!sparky!uunet!email!roman
References: <vic.714225222@news2>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!email!roman
From: roman@pauli.theochem.tuwien.ac.at (Roman Augustyn)
Subject: Re: Libg++ on HP's
Message-ID: <1992Aug20.095428@pauli.theochem.tuwien.ac.at>
Originator: roman@pauli.theochem.tuwien.ac.at
Keywords: gnu,libg++,gcc,g++
Sender: news@email.tuwien.ac.at
Nntp-Posting-Host: pauli.theochem.tuwien.ac.at
Organization: Technical University Vienna / Austria
References:  <vic.714225222@news2>
Date: Thu, 20 Aug 1992 07:54:28 GMT
Lines: 55