Hello, I am trying to compile Kamailio with all its modules statically
linked. How should I go about this?
I followed through the installation documentation but could not find any
information.
I tried passing all the modules I want to statically link in the
"static_modules" argument of `make` but it seems that definitions of
modules clash as such.
```
make static_modules="siputils rr"
```
```
/usr/bin/ld:
modules/rr/rr_mod.o:/playground/fuzzing-targets/sip/kamailio-dfsan/src/modules/rr/rr_mod.c:69:
multiple definition of `module_version';
modules/siputils/siputils.o:/playground/fuzzing-targets/sip/kamailio-dfsan/src/modules/siputils/siputils.c:78:
first defined here
/usr/bin/ld:
modules/rr/rr_mod.o:/playground/fuzzing-targets/sip/kamailio-dfsan/src/modules/rr/rr_mod.c:69:
multiple definition of `module_flags';
modules/siputils/siputils.o:/playground/fuzzing-targets/sip/kamailio-dfsan/src/modules/siputils/siputils.c:78:
first defined here
/usr/bin/ld:
modules/rr/rr_mod.o:/playground/fuzzing-targets/sip/kamailio-dfsan/src/modules/rr/rr_mod.c:69:
multiple definition of `module_interface_ver';
modules/siputils/siputils.o:/playground/fuzzing-targets/sip/kamailio-dfsan/src/modules/siputils/siputils.c:78:
first defined here
/usr/bin/ld:
modules/rr/rr_mod.o:/playground/fuzzing-targets/sip/kamailio-dfsan/src/modules/rr/rr_mod.c:166:
multiple definition of `exports';
modules/siputils/siputils.o:/playground/fuzzing-targets/sip/kamailio-dfsan/src/modules/siputils/siputils.c:241:
first defined here
/usr/bin/ld: modules/rr/rr_mod.o: in function `mod_register':
/playground/fuzzing-targets/sip/kamailio-dfsan/src/modules/rr/rr_mod.c:926:
multiple definition of `mod_register';
modules/siputils/siputils.o:/playground/fuzzing-targets/sip/kamailio-dfsan/src/modules/siputils/siputils.c:817:
first defined here
```
Any help would be appreciated. Thank you.
Show replies by date