Fixing gcc 3.3 compile failures -- fix for math/freefem

Sergey A. Osokin osa at FreeBSD.org
Mon Jul 21 01:13:45 PDT 2003


On Mon, Jul 21, 2003 at 12:48:40AM +0200, Simon Barner wrote:
> > > -    ifstream fin( path );
> > > +    std::ifstream fin( path );
> 
> > A much smaller patch could be produced with
> > 
> >   using namespace std;
> > 
> > as appropriate.
> > 
> > Have you checked with the upstream author to see which approach is
> > likely to be rolled into the distribution?
> 
> Actually, upgrading the port to the lastest freefem version would have
> been enough *doh* :o) (patch attached)
> 
> To answer your question: the freefem authors decided not to use the
> 'using namespace std' approach.

[patch skipped]

Can't compile freefem-3.5.7 with gcc-2.95.4 under RELENG_4,
any idea?

source='femParser.cpp' object='femParser.lo' libtool=yes  depfile='.deps/femParser.Plo' tmpdepfile='.deps/femParser.TPlo'  depmode=gcc /bin/sh ../../admin/depcomp  /bin/sh ../../libtool --mode=compile c++ -DHAVE_CONFIG_H  -I. -I. -I../..      -Wall  -O -pipe  -fforce-mem -fforce-addr -fomit-frame-pointer  -I/usr/X11R6/include -c -o femParser.lo `test -f 'femParser.cpp' || echo './'`femParser.cpp
rm -f .libs/femParser.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../.. -Wall -O -pipe -fforce-mem -fforce-addr -fomit-frame-pointer -I/usr/X11R6/include -c femParser.cpp -Wp,-MD,.deps/femParser.TPlo  -fPIC -DPIC -o .libs/femParser.lo
c++ -DHAVE_CONFIG_H -I. -I. -I../.. -Wall -O -pipe -fforce-mem -fforce-addr -fomit-frame-pointer -I/usr/X11R6/include -c femParser.cpp -Wp,-MD,.deps/femParser.TPlo -o femParser.o >/dev/null 2>&1
*** Error code 1
Stop in /usr/home/osa/src/freefem/work/freefem-3.5.7/freefem/fem.
*** Error code 1

-- 

Rgdz,                        /"\  ASCII RIBBON CAMPAIGN
Sergey Osokin aka oZZ,       \ /    AGAINST HTML MAIL
http://ozz.pp.ru/             X          AND NEWS
                             / \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 305 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20030721/abcd0827/attachment.bin


More information about the freebsd-ports mailing list