wdoekes / asterisk-chan-dongle

chan_dongle channel driver for Huawei UMTS cards, works with Asterisk 14+
Other
299 stars 104 forks source link

FreeBSD iconv issue #65

Open kosfango opened 5 years ago

kosfango commented 5 years ago

Hi,

There is a little issue if libiconv installed from port collection: /usr/ports/converters/libiconv

[2019-03-20 13:13:33] WARNING[101751]: loader.c:583 struct ast_module load_dlop en(const char , const char , const char , int, unsigned int): Error loading m odule 'chan_dongle.so': /usr/local/lib/asterisk/modules/chan_dongle.so: Undefine d symbol "libiconv"

It seems, asterisk bult with libiconv from base system by default, but chan dongle bult with libiconv from port collection. If me remove libiconv from port collection and reconfigure/recompile chan_dongle, the problem is not reproduce. May be .configure script has some paramenetrs like --with-libiconv-from-base ?

Thanks

VasOleMil commented 1 year ago

1) ./bootstrap 2) ./configure LDFLAGS="-L /usr/local/lib" --with-astversion=18.14.0 (command asterisk -V) 3) add in Makefile block usage, line 43: CFLAGS = -g -O2 -O6 -Wno-out-of-line-declaration -fblocks 3) add in the end makefile line LIBS = /usr/local/lib/libiconv.so 4) gmake and copy your file to asterisk modules or use gmake install