*BSD News Article 80744


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!pumpkin.pangea.ca!eru.mt.luth.se!bloom-beacon.mit.edu!news.mathworks.com!uunet!in3.uu.net!news.Arizona.EDU!news.arizona.edu!john
From: john@burdell (John Galbraith)
Newsgroups: comp.unix.bsd.freebsd.misc,gnu.g++.help,
Subject: g++ 2.7.2.1 and -frepo patch on FreeBSD 2.1.5
Date: 14 Oct 1996 18:44:27 GMT
Organization: The University of Arizona
Lines: 18
Distribution: world
Message-ID: <JOHN.96Oct14114427@burdell>
NNTP-Posting-Host: burdell.ece.arizona.edu
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:29245 gnu.g++.help:13609

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