[asterisk-bugs] [Asterisk 0017720]: Autoconf issues PGSQL_INCLUDE, etc.
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Jul 28 19:25:54 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-28 19:25 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.
======================================================================
----------------------------------------------------------------------
(0125235) pprindeville (reporter) - 2010-07-28 19:25
https://issues.asterisk.org/view.php?id=17720#c125235
----------------------------------------------------------------------
No, it's a prelude to a discussion.
I'm saying that this is potentially a significant amount of work, and
while it probably should all be fixed in one fell swoop (to simplify
testing and limit the potential for regressions), the question is do we
want to fix this here and now or do we want to work around it to get 1.8
released, and then come back and fix it properly?
If we want to fix it here and now, then we should have that discussion.
Issue History
Date Modified Username Field Change
======================================================================
2010-07-28 19:25 pprindeville Note Added: 0125235
======================================================================
More information about the asterisk-bugs
mailing list