🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: gnu.g++.lib.bug
3 messages
3 total messages Started by Jon Freeman Mon, 27 Jul 1992 20:47
libg++ 2.2 problem
#91
Author: Jon Freeman
Date: Mon, 27 Jul 1992 20:47
36 lines
1390 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)


For example, here's what happens when I try to install libg++-2.2:
-----------------------------------------------
...
        cd test-install; make test-90S  \
            CC=/usr/local/bin/gcc COMPILE_FLAGS="" LIBS=-lg++
        ./foo_main.run > foo_main.out
        diff ./expected.out foo_main.out >foo_main.diff
        /usr/local/bin/gcc   -c a.cc
        /usr/local/bin/gcc -o a  a.o -lg++
ld: Unsatisfied symbols:
   _vt.filebuf (data)
collect: /bin/ld returned 1 exit status
*** Error code 1
 
Stop.
*** Error code 1
 
Stop.
*** Error code 1
 
Stop.
-----------------------------------------------

What is the cause of this error?
				Thanks,
				 Jon
				 (freeman@devon.prepnet.com)
Re: libg++ 2.2 problem
#102
Author: bothner
Date: Tue, 28 Jul 1992 11:21
36 lines
1765 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)

Try this patch to libg++/utils/gen-params.

	--Per Bothner
Cygnus Support     bothner@cygnus.com

===================================================================
RCS file: /rel/cvsfiles/devo/libg++/utils/gen-params,v
retrieving revision 1.15
diff -c -r1.15 gen-params
*** 1.15	1992/06/26 19:29:41
--- gen-params	1992/07/16 22:03:20
***************
*** 75,81 ****
    fi
  
    if test -n "${DOLLAR_IN_LABEL}" ; then
!     echo "#define ${macro_prefix} ${DOLLAR_IN_LABEL} ${DOLLAR_IN_LABEL}"
    elif test "`${CONFIG_NM} dummy.o | grep 'vt[$$]filebuf'`" != ""; then
      echo "#define ${macro_prefix}DOLLAR_IN_LABEL 1"
    elif test "`${CONFIG_NM} dummy.o | grep 'vt[.]filebuf'`" != ""; then
--- 75,81 ----
    fi
  
    if test -n "${DOLLAR_IN_LABEL}" ; then
!     echo "#define ${macro_prefix}DOLLAR_IN_LABEL ${DOLLAR_IN_LABEL}"
    elif test "`${CONFIG_NM} dummy.o | grep 'vt[$$]filebuf'`" != ""; then
      echo "#define ${macro_prefix}DOLLAR_IN_LABEL 1"
    elif test "`${CONFIG_NM} dummy.o | grep 'vt[.]filebuf'`" != ""; then
Re: libg++ 2.2 problem
#101
Author: Joe Buck
Date: Wed, 29 Jul 1992 01:06
24 lines
1082 bytes
In article <9207272047.AA14817@_devon.prepnet.com> you write:
>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)

There's a problem in configure for the HP; the following workaround
worked for me.  Ignore the threatening

/* AUTOMATICALLY GENERATED; DO NOT EDIT! */ 

warning and add the line

#define _G_DOLLAR_IN_LABEL 1

to _G_config.h in the src directory.



-- 
Joe Buck	jbuck@ohm.berkeley.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