Asterisk 13.9.0 and libwebsocket 1.4 (Ubuntu 14.04)

I’ve created a new app for Asterisk in C using libwebsockets 1.4. I made the so file (make and make install, no errors reported) but when I try to load the module in Asterisk I get errors pointing to libwebsockets library.

loader.c:599 load_dynamic_module: Error loading module ‘app_x.so’: /usr/lib/asterisk/modules/app_xxxxx.so: undefined symbol: libwebsocket_service

When I run ldd /usr/app_x.so I get this:

linux-vdso.so.1 => (0x00007ffc45d3a000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f160f0e2000)
libc.so.6 => /lib64/libc.so.6 (0x00007f160ed4e000)
/lib64/ld-linux-x86-64.so.2 (0x0000003d60c00000)

It seems the libwebsockets is not linked properly even if the header is defined in my app. I checked the libwebsockets with pkg-config --modversion and I get 1.4 (current rev of libwebsockets library installed on the machine)…
What is the right way to link the libwebsockets to my app? Do I have to change the plugin build config?
Thanks.
CoS

Are you using your own build system? If so then you’d have to modify it accordingly.

I have installed Asterisk 13.9.0 on Ubuntu 14.04. I’ve also installed the package for libwebsockets 1.4. Everything seems to work fine except for the libwebsockets library. Sorry, I’m not an expert in Asterisk, what should be modified in this configuration?
Thanks.
CoS

These are developer questions, but this is an end user forum. You need the asterisk-dev mailing list or the corresponding IRC channel, although this sounds like it more of a generic Unix/Linux issues than an Asterisk specific one.