*BSD News Article 80730


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.mel.aone.net.au!usenet
From: Tim Liddelow <tim@cst.com.au>
Newsgroups: comp.unix.bsd.freebsd.misc,gnu.g++.help,
Subject: Re: g++ 2.7.2.1 and -frepo patch on FreeBSD 2.1.5
Date: Tue, 15 Oct 1996 10:58:28 +1000
Organization: Creative Software Technologies
Lines: 36
Message-ID: <3262E1B4.695678E2@cst.com.au>
References: <JOHN.96Oct14114427@burdell>
NNTP-Posting-Host: malibu.cst.com.au
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0 (X11; I; FreeBSD 2.1.0-RELEASE i386)
To: John Galbraith <john@burdell>
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:29250 gnu.g++.help:13610

John Galbraith wrote:
> 
> I have downloaded the latest version of g++ (from the main gnu
> archives), applied the template repository patch from cygnus(?), and
> compiled on FreeBSD-2.1.5.  I have used this same compiler and patch
> successfully on HPUX 9.05, but the FreeBSD platform is more pleasant
> to work on so I want to move my existing code to FreeBSD.  When
> programs are compiled with -frepo, the .rpo files are generated (I
> assume correctly).  However, the linker does not recompile the files
> to generate the missing template instantiations, so I get a slew of
> link errors.  On HPUX (working successfully) it usually says "collect2
> recompiling foobar.cc" or something like that for a while and doesn't
> generate link errors.  It would seem that the cygnus patch did not
> work on collect2 on FreeBSD, or maybe my paths are set up wrong
> (although I have already looked into this possibility) and g++ 2.7.2.1
> is using the stock 2.6.3 collect2 that comes in the FreeBSD binary
> distribution.  Is anybody else having/not having this problem?
> 
> John

You can obtain a patch I created for the BSDs at
ftp://ftp.cst.com.au/pub/gcc-2.7.2-repo-bsd.gz

Just apply this patch instead of the other repo-patch, rebuild and
things should work...:)

Cheers
Tim.
-- 
==========================================================================
 Tim Liddelow                     http://www.cst.com.au/~tim   
 Senior Software Engineer                                            
 Creative Software Technologies   Multimedia VideoConferencing 
 Phone:    +61 3 9563 4110        Unix, Win 32, X Window System 
 email:    tim@cst.com.au         C++, C, Web, consulting
==========================================================================