[Freeswitch-users] PGSQL - Support in Core. - Error During configure

David | StyleFlare david at styleflare.com
Sun Nov 4 14:32:27 MSK 2012


I am trying to build latest freeswitch from master.

I have the --enable-postgres... flag = true when I run config

I get this error message.

checking whether to include odbc... no
checking for pg_config... /usr/local/pgsql/bin/pg_config
checking for PostgreSQL libraries... checking for PQgetvalue in -lpq... no
configure: error: no usable libpq; please install PostgreSQL devel 
package or equivalent


IN MY "config.log"

I see

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "freeswitch"
#define PACKAGE_TARNAME "freeswitch"
#define PACKAGE_VERSION "1.3.0"
#define PACKAGE_STRING "freeswitch 1.3.0"
#define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
#define PACKAGE "libfreeswitch"
#define VERSION "0.1"
#define SWITCH_MOD_DIR "/usr/local/freeswitch/mod"
#define SWITCH_RUN_DIR "/usr/local/freeswitch/run"
#define SWITCH_LOG_DIR "/usr/local/freeswitch/log"
#define SWITCH_DB_DIR "/usr/local/freeswitch/db"
#define SWITCH_HTDOCS_DIR "/usr/local/freeswitch/htdocs"
#define SWITCH_SOUNDS_DIR "/usr/local/freeswitch/sounds"
#define SWITCH_GRAMMAR_DIR "/usr/local/freeswitch/grammar"
#define SWITCH_SCRIPT_DIR "/usr/local/freeswitch/scripts"
#define SWITCH_RECORDINGS_DIR "/usr/local/freeswitch/recordings"
#define SWITCH_CONF_DIR "/usr/local/freeswitch/conf"
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"
#define DEBUG /**/
#define SIZEOF_LONG 8
#define SWITCH_HAVE_PGSQL 1
#define POSTGRESQL_VERSION "9.2.1"
#define POSTGRESQL_MAJOR_VERSION 9
#define POSTGRESQL_MINOR_VERSION 2
#define POSTGRESQL_PATCH_VERSION 1

configure: exit 1

Here is the output of my pg_config

BINDIR = /usr/local/pgsql/bin
DOCDIR = /usr/local/pgsql/share/doc
HTMLDIR = /usr/local/pgsql/share/doc
INCLUDEDIR = /usr/local/pgsql/include
PKGINCLUDEDIR = /usr/local/pgsql/include
INCLUDEDIR-SERVER = /usr/local/pgsql/include/server
LIBDIR = /usr/local/pgsql/lib
PKGLIBDIR = /usr/local/pgsql/lib
LOCALEDIR = /usr/local/pgsql/share/locale
MANDIR = /usr/local/pgsql/share/man
SHAREDIR = /usr/local/pgsql/share
SYSCONFDIR = /usr/local/pgsql/etc
PGXS = /usr/local/pgsql/lib/pgxs/src/makefiles/pgxs.mk
CONFIGURE =
CC = gcc
CPPFLAGS = -D_GNU_SOURCE
CFLAGS = -O2 -Wall -Wmissing-prototypes -Wpointer-arith 
-Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute 
-Wformat-security -fno-strict-aliasing -fwrapv
CFLAGS_SL = -fpic
LDFLAGS = -Wl,--as-needed 
-Wl,-rpath,'/usr/local/pgsql/lib',--enable-new-dtags
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgport -lz -lreadline -lcrypt -ldl -lm
VERSION = PostgreSQL 9.2.1


Any ideas where I am going wrong?

Thanks.





Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list