Василий, проблема в том, что модуль собирается.
Но видимо как-то хитро и динамически (я имею ввиду функции типа iconv_open
и т.д)
Владимир, вот вам логи от configure:

root@test-10:~/asterisk-chan-dongle-asterisk11 # ./configure CC=gcc44
checking build system type... amd64-unknown-freebsd10.0
checking host system type... amd64-unknown-freebsd10.0
checking target system type... amd64-unknown-freebsd10.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc44 accepts -g... yes
checking for gcc44 option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc44... none
checking how to run the C preprocessor... gcc44 -E
checking for strip... strip
checking for rm... rm
checking for library containing iconv... none required
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking whether asterisk.h in ../include... no
checking whether asterisk.h in /usr/include... no
checking whether asterisk.h in /usr/local/include... yes
checking asterisk.h usability... yes
checking asterisk.h presence... yes
checking for asterisk.h... yes
checking whether iconv.h in /usr/include... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for iconv use const inbuf... no
checking for iconv_t in iconv.h... yes
checking for AST_CONTROL_SRCCHANGE in asterisk/frame.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking for ssize_t... yes
checking for uint64_t... yes
checking whether CC supports -fvisibility=hidden... yes
checking whether CC supports -fPIC... yes
checking whether CC supports -Wall... yes
checking whether CC supports -Wextra... yes
checking whether CC supports -MD -MT conftest.o -MF /dev/null -MP... yes
checking whether DESTDIR is /usr/lib/asterisk/modules... no
checking whether DESTDIR is /usr/local/lib/asterisk/modules... yes
checking for working memcmp... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for memmem... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strncasecmp... yes
checking for strtol... yes
checking for realpath... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands



2014-02-04 Vasiliy P. Melnik <ba...@vpm.net.ua>

> а может так ?
>
> http://mysyura.in.ua/chan_dongle-asterisk-10/
>
> 4 февраля 2014 г., 14:09 пользователь Nikita Olenets
> <z...@zeon.kiev.ua> написал:
> > Приветствую, коллеги!
> >
> > С выходом в релиз 10-ой ветки FreeBSD, появилась возможность использовать
> > графический адаптер на ASUS E45-M1 PRO,
> > А заодно и перенести весь функционал с домашнего серверочка на эту
> систему.
> > Сейчас систему выглядит как 10.0-RELEASE FreeBSD (amd64), старая система
> > 9.2-PRERELEASE FreeBSD (i386)
> > Это была преамбула :)
> > А вопрос заключается в следующем, на старой системе имеется связка
> > asterisk+chan_dongle, работает отлично.
> > В новой системе модуль для астериска вообще не собирается (так как в
> 10-ке
> > по умолчанию clang)
> > Было проделано два эксперимента:
> > 1. Модуль был собран на 10-ке с помощью gcc44 (из портов)
> > 2. Модуль был собран на 9.2 (amd64)с помощью (из базовой системы)
> > Теперь о результатах.
> > В связи с тем, что начиная с 2013-10-08 (254273), в 10-ке используется
> уже в
> > базовой системе встроенный iconv
> > Ошибка во обоих случаях одинаковая. При попытке загрузить собранный
> модуль
> > chan_dongle в asterisk:
> > test-10*CLI> module load chan_dongle.so
> > Unable to load module chan_dongle.so
> > Command 'module load chan_dongle.so' failed.
> > [Feb  4 14:06:53] WARNING[100125]: loader.c:486 struct ast_module
> > *load_dynamic_module(const char *, unsigned int, struct ast_h: Error
> loading
> > module 'chan_dongle.so': /usr/local/lib/asterisk/modules/chan_dongle.so:
> > Undefined symbol "iconv_open"
> > [Feb  4 14:06:53] WARNING[100125]: loader.c:902 enum
> ast_module_load_result
> > load_resource(const char *, unsigned int, struct as: Module
> 'chan_dongle.so'
> > could not be loaded.
> > Прошу направить в нужном направлении, куда копать?
> > Благодарю!
> >
> > --
> > Head of network resource management group
> > Nikita Olenets
> > z...@zeon.kiev.ua
> > ZEON-UANIC
> > ZEON-RIPE
>



-- 
Head of network resource management group
Nikita Olenets
z...@zeon.kiev.ua
ZEON-UANIC
ZEON-RIPE

Ответить