develooper Front page | perl.perl5.porters | Postings from March 2007

Re: g++ on FreeBSD

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
March 27, 2007 14:13
Subject:
Re: g++ on FreeBSD
Message ID:
20070327211343.GB5748@plum.flirble.org
On Tue, Mar 27, 2007 at 09:24:57PM +0100, Nicholas Clark wrote:
> On Tue, Mar 27, 2007 at 02:32:28PM -0400, Andy Dougherty wrote:
> > One reason Linux can get away with this is that it HAS_STRERROR is 
> > defined, so this section of perl.h never gets invoked.
> > 
> > On FreeBSD, with g++, what do you get for
> > 
> > 	grep err config.sh
> > 
> > (I'm particularly interested in d_strerror, but may eventually wonder 
> > about the others too, so I might as well see them all at once.)
> $ grep err config.sh
> 
> d_dlerror='define'
> d_strerrm='strerror(e)'
> d_strerror='define'
> d_strerror_r='define'
> d_syserrlst='define'
> i_neterrno='undef'
> strerror_r_proto='REENTRANT_PROTO_I_IBW'
> 
> Odd.

But if I use g++ as my C compiler:

d_dlerror='undef'
d_strerrm='((e)<0||(e)>=sys_nerr?"unknown":sys_errlist[e])'
d_strerror='undef'
d_strerror_r='undef'
d_syserrlst='define'
i_neterrno='undef'
strerror_r_proto='0'

mmm. Houston, we have a problem.

Nicholas Clark

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About