[asterisk-users] Asterisk Web Meetme module not loading

Glen Ganderton glenganderton at gmail.com
Tue Sep 1 00:19:47 CDT 2009


On Tue, Sep 1, 2009 at 3:06 PM, Matt Riddell <lists at venturevoip.com> wrote:

> On 1/09/09 4:54 PM, Glen wrote:
> >>>>> Parsing '/etc/asterisk/cbmysql.conf': Found
> >>>>> asterisk: symbol lookup error:
> /usr/lib/asterisk/modules/app_cbmysql.so:
> >>>>> undefined symbol: mysql_init
> >> ldd /usr/lib/asterisk/modules/app_cbmysql.so
> > This is the output
> >
> > linux-gate.so.1 =>  (0xffffe000)
> > libpthread.so.0 =>  /lib/libpthread.so.0 (0xb7f60000)
> > libc.so.6 =>  /lib/libc.so.6 (0xb7e2d000)
> > /lib/ld-linux.so.2 (0x80000000)
>
> Er weird - so it's not even requesting a link to the mysql library.
>
> Looks like the linking somehow went wrong - if it can't find mysql_init
> and it doesn't look for it then surely something went wrong at the
> linking stage.
>
> Can you post me the output of the compilation?
>
> --
> Cheers,
>
> Matt Riddell
> Director
>


When compiling the module I simply recompiled asterisk (I was told this is
the best way), below is the output of that.

remote:/usr/src/asterisk-1.4.20.1 # make && make install
Generating input for menuselect ...
menuselect/menuselect --check-deps menuselect.makeopts
Generating embedded module rules ...
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
   [CC] app_cbmysql.c -> app_cbmysql.o
app_cbmysql.c:37:1: warning: "AST_MODULE" redefined
<command-line>: warning: this is the location of the previous definition
app_cbmysql.c: In function âcheckMaxâ:
app_cbmysql.c:116: warning: implicit declaration of function
âast_say_numberâ
app_cbmysql.c: In function âroomQueryâ:
app_cbmysql.c:181: warning: unused variable âeatimeâ
app_cbmysql.c:337: warning: control reaches end of non-void function
   [LD] app_cbmysql.o -> app_cbmysql.so
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
 +--------- Asterisk Build Complete ---------+
 + Asterisk has successfully been built, and +
 + can be installed by running:              +
 +                                           +
 +               make install                +
 +-------------------------------------------+
