*BSD News Article 60219


Return to BSD News archive

#! rnews 2544 bsd
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!howland.reston.ans.net!torn!nott!bcarh189.bnr.ca!nrchh45.rich.nt.com!crchh327.rich.bnr.ca!rcisyk
From: rcisyk@bnr.ca (Rostyslav Cisyk)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Errors when compiling libg++-2.7.1
Date: 21 Jan 1996 16:49:55 GMT
Organization: Bell-Northern Research, Richardson, TX
Lines: 55
Message-ID: <4dtqrj$67d@crchh327.rich.bnr.ca>
NNTP-Posting-Host: crchhe94.rich.bnr.ca
X-Newsreader: TIN [version 1.2 PL2]


Hi,

I am trying to install the newer version of the GNU gcc compiler (I tried
2.7.1 and 2.7.2), and the libg++-2.7.1 shared library. The compiler compiles
and installs without any problems. However, each time I try to compile the
shared library with the compiler I just installed, no matter what I do I get
the following error:

/usr/tmp/libg++-2.7.1/gcc/xgcc -B/usr/tmp/libg++-2.7.1/gcc/ -c -g -O2
-fno-implicit-templates -nostdinc++ -I. -I./../../libio
-I/usr/tmp/libg++-2.7.1/libg++/src 
-I/usr/tmp/libg++-2.7.1/libg++/src/../../libio
-I/usr/tmp/libg++-2.7.1/libg++/src/../../libstdc++ -I/usr/tmp/libg++-
2.7.1/libg++/src/../src  -fpic SLList.cc -o pic/SLList.o
In file included from
/usr/tmp/libg++-2.7.1/libg++/src/../../libstdc++/std/cstdlib.h:6,
                 from 
/usr/tmp/libg++-2.7.1/libg++/src/../../libstdc++/cstdlib:5,
                 from std.h:24,
                 from builtin.h:32,
                 from SLList.cc:25:
/usr/include/stdlib.h:42: warning: abstract declarator used as declaration
/var/tmp/cc004260.s: Assembler messages:
/var/tmp/cc004260.s:1247: Error: Unknown pseudo-op:  `.weak'
gmake[2]: *** [SLList.o] Error 1

First I get this error when gcc tries to compile SLList.cc and DLList.cc,
then options.cc, etc.

Here's information about my setup:

machine type:				DX4-100, 16MB RAM
operating system:			FreeBSD 2.1.0
previous GNU gcc compiler:		2.6.3
current GNU assembler:			1.92.3

flags given to ./configure
when compiling the new compiler:	--prefix=/usr/local i386-freebsd

flags given to ./configure
when compiling the libg++-2.7.1:	--prefix=/usr/local --enable-shared \
					i386-freebsd

Can anybody tell me what I am doing wrong? I've tried this many times with
both 2.7.1 and 2.7.2 compiler and still have to idea as to why this is
happening.

Also, even though I specified --enable-shared (and even manually added
enable_shared=yes in configure.in), it still builds only static .a libraries.
How do I make it to build shared .so libraries?

Thanks for your help,
Rosty.