[sr-dev] how to compile a module

Daniel-Constantin Mierla miconda at gmail.com
Thu Dec 8 16:04:18 CET 2016


It seems that it matches 'modules' as filename (dir). I pushed a small
change to not enclose the target in quotes when forwarding. Can you try
again?

If it still fails, then tell the version of make you have as well as the
operating system.

Cheers,
Daniel


On 08/12/2016 12:37, Juha Heinanen wrote:
> Daniel-Constantin Mierla writes:
>
>> What's the error you get?
> No error.  Make from root claims that modules is up to date (see below).
>
> -- Juha
>
> /usr/src/orig/kamailio$ ls src/modules/lcr/
> doc/	hash.h	   lcr_mod.h  lcr_rpc.h    Makefile  utils/
> hash.c	lcr_mod.c  lcr_rpc.c  makecfg.lst  README
> /usr/src/orig/kamailio$ make modules=modules/lcr modules
> make: 'modules' is up to date.
> /usr/src/orig/kamailio$ cd src
> /usr/src/orig/kamailio/src$ make modules=modules/lcr modules
> CC (gcc) [M lcr.so]		lcr_mod.o
> CC (gcc) [M lcr.so]		lcr_rpc.o
> CC (gcc) [M lcr.so]		hash.o
> CC (gcc) [L libsrdb1.so.1.0]		db_query.o
> CC (gcc) [L libsrdb1.so.1.0]		db_id.o
> CC (gcc) [L libsrdb1.so.1.0]		db.o
> CC (gcc) [L libsrdb1.so.1.0]		db_row.o
> CC (gcc) [L libsrdb1.so.1.0]		db_res.o
> CC (gcc) [L libsrdb1.so.1.0]		db_pool.o
> CC (gcc) [L libsrdb1.so.1.0]		db_ut.o
> CC (gcc) [L libsrdb1.so.1.0]		db_val.o
> LD (gcc) [L libsrdb1.so.1.0]		libsrdb1.so.1.0
> LD (gcc) [M lcr.so]		lcr.so

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com




More information about the sr-dev mailing list