You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Walter Gonzalez <wa...@playstation.sony.com> on 2002/02/06 01:28:24 UTC
build/9729: Better support for debugging , do not use EXTRA_CFLAGS internally
>Number: 9729
>Category: build
>Synopsis: Better support for debugging , do not use EXTRA_CFLAGS internally
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Tue Feb 05 16:30:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: waldo@playstation.sony.com
>Release:
>Organization:
apache
>Environment:
Solaris SunOS 5.8
>Description:
Your debugging guide (http://httpd.apache.org/dev/debugging.html)
suggests adding the -g flag with EXTRA_CFLAGS .
However at the toplevel dir (ie: apache_1.3.23) doing the command:
% make EXTRA_CFLAGS=" -g"
Causes the build under src/main to not use apaci and possibly use the
wrong HTTPD_ROOT path. This is because src/main/Makefile has the line:
EXTRA_CFLAGS =`$(SRCDIR)/apaci`
Hence (properly) adding a debug flag is not quite as simple as the
debugging doc suggests.
>How-To-Repeat:
cd apache_1.3.23
./configure --prefix=/usr/foobar
make EXTRA_CFLAGS=" -g"
./src/httpd -V
<observe how the prefix didn't make it into the linked server binary>
>Fix:
The documentation should probably be either updated to say:
"Add the -g flag to EXTRA_CFLAGS in apache_1.3.23/src/Configuration *before*
running apache_1.3.23/configure , to ensure all Makefiles are generated properly. "
And/Or do *not* use EXTRA_CFLAGS internally and instead set apaci in another internal makefile variable. Reserving the EXTRA_* variable defines for user customization.
I would really suggest doing both, because there will be users like me that
may assume it's safe to redefine the EXTRA_* variables on the fly.
[And... Thankyou for all your efforts!]
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]