Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.97k stars 555 forks source link

Re: Not OK: perl v5.6.1 +fools-gold on darwin 1.3 (UNINSTALLED) #3812

Closed p5pRT closed 22 years ago

p5pRT commented 23 years ago

Migrated from rt.perl.org#6736 (status was 'resolved')

Searchable as RT6736$

p5pRT commented 23 years ago

From @doughera88

On Wed\, Apr 04\, 2001 at 10​:12​:12PM -0400\, schinder@​pobox.com wrote​:

The following patch allows Errno.pm to build correctly on Mac OS X (I don't know whether it will break other platforms)​:

macosx% diff -u ext/Errno/Errno_pm.PL~ ext/Errno/Errno_pm.PL --- ext/Errno/Errno_pm.PL~ Sun Mar 18 22​:03​:34 2001 +++ ext/Errno/Errno_pm.PL Wed Apr 4 21​:32​:40 2001 @​@​ -31\,7 +31\,7 @​@​ }
} elsif ($Config{gccversion} ne '') { # With the -dM option\, gcc outputs every #define it finds - unless(open(FH\,"$Config{cc} -E -dM $file |")) { + unless(open(FH\,"$Config{cc} -E -dM -traditional-cpp $file |")) {

Would gcc exports step forward? How long back does the -traditional-cpp support go?

I see -traditional-cpp in a patched-up gcc-2.7.2 installation\, but I can't say for sure that it would be in a pristine version.

I am pretty sure that a plain old -traditional goes back a very long way\, perhaps even back to the gcc-1.x days. It's definitely used by perl4's Configure. Since we're explicitly invoking the preprocessor anyway with -E\, the differences between -traditional and -traditional-cpp are irrelevant.

I'd recommend -traditional.

However\, for 5.6.1\, I'd be really\, really cautious and make this conditional on Mac OS X. Who knows what vendor files will be getting included and parsed\, and with -traditional\, gcc will not define __STDC__ and may thus take a slightly different path through all system include files.

p5pRT commented 23 years ago

From @jhi

I'm not touching 5.6.1 at this point lest a tall dark man from Seattle whack my fingers with a maintenance pumpkin​:-)

What I did is that for bleadperl I added $Config{cppflags} to the above open() incantation and then added cppflags '-traditional-cpp' to hints/darwin.sh.

conditional on Mac OS X. Who knows what vendor files will be getting included and parsed\, and with -traditional\, gcc will not define __STDC__ and may thus take a slightly different path through all system include files.

-- Andy Dougherty doughera@​lafayette.edu Dept. of Physics Lafayette College\, Easton PA 18042

p5pRT commented 23 years ago

From @jhi

I'm not touching 5.6.1 at this point lest a tall dark man from Seattle whack my fingers with a maintenance pumpkin​:-)

What I did is that for bleadperl I added $Config{cppflags} to the above open() incantation and then added cppflags '-traditional-cpp' to hints/darwin.sh.

conditional on Mac OS X. Who knows what vendor files will be getting included and parsed\, and with -traditional\, gcc will not define __STDC__ and may thus take a slightly different path through all system include files.

-- Andy Dougherty doughera@​lafayette.edu Dept. of Physics Lafayette College\, Easton PA 18042

p5pRT commented 22 years ago

From @doughera88

fixed in 5.8.0.

p5pRT commented 22 years ago

@doughera88 - Status changed from 'open' to 'resolved'