[asterisk-bugs] [Asterisk 0017720]: Autoconf issues PGSQL_INCLUDE, etc.

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jul 29 10:56:28 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17720 
====================================================================== 
Reported By:                pprindeville
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17720
Category:                   Core/BuildSystem
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 279565 
Request Review:              
====================================================================== 
Date Submitted:             2010-07-26 15:12 CDT
Last Modified:              2010-07-29 10:56 CDT
====================================================================== 
Summary:                    Autoconf issues PGSQL_INCLUDE, etc.
Description: 
Looking into makeopts, I see:

GTK2_INCLUDE=-pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12  
IMAP_TK_INCLUDE=-I/home/philipp/kernel2/build_i586/staging_dir/uw-imap/c-client
MYSQLCLIENT_INCLUDE=-I/usr/include/mysql  -g -pipe -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -D_GNU_SOURCE
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv
-fPIC   -DUNIV_LINUX
NETSNMP_INCLUDE=-DNETSNMP_ENABLE_IPV6 -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_RPM_4_4_COMPAT -Ulinux
-Dlinux=linux -I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE
-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/lib64/perl5/CORE -I. -I/usr/include
PGSQL_INCLUDE=-I/usr/include


and I see several issues going on here.

One:  you should be able to override the directory(ies) that are looking
into for NETSNMP_INCLUDE, GTK2_INCLUDE, etc. without affecting the other
compiler flags.

This needs to be broken into XXX_INCLUDE and XXX_CFLAGS so as to be
individually settable.

Two: PGSQL_INCLUDE can't be specified on the command line arguments to
configure, because there's no AC_SUBST(PGSQL_INCLUDE) in configure.ac.

It seems the value can only be set by running pg-config:

asterisk-trunk/configure.ac:   PGSQL_includedir=`${PG_CONFIG}
--includedir`

this seems to be a recurring problem.  It would be nice to sit down and
systematically resolve this issue for all packages and subsystems.


====================================================================== 

---------------------------------------------------------------------- 
 (0125262) lmadsen (administrator) - 2010-07-29 10:56
 https://issues.asterisk.org/view.php?id=17720#c125262 
---------------------------------------------------------------------- 
Again, you need to bring this up on the asterisk-dev mailing list. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-07-29 10:56 lmadsen        Note Added: 0125262                          
======================================================================




More information about the asterisk-bugs mailing list