develooper Front page | perl.perl5.porters | Postings from May 2004

Re: [perl #29591] "Recompile perl with -DDEBUGGING" when -DDEBUGGING enabled

Thread Previous | Thread Next
Nicholas Clark
May 15, 2004 07:33
Re: [perl #29591] "Recompile perl with -DDEBUGGING" when -DDEBUGGING enabled
Message ID:
On Sat, May 15, 2004 at 04:42:55AM -0000, scott @ slowass. net wrote:

Thanks for this report.

> $ perl -D8
> Recompile perl with -DDEBUGGING to use -D switch (did you mean -d ?)

> I don't believe that the one local patch is responsible.

Nor do I.

>     config_args='-de -Dusedevel -DDEBUGGING'

>     cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/pkg/include -I/usr/local/include',

That diagnostic message from perl is bad, in that it's unclear about where
that -DDEBUGGING is needed, and hence open to misinterpretation. What it meant
was that one should recompile with -DDEBUGGING in the flags to the C compiler,
not to Configure. What you need to do is either edit the in your
existing build tree to add -DDEBUGGING to both the ccflags and cppflags
lines (then run ./Configure -S then re-run make). Or blow the whole lot away
(or at least delete and and re-configure with
-Accflags=-DDEBUGGING and remake.
Or alternatively re-configure with -Doptimize=-g which will also turn on
-DDEBUGGING in the C compiler flags.

I'm not sure of a good rewording for that message.

Nicholas Clark

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About