[Home]

Summary:ASTERISK-06257: app_sql_postgres fails to build (Asterisk SVN 1.2.4)
Reporter:heison (heison)Labels:
Date Opened:2006-02-05 16:25:38.000-0600Date Closed:2008-01-15 16:34:38.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) patch.txt
Description:make[1]: Entering directory `/usr/src/1.2/asterisk/apps'
gcc -pipe -I/usr/local/pgsql/include  -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE  -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS         -fomit-frame-pointer  -fPIC -c -o app_sql_postgres.o app_sql_postgres.c
app_sql_postgres.c:46:22: libpq-fe.h: No such file or directory


     
Changing the include statement yields a successful build:
#include "libpq-fe.h" becomes #include <postgresql/libpq-fe.h>  

or by applying the patch:

patch app_sql_postgres.c < patch.txt
                       
Comments:By: Russell Bryant (russell) 2006-02-08 19:36:09.000-0600

I have fixed this in the 1.2 branch in revision 9263 with a different patch.  If it doesn't fix it for you, please re-open this bug.

Thanks!

By: Digium Subversion (svnbot) 2008-01-15 16:34:22.000-0600

Repository: asterisk
Revision: 9262

U   branches/1.2/apps/Makefile

------------------------------------------------------------------------
r9262 | russell | 2008-01-15 16:34:22 -0600 (Tue, 15 Jan 2008) | 2 lines

add another location for postgresql headers (issue ASTERISK-6257)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=9262

By: Digium Subversion (svnbot) 2008-01-15 16:34:36.000-0600

Repository: asterisk
Revision: 9279

_U  team/oej/managerstuff/
U   team/oej/managerstuff/Makefile
U   team/oej/managerstuff/apps/Makefile
U   team/oej/managerstuff/apps/app_macro.c
U   team/oej/managerstuff/cdr/Makefile
U   team/oej/managerstuff/channels/chan_iax2.c
U   team/oej/managerstuff/channels/chan_oss.c
U   team/oej/managerstuff/logger.c
U   team/oej/managerstuff/res/res_odbc.c

------------------------------------------------------------------------
r9279 | oej | 2008-01-15 16:34:36 -0600 (Tue, 15 Jan 2008) | 42 lines

Merged revisions 9073,9086,9156,9232-9233,9246,9262 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r9073 | mattf | 2006-02-02 17:12:13 +0100 (Thu, 02 Feb 2006) | 2 lines

Fix for (ASTERISK-6149), potential (highly unlikely) memory leak in res_odbc

........
r9086 | kpfleming | 2006-02-02 19:37:04 +0100 (Thu, 02 Feb 2006) | 2 lines

don't override ASTERISKVERSIONNUM to 000000 for non-svn builds

........
r9156 | tilghman | 2006-02-05 18:10:19 +0100 (Sun, 05 Feb 2006) | 2 lines

Bug 6176 - Fix race condition

........
r9232 | mogorman | 2006-02-08 23:12:34 +0100 (Wed, 08 Feb 2006) | 4 lines

Make logger report error,warning,notice if logger.conf
not found, also updated chan_oss to give correct
error message if its config file is not found.

........
r9233 | tilghman | 2006-02-08 23:34:38 +0100 (Wed, 08 Feb 2006) | 2 lines

Leave it to RH/CentOS to put the freetds headers in a completely nonstandard location.

........
r9246 | russell | 2006-02-09 02:24:55 +0100 (Thu, 09 Feb 2006) | 2 lines

reload peercontext on iax2 reload (issue ASTERISK-6279)

........
r9262 | russell | 2006-02-09 03:31:21 +0100 (Thu, 09 Feb 2006) | 2 lines

add another location for postgresql headers (issue ASTERISK-6257)

........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=9279

By: Digium Subversion (svnbot) 2008-01-15 16:34:38.000-0600

Repository: asterisk
Revision: 9281

_U  team/oej/metermaids/
U   team/oej/metermaids/Makefile
U   team/oej/metermaids/apps/Makefile
U   team/oej/metermaids/apps/app_macro.c
U   team/oej/metermaids/cdr/Makefile
U   team/oej/metermaids/channels/chan_iax2.c
U   team/oej/metermaids/channels/chan_oss.c
U   team/oej/metermaids/logger.c
U   team/oej/metermaids/res/res_odbc.c

------------------------------------------------------------------------
r9281 | oej | 2008-01-15 16:34:38 -0600 (Tue, 15 Jan 2008) | 42 lines

Merged revisions 9073,9086,9156,9232-9233,9246,9262 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r9073 | mattf | 2006-02-02 17:12:13 +0100 (Thu, 02 Feb 2006) | 2 lines

Fix for (ASTERISK-6149), potential (highly unlikely) memory leak in res_odbc

........
r9086 | kpfleming | 2006-02-02 19:37:04 +0100 (Thu, 02 Feb 2006) | 2 lines

don't override ASTERISKVERSIONNUM to 000000 for non-svn builds

........
r9156 | tilghman | 2006-02-05 18:10:19 +0100 (Sun, 05 Feb 2006) | 2 lines

Bug 6176 - Fix race condition

........
r9232 | mogorman | 2006-02-08 23:12:34 +0100 (Wed, 08 Feb 2006) | 4 lines

Make logger report error,warning,notice if logger.conf
not found, also updated chan_oss to give correct
error message if its config file is not found.

........
r9233 | tilghman | 2006-02-08 23:34:38 +0100 (Wed, 08 Feb 2006) | 2 lines

Leave it to RH/CentOS to put the freetds headers in a completely nonstandard location.

........
r9246 | russell | 2006-02-09 02:24:55 +0100 (Thu, 09 Feb 2006) | 2 lines

reload peercontext on iax2 reload (issue ASTERISK-6279)

........
r9262 | russell | 2006-02-09 03:31:21 +0100 (Thu, 09 Feb 2006) | 2 lines

add another location for postgresql headers (issue ASTERISK-6257)

........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=9281