res_config_mysql.so missing after compiling asterisk-addons

Hi,

I installed asterisk 1.4.1 successfully! After that I downloaded asterisk-addons for asterisk 1.4.1. After ./configure I do ./make but after this process different object and shared-object are made, however one doesn’t; res_config_mysql.so

I see the res_config_mysql.c in the directory but no res_config_mysql.o or res_config_mysql.so.

Please let me know the solution for this problem and why res_config_mysql.c doesn’t compile the right way!

Grtz,

tjeerds

Try “make menuselect” after “configure” and also I would try download and build a newer version of Asterisk (latest is 1.4.17) and addons (latest is 1.4.5).

Cheers.

Marco Bruni

I upgraded asterisk to 1.4.17 and the add-ons to 1.4.5. I tried make menuselect but it doesn’t work. I get the message:

asterisk:/asterisk-addons-1.4.5# make menuselect


*** Install ncurses to use the menu interface! ***


menuselect changes NOT saved!

this is the output for: make and make install. it seems that the res_config_mysql isn’t compiled at all!

asterisk:/asterisk-addons-1.4.5# make
make[1]: Entering directory /asterisk-addons-1.4.5' make[2]: Entering directory/asterisk-addons-1.4.5/asterisk-ooh323c’
make all-am
make[3]: Entering directory /asterisk-addons-1.4.5/asterisk-ooh323c' make[3]: Leaving directory/asterisk-addons-1.4.5/asterisk-ooh323c’
make[2]: Leaving directory /asterisk-addons-1.4.5/asterisk-ooh323c' make[2]: Entering directory/asterisk-addons-1.4.5/format_mp3’
make[2]: Nothing to be done for all'. make[2]: Leaving directory/asterisk-addons-1.4.5/format_mp3’
make[1]: Leaving directory `/asterisk-addons-1.4.5’
±— Asterisk-Addons Build Complete ----+

  •                                         +
    
  • Addons has successfully been built . +
  • If you would like to install it : +
  •                                         +
    
  •           make install                  +
    

±--------------------------------------------+
asterisk:/asterisk-addons-1.4.5# make install
make[1]: Entering directory /asterisk-addons-1.4.5' make[2]: Entering directory/asterisk-addons-1.4.5/asterisk-ooh323c’
make all-am
make[3]: Entering directory /asterisk-addons-1.4.5/asterisk-ooh323c' make[3]: Leaving directory/asterisk-addons-1.4.5/asterisk-ooh323c’
make[2]: Leaving directory /asterisk-addons-1.4.5/asterisk-ooh323c' make[2]: Entering directory/asterisk-addons-1.4.5/format_mp3’
make[2]: Nothing to be done for all'. make[2]: Leaving directory/asterisk-addons-1.4.5/format_mp3’
make[1]: Leaving directory /asterisk-addons-1.4.5' for x in app_saycountpl.so; do /usr/bin/install -c -m 755 $x /usr/lib/asterisk/modules ; done make[1]: Entering directory/asterisk-addons-1.4.5/format_mp3’
/usr/bin/install -c -m 755 format_mp3.so /usr/lib/asterisk/modules
make[1]: Leaving directory /asterisk-addons-1.4.5/format_mp3' make[1]: Entering directory/asterisk-addons-1.4.5/asterisk-ooh323c’
cp .libs/libchan_h323.so.1.0.1 /usr/lib/asterisk/modules/chan_ooh323.so
make[1]: Leaving directory `/asterisk-addons-1.4.5/asterisk-ooh323c’
±— Asterisk-Addons Installation Complete ----+

  •                                           +
    
  • Addons has successfully been installed. +
  • If you would like to install the sample +
  • configuration files (overwriting any +
  • existing config files), run: +
  •                                           +
    
  •           make samples                    +
    

±----------------------------------------------+
asterisk:/asterisk-addons-1.4.5#

So you have to install the ncurses library, also check that you have installed the mysql client library and the relatives development files.

Cheers.

Marco Bruni

Owk! :smile: Do you know the rule for this, i mean:

apt-get install ??? and
apt-get install >

i’m using debian 4.0

thanx in advance

grtz tjeerds

I solved it!

I was indeed the mysql client library!!!

Thanx Marco for your help, i’m very pleased right now :smile:

For Debian:

apt-get install libmysqlclient15-dev

Then re-do a ./configure, make, make install.

To copy the file manually - cp res/*.so /usr/lib/asterisk/modules

That will get you the right file in the right place - don’t forget to edit your modules.conf to include this module - and to do a ‘noload’ on the ODBC one.

HTH