Hi, Guys...
I'm, finally, after compilation success, migrating my config to test SR functionality. But now I need some AVP functionality... I see that they are SER and Kamailio AVPOPS. If I include AVPOPS on the "include_module" of the "make" command, it try to compile SER module and it is giving me the following error:
make[1]: Entering directory `/root/sr/sip-router/modules_s/avpops' gcc -fPIC -DPIC -g -O9 .................................... -DMOD_NAME='"avpops"' -c avpops.c -o avpops.o
In file included from avpops_impl.h:41, from avpops_parse.h:38, from avpops.c:50: avpops_db.h:66: error: expected â)â before â*â token make[1]: *** [avpops.o] Error 1 make[1]: Leaving directory `/root/sr/sip-router/modules_s/avpops' make: *** [install-modules_s] Error 1
I try to find the error, but nothing catch my attention...
The compilation output shows:
config.mak included make[1]: Entering directory `/root/sr/sip-router/modules/db_mysql' make[1]: Nothing to be done for `man'. make[1]: Leaving directory `/root/sr/sip-router/modules/db_mysql'
make: *** modules_s/db_mysql: No such file or directory. Stop. make: [modules_s-man] Error 1 (ignored)
make: *** modules_k/db_mysql: No such file or directory. Stop. make: [modules_k-man] Error 1 (ignored)
Indicating that compilation process looks for "db_mysql" module on k and s subdirectories...
So, how to compile just Kamailio or SER version of a desired module (in my case AVPOPS)?
Edson.
On Jun 26, 2009 at 11:34, Edson - Lists 4lists@gmail.com wrote:
Hi, Guys...
I'm, finally, after compilation success, migrating my config to test SR functionality. But now I need some AVP functionality... I see that they are SER and Kamailio AVPOPS. If I include AVPOPS on the "include_module" of the "make" command, it try to compile SER module and it is giving me the following error:
Yes, ser avpops module does not compile (it's obsoleted by the avp handling in the script and by avp_db).
[...]
So, how to compile just Kamailio or SER version of a desired module (in my case AVPOPS)?
Quick solution make include_modules=avpops modules_k
If you want make all to work, then try first: make modules-cfg modules modules_dirs="modules modules_k" (or just edit modules.lst).
In the long run we'll have either to remove ser avpops, make it compile (should be easy since the problem in ser was that it was not migrated to the new DB api, but since sip-router supports also the old API it should be easy to fix it), or add per directory include_modules support.
Andrei
Andrei Pelinescu-Onciul escreveu:
On Jun 26, 2009 at 11:34, Edson - Lists 4lists@gmail.com wrote:
Hi, Guys...
So, how to compile just Kamailio or SER version of a desired module (in my case AVPOPS)?
Quick solution make include_modules=avpops modules_k
If you want make all to work, then try first: make modules-cfg modules modules_dirs="modules modules_k" (or just edit modules.lst).
In the long run we'll have either to remove ser avpops, make it compile (should be easy since the problem in ser was that it was not migrated to the new DB api, but since sip-router supports also the old API it should be easy to fix it), or add per directory include_modules support.
Great... it worked... thanks Andrei...
Now moving on to make it work... ;)
Edson.