Не могу добавить модуль в freeswitch поставленный из пакетов. Прошу помощи.
Что делал:
1)
apt-get update && apt-get install -yq gnupg2 wget lsb-release
wget -O - https://files.freeswitch.org/repo/deb/debian-release/fsstretch-archive-keyring.asc | apt-key add -
echo "deb http://files.freeswitch.org/repo/deb/debian-release/ `lsb_release -sc` main" > /etc/apt/sources.list.d/freeswitch.list
echo "deb-src http://files.freeswitch.org/repo/deb/debian-release/ `lsb_release -sc` main" >> /etc/apt/sources.list.d/freeswitch.list
apt-get update
apt-get build-dep freeswitch
cd /usr/src/
git clone https://github.com/signalwire/freeswitch.git -bv1.10 freeswitch
cd freeswitch
git config pull.rebase true
./bootstrap.sh -j
./configure
make
2)
cd ./src/mod/event_handlers/mod_cdr_pg_csv/
make
make install ругается
make[1]: Entering directory '/usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv'
make[1]: Nothing to be done for 'install-exec-am'.
/usr/bin/mkdir -p '/usr/local/freeswitch/mod'
/bin/bash /usr/src/freeswitch/libtool --mode=install /usr/bin/install -c mod_cdr_pg_csv.la '/usr/local/freeswitch/mod'
libtool: warning: relinking 'mod_cdr_pg_csv.la'
libtool: install: (cd /usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv; /bin/bash "/usr/src/freeswitch/libtool" --silent --tag CC --mode=relink gcc -I/usr/include/uuid -I/usr/src/freeswitch/src/include -I/usr/src/freeswitch/src/include -I/usr/src/freeswitch/libs/libteletone/src -fPIC -ffast-math -Werror -Wno-unused-result -Wno-misleading-indentation -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DCJSON_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -DHAVE_OPENSSL -Wall -std=c99 -pedantic -Wdeclaration-after-statement -I/usr/src/freeswitch/src/include -I/usr/src/freeswitch/src/include -I/usr/src/freeswitch/libs/libteletone/src -fPIC -ffast-math -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DCJSON_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -I/usr/include/postgresql -g -O2 -avoid-version -module -no-undefined -shared -lpq -luuid -lm -lpq -o mod_cdr_pg_csv.la -rpath /usr/local/freeswitch/mod mod_cdr_pg_csv_la-mod_cdr_pg_csv.lo /usr/src/freeswitch/libfreeswitch.la -lssl -lcrypto )
/usr/bin/ld: cannot find -lfreeswitch
collect2: error: ld returned 1 exit status
libtool: error: error: relink 'mod_cdr_pg_csv.la' with the above command before installing it
make[1]: *** [Makefile:645: install-modLTLIBRARIES] Error 1
make[1]: Leaving directory '/usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv'
make: *** [Makefile:830: install-am] Error 2libfreeswitch.la -lssl -lcrypto )
/usr/bin/ld: cannot find -lfreeswitch
collect2: error: ld returned 1 exit status
libtool: error: error: relink 'mod_cdr_pg_csv.la' with the above command before installing it
make[1]: *** [Makefile:645: install-modLTLIBRARIES] Error 1
make[1]: Leaving directory '/usr/src/freeswitch/src/mod/event_handlers/mod_cdr_pg_csv'
make: *** [Makefile:830: install-am] Error 2