*BSD News Article 92302


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!ais.net!ameritech.net!uunet!in1.uu.net!204.245.3.50!news.primenet.com!NewsWatcher!user
From: soren@primenet.com (Soren Ragsdale)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: 2.2.1 & gcc
Date: 29 Mar 1997 12:40:06 -0700
Organization: Leprechauns for Zeus
Lines: 28
Message-ID: <soren-2903971240280001@172.17.1.4>
X-Posted-By: @207.98.186.172 (soren)
X-newsreader: MT-NewsWatcher 2.2.2
X-Pants-Wearing: false
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:38015

I've noticed an odd problem with FreeBSD 2.2.1:

I got the source for both gcc 2.7.2.1 and 2.7.2.2 (yes I realize that
2.7.2.1 is already a part of the standard install and 2.7.2.2 is not
especially different - bear with me) from prep.ai.mit.edu.  I compiled and
installed 2.7.2.2, and renamed /usr/bin/gcc and /usr/bin/cc to other names
(cc.old, gcc.old) so that it would start using the newly compiled gcc that
gets put into /usr/local/bin.

I then got the source for libg++-2.7.2 from prep.ai.mit.edu and tried to
compile it.  Compiling fails, because:

----------------------------------------
vasprintf.c: In function `vasprintf':
vasprintf.c:122: argument `args' doesn't match prototype
/usr/include/stdio.h:300: prototype declaration
*** Error code 1
----------------------------------------

The odd thing about this is that, although both gcc 2.7.2.1 and 2.7.2.2
(which I compiled myself) fail to compile this, the gcc 2.7.2.1 that's in
/usr/bin has no problem with it.  I'm a bit curious as to why something as
widely ported as gcc would have a problem here.

What prompted me to do this in the first place: attempting to compile mSQL
2.0b5 fails on FreeBSD because it can't find a function called
`_strptime'.  I started trying to recompile and install gcc and libg++ to
see whether they might have it in libg++.