[Home]

Summary:ASTERISK-08574: including a shipped header file based on includepath search doesn't make sense
Reporter:fix_the_monitoring_issue (n0-1)Labels:
Date Opened:2007-01-13 17:03:53.000-0600Date Closed:2007-01-13 23:19:49.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 100-internal_header_include_fix.patch
Description:As already explained to the asterisk-dev list, I am working for the FreeWRT project at Asterisk-1.4.0 integration and had some problems getting it to compile: in the code below main/db1-ast there are many references to db.h,
which is shipped by asterisk (main/db1-ast/include/db.h).
The problem in my eyes is that db.h is referenced on a global basis
(i.e. the includepath is searched for it). Now in fact, our build system
has a db.h in it's includedirs which is older. As this file is found
first (tried various ways of specifying CPPFLAGS), it breaks asterisk.

I attached a patch fixing this issue. It simply changes the include statements to
use a relative path to db.h.
Comments:By: Tilghman Lesher (tilghman) 2007-01-13 23:19:49.000-0600

Committed, revision 50781, 50782, 50783.