[asterisk-bugs] [Asterisk 0016342]: [patch] configure fails to detect spandsp/expose.h when not in system include path

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Dec 8 09:20:21 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16342 
====================================================================== 
Reported By:                bklang
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16342
Category:                   Core/BuildSystem
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-11-28 17:04 CST
Last Modified:              2009-12-08 09:20 CST
====================================================================== 
Summary:                    [patch] configure fails to detect spandsp/expose.h
when not in system include path
Description: 
configure has a flag to specify the path to spandsp, if it is not installed
into the system default path.  This works well for most of the spandsp
checks (such as spandsp.h), however it fails to properly detect the
spandsp/expose.h header.  This is partly due to the fact that the autoconf
check is different (AC_CHECK_HEADER vs. AST_EXT_LIB_CHECK) and so does not
inherit the proper CFLAGS.
====================================================================== 

---------------------------------------------------------------------- 
 (0114912) bklang (reporter) - 2009-12-08 09:20
 https://issues.asterisk.org/view.php?id=16342#c114912 
---------------------------------------------------------------------- 
Some more information on this:
configure does not find the spandsp/expose.h header because it is still
not using the include path provided by --with-spandsp.  Snip from
config.log:
configure:29802: checking spandsp/expose.h usability
configure:29819: gcc -c -g -O2    conftest.c >&5
conftest.c:238:28: spandsp/expose.h: No such file or directory
configure:29825: $? = 1
configure: failed program was:
<snip many lines of defines>
| #include <spandsp/expose.h>
configure:29839: result: no
configure:29843: checking spandsp/expose.h presence
configure:29858: gcc -E    conftest.c
conftest.c:205:28: spandsp/expose.h: No such file or directory

Also: I believe that for spandsp/expose.h to be included, you will first
need to include spandsp.h, which does not currently happen in conftest.c 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-08 09:20 bklang         Note Added: 0114912                          
======================================================================




More information about the asterisk-bugs mailing list