[Freeswitch-users] Compile with PostgreSQL, postgresql build with prefix.

Mimiko vbvbrj at gmail.com
Thu Nov 15 19:31:22 MSK 2012


On 15.11.2012 11:02, Anton Kvashenkin wrote:
> You should install libpq-dev.
>

Yes, I know, but I written, I've compiled PostgreSQL from sources. 
Anyway, I compiled PostgreSQL with --disable-shared option, so shared 
libs were not created. For now ./configure is running well with:

export PATH=$PATH:/opt/postgresql/bin && \
./configure --enable-static --with-openssl --enable-core-odbc-support 
--enable-portable-binary \
--enable-zrtp --prefix=/opt/freeswitch --enable-core-pgsql-support 
--enable-static --enable-shared \
LDFLAGS="-Wl,-R,\\\$\${ORIGIN}/../lib:\\\$\${ORIGIN}/../lib/x86_64-linux-gnu 
-L/lib -L/usr/lib -L/opt/postgresql/lib" \
CPPFLAGS="-I/usr/include -I/opt/postgresql/include"

But I get errors on make:

libtool: link: ranlib .libs/libcurl.a
libtool: link: ( cd ".libs" && rm -f "libcurl.la" && ln -s 
"../libcurl.la" "libcurl.la" )
make[3]: Leaving directory `/home/mimiko/src/freeswitch/libs/curl/lib'
make[2]: Leaving directory `/home/mimiko/src/freeswitch/libs/curl/lib'
Making all in src
make[2]: Entering directory `/home/mimiko/src/freeswitch/libs/curl/src'
make  all-am
make[3]: Entering directory `/home/mimiko/src/freeswitch/libs/curl/src'
make[3]: Leaving directory `/home/mimiko/src/freeswitch/libs/curl/src'
make[2]: Leaving directory `/home/mimiko/src/freeswitch/libs/curl/src'
make[2]: Entering directory `/home/mimiko/src/freeswitch/libs/curl'
make[2]: Nothing to be done for `all-am'.
make[2]: Leaving directory `/home/mimiko/src/freeswitch/libs/curl'
make[1]: Leaving directory `/home/mimiko/src/freeswitch/libs/curl'
cat /home/mimiko/src/freeswitch/src/include/switch_cpp.h | perl 
/home/mimiko/src/freeswitch/build/strip.pl > 
/home/mimiko/src/freeswitch/src/include/switch_swigable_cpp.h
make "OUR_MODULES=$(if test -z "" ; then tmp_mods="$(grep -v "#" 
/home/mimiko/src/freeswitch/modules.conf | sed -e "s|^.*/||" | sort | 
uniq )"; else tmp_mods="" ; fi ; mods="$(for i in $tmp_mods ; do echo 
$i-all ; done )"; echo $mods )" "OUR_CLEAN_MODULES=$(if test -z "" ; 
then tmp_mods="$(grep -v "#" /home/mimiko/src/freeswitch/modules.conf | 
sed -e "s|^.*/||" | sort | uniq )"; else tmp_mods="" ; fi ; mods="$(for 
i in $tmp_mods ; do echo $i-clean ; done )"; echo $mods )" 
"OUR_INSTALL_MODULES=$(if test -z "" ; then tmp_mods="$(grep -v "#" 
/home/mimiko/src/freeswitch/modules.conf | sed -e "s|^.*/||" | sort | 
uniq )"; else tmp_mods="" ; fi ; mods="$(for i in $tmp_mods ; do echo 
$i-install ; done)"; echo $mods )" "OUR_UNINSTALL_MODULES=$(if test -z 
"" ; then tmp_mods="$(grep -v "#" 
/home/mimiko/src/freeswitch/modules.conf | sed -e "s|^.*/||" | sort | 
uniq )"; else tmp_mods="" ; fi ; mods="$(for i in $tmp_mods ; do echo 
$i-uninstall ; done)"; echo $mods )" 
"OUR_DISABLED_MODULES=$(tmp_mods="$(grep "#" 
/home/mimiko/src/freeswitch/modules.conf | grep -v "##" | sed -e 
"s|^.*/||" | sort | uniq )"; mods="$(for i in $tmp_mods ; do echo $i-all 
; done )"; echo $mods )" "OUR_DISABLED_CLEAN_MODULES=$(tmp_mods="$(grep 
"#" /home/mimiko/src/freeswitch/modules.conf | grep -v "##" | sed -e 
"s|^.*/||" | sort | uniq )";  mods="$(for i in $tmp_mods ; do echo 
$i-clean ; done )"; echo $mods )" 
"OUR_DISABLED_INSTALL_MODULES=$(tmp_mods="$(grep "#" 
/home/mimiko/src/freeswitch/modules.conf | grep -v "##" | sed -e 
"s|^.*/||" | sort | uniq )"; mods="$(for i in $tmp_mods ; do echo 
$i-install ; done)"; echo $mods )" 
"OUR_DISABLED_UNINSTALL_MODULES=$(tmp_mods="$(grep "#" 
/home/mimiko/src/freeswitch/modules.conf | grep -v "##" | sed -e 
"s|^.*/||" | sort | uniq )"; mods="$(for i in $tmp_mods ; do echo 
$i-uninstall ; done)"; echo $mods )" `test -n "" || echo -s` all-recursive
cc1: warnings being treated as errors
src/switch.c: In function Б─≤mainБ─≥:
src/switch.c:667: error: implicit declaration of function Б─≤rpl_mallocБ─≥
src/switch.c:667: error: cast to pointer from integer of different size
src/switch.c:683: error: cast to pointer from integer of different size
src/switch.c:698: error: cast to pointer from integer of different size
src/switch.c:715: error: cast to pointer from integer of different size
src/switch.c:731: error: cast to pointer from integer of different size
src/switch.c:747: error: cast to pointer from integer of different size
src/switch.c:762: error: cast to pointer from integer of different size
src/switch.c:777: error: cast to pointer from integer of different size
src/switch.c:792: error: cast to pointer from integer of different size
src/switch.c:807: error: cast to pointer from integer of different size
src/switch.c:822: error: cast to pointer from integer of different size
src/switch.c:837: error: cast to pointer from integer of different size
src/switch.c:852: error: cast to pointer from integer of different size
src/switch.c:869: error: cast to pointer from integer of different size
make[1]: *** [freeswitch-switch.o] Error 1
make: *** [all] Error 2


Why is this?

-- 
Mimiko desu.



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