menuselect/menuselect --check-deps menuselect.makeopts
Generating embedded module rules ...
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
if [ x`/usr/bin/id -un` = xroot ]; then CFLAGS=" -pipe -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -include
/usr/src/asterisk-1.4.20.1/include/asterisk/autoconfig.h -march=i686 " sh
build_tools/mkpkgconfig /usr/lib/pkgconfig; fi
mkdir -p /var/lib/asterisk/static-http
for x in static-http/*; do \
                /usr/bin/install -c -m 644 $x /var/lib/asterisk/static-http
; \
        done
mkdir -p /var/lib/asterisk/images
for x in images/*.jpg; do \
                /usr/bin/install -c -m 644 $x /var/lib/asterisk/images ; \
        done
mkdir -p /var/lib/asterisk/agi-bin
make -C sounds install
make[1]: Entering directory `/usr/src/asterisk-1.4.20.1/sounds'
make[1]: Leaving directory `/usr/src/asterisk-1.4.20.1/sounds'
mkdir -p /usr/lib/asterisk/modules
mkdir -p /usr/sbin
mkdir -p /etc/asterisk
mkdir -p /usr/bin
mkdir -p /var/run
mkdir -p /var/spool/asterisk/voicemail
mkdir -p /var/spool/asterisk/dictate
mkdir -p /var/spool/asterisk/system
mkdir -p /var/spool/asterisk/tmp
mkdir -p /var/spool/asterisk/meetme
mkdir -p /var/spool/asterisk/monitor
make[1]: Entering directory `/usr/src/asterisk-1.4.20.1/utils'
for x in astman stereorize streamplayer aelparse muted; do \
                if [ "$x" != "none" ]; then \
                        /usr/bin/install -c -m 755 $x /usr/sbin/$x; \
                fi; \
        done
make[1]: Leaving directory `/usr/src/asterisk-1.4.20.1/utils'
make[1]: Entering directory `/usr/src/asterisk-1.4.20.1/agi'
mkdir -p /var/lib/asterisk/agi-bin
for x in agi-test.agi eagi-test eagi-sphinx-test jukebox.agi; do
/usr/bin/install -c -m 755 $x /var/lib/asterisk/agi-bin ; done
make[1]: Leaving directory `/usr/src/asterisk-1.4.20.1/agi'
make[1]: Entering directory `/usr/src/asterisk-1.4.20.1/res'
for x in res_adsi.so res_agi.so res_clioriginate.so res_convert.so
res_features.so res_indications.so res_monitor.so res_musiconhold.so
res_smdi.so res_speech.so; do /usr/bin/install -c -m 755 $x
/usr/lib/asterisk/modules ; done
make[1]: Leaving directory `/usr/src/asterisk-1.4.20.1/res'
make[1]: Entering directory `/usr/src/asterisk-1.4.20.1/channels'
for x in chan_agent.so chan_iax2.so chan_local.so chan_mgcp.so chan_oss.so
chan_phone.so chan_sip.so chan_skinny.so chan_zap.so; do /usr/bin/install -c
-m 755 $x /usr/lib/asterisk/modules ; done
make[1]: Leaving directory `/usr/src/asterisk-1.4.20.1/channels'
make[1]: Entering directory `/usr/src/asterisk-1.4.20.1/pbx'
for x in pbx_ael.so pbx_config.so pbx_dundi.so pbx_loopback.so
pbx_realtime.so pbx_spool.so; do /usr/bin/install -c -m 755 $x
/usr/lib/asterisk/modules ; done
make[1]: Leaving directory `/usr/src/asterisk-1.4.20.1/pbx'
make[1]: Entering directory `/usr/src/asterisk-1.4.20.1/apps'
for x in app_adsiprog.so app_alarmreceiver.so app_amd.so app_authenticate.so
app_cbmysql.so app_cdr.so app_chanisavail.so app_channelredirect.so
app_chanspy.so app_controlplayback.so app_db.so app_dial.so app_dictate.so
app_directed_pickup.so app_directory.so app_disa.so app_dumpchan.so
app_echo.so app_exec.so app_externalivr.so app_festival.so app_flash.so
app_followme.so app_forkcdr.so app_getcpeid.so app_hasnewvoicemail.so
app_ices.so app_image.so app_lookupblacklist.so app_lookupcidname.so
app_macro.so app_meetme.so app_milliwatt.so app_mixmonitor.so
app_morsecode.so app_mp3.so app_nbscat.so app_page.so app_parkandannounce.so
app_playback.so app_privacy.so app_queue.so app_random.so app_read.so
app_readfile.so app_realtime.so app_record.so app_sayunixtime.so
app_senddtmf.so app_sendtext.so app_setcallerid.so app_setcdruserfield.so
app_settransfercapability.so app_sms.so app_softhangup.so
app_speech_utils.so app_stack.so app_system.so app_talkdetect.so app_test.so
app_transfer.so app_url.so app_userevent.so app_verbose.so app_voicemail.so
app_waitforring.so app_waitforsilence.so app_while.so app_zapateller.so
app_zapbarge.so app_zapras.so app_zapscan.so; do /usr/bin/install -c -m 755
$x /usr/lib/asterisk/modules ; done
make[1]: Leaving directory `/usr/src/asterisk-1.4.20.1/apps'
make[1]: Entering directory `/usr/src/asterisk-1.4.20.1/codecs'
for x in codec_a_mu.so codec_adpcm.so codec_alaw.so codec_g726.so
codec_gsm.so codec_lpc10.so codec_ulaw.so codec_zap.so; do /usr/bin/install
-c -m 755 $x /usr/lib/asterisk/modules ; done
make[1]: Leaving directory `/usr/src/asterisk-1.4.20.1/codecs'
make[1]: Entering directory `/usr/src/asterisk-1.4.20.1/formats'
for x in format_g723.so format_g726.so format_g729.so format_gsm.so
format_h263.so format_h264.so format_ilbc.so format_jpeg.so format_pcm.so
format_sln.so format_vox.so format_wav.so format_wav_gsm.so; do
/usr/bin/install -c -m 755 $x /usr/lib/asterisk/modules ; done
make[1]: Leaving directory `/usr/src/asterisk-1.4.20.1/formats'
make[1]: Entering directory `/usr/src/asterisk-1.4.20.1/cdr'
for x in cdr_csv.so cdr_custom.so cdr_manager.so; do /usr/bin/install -c -m
755 $x /usr/lib/asterisk/modules ; done
make[1]: Leaving directory `/usr/src/asterisk-1.4.20.1/cdr'
make[1]: Entering directory `/usr/src/asterisk-1.4.20.1/funcs'
for x in func_base64.so func_callerid.so func_cdr.so func_channel.so
func_cut.so func_db.so func_enum.so func_env.so func_global.so
func_groupcount.so func_language.so func_logic.so func_math.so func_md5.so
func_moh.so func_rand.so func_realtime.so func_sha1.so func_strings.so
func_timeout.so func_uri.so; do /usr/bin/install -c -m 755 $x
/usr/lib/asterisk/modules ; done
make[1]: Leaving directory `/usr/src/asterisk-1.4.20.1/funcs'
make[1]: Entering directory `/usr/src/asterisk-1.4.20.1/main'
for x in ; do /usr/bin/install -c -m 755 $x /usr/lib/asterisk/modules ; done
make[1]: Leaving directory `/usr/src/asterisk-1.4.20.1/main'
/usr/bin/install -c -m 755 main/asterisk /usr/sbin/
/bin/ln -sf asterisk /usr/sbin/rasterisk
/usr/bin/install -c -m 755 contrib/scripts/astgenkey /usr/sbin/
/usr/bin/install -c -m 755 contrib/scripts/autosupport /usr/sbin/
if [ ! -f /usr/sbin/safe_asterisk ]; then \
                cat contrib/scripts/safe_asterisk | sed
's|__ASTERISK_SBIN_DIR__|/usr/sbin|;s|__ASTERISK_VARRUN_DIR__|/var/run|;' >
/usr/sbin/safe_asterisk ;\
                chmod 755 /usr/sbin/safe_asterisk;\
        fi
/usr/bin/install -c -d /usr/include/asterisk
/usr/bin/install -c -m 644 include/asterisk.h /usr/include
/usr/bin/install -c -m 644 include/asterisk/*.h /usr/include/asterisk
if [ -n "" ]; then \
                rm -f  ;\
        fi
mkdir -p /var/log/asterisk/cdr-csv
mkdir -p /var/log/asterisk/cdr-custom
mkdir -p /var/lib/asterisk/keys
mkdir -p /var/lib/asterisk/firmware
mkdir -p /var/lib/asterisk/firmware/iax
mkdir -p /usr/share/man/man8
/usr/bin/install -c -m 644 keys/iaxtel.pub /var/lib/asterisk/keys
/usr/bin/install -c -m 644 keys/freeworlddialup.pub /var/lib/asterisk/keys
/usr/bin/install -c -m 644 doc/asterisk.8 /usr/share/man/man8
/usr/bin/install -c -m 644 contrib/scripts/astgenkey.8 /usr/share/man/man8
/usr/bin/install -c -m 644 contrib/scripts/autosupport.8 /usr/share/man/man8
/usr/bin/install -c -m 644 contrib/scripts/safe_asterisk.8
/usr/share/man/man8
if [ -f contrib/firmware/iax/iaxy.bin ] ; then \
                /usr/bin/install -c -m 644 contrib/firmware/iax/iaxy.bin
/var/lib/asterisk/firmware/iax/iaxy.bin; \
        fi
 +---- Asterisk Installation Complete
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090901/cba4bf56/attachment.htm 


More information about the asterisk-users mailing list