Skip to content

Error compiling #1

@stony245

Description

@stony245

mod_quickjs at first complied successfully, but it did not load then with

-ERR [module load file routine returned an error]

2025-02-20 14:17:50.188228 93.07% [CRIT] switch_loadable_module.c:1754 Error Loading module /usr/local/freeswitch/mod/mod_quickjs.so
**/usr/local/freeswitch/mod/mod_quickjs.so: undefined symbol: js_file_class_register**

So I added
src/mod/languages/mod_quickjs/Makefile
to configure.ac

But now I receive

/usr/src/freeswitch/src/mod/languages/mod_quickjs# make
  CC       mod_quickjs_la-js_eventhandler.lo
js_eventhandler.c: In function ‘js_eventhandler_contructor’:
js_eventhandler.c:356:5: warning: argument 1 null where non-null expected [-Wnonnull]
  356 |     memset(&js_eventhandler->event_list, 0, sizeof(js_eventhandler->event_list));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../../../../src/include/switch.h:87,
                 from mod_quickjs.h:9,
                 from js_eventhandler.h:7,
                 from js_eventhandler.c:5:
/usr/include/string.h:61:14: note: in a call to function ‘memset’ declared ‘nonnull’
   61 | extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1));
      |              ^~~~~~
  CC       mod_quickjs_la-js_curl.lo
  CC       mod_quickjs_la-js_curl_misc.lo
  CC       mod_quickjs_la-js_odbc.lo
  CC       mod_quickjs_la-js_xml.lo
make: *** Keine Regel vorhanden, um das Ziel „/opt/quickjs/lib/quickjs/libquickjs.lto.a“,
  benötigt von „mod_quickjs.la“, zu erstellen.  Schluss.

Any help is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions