Skip to content

Example in ecl/example/embed/ not working

Reproducible both in version 16.0.0 and git master.

Issue 1:

In the module initialization wrapper, defun builder at src/cmp/cmpmain.lsp:482, init-name is now a randomized name, thus breaks the name convention of init_lib_SYSTEM_NAME as in "ecl_init_module(NULL, init_lib_HELLO_LISP);".

Issue 2:

If asdf:make-build a static library with option ":monilithic t", then the produced library contains an undefined symbol which breaks linking, while there is no such problem with ":monolithic nil".

hello-lisp--all-systems.a(eclinitjmy9y3.o):
0000000000003ebe s L_.str
0000000000000060 T __Z35main_lib__ECLXL5CUBZVK8D1F_MYCGKI21iPPc
0000000000004c78 b __ZZ35init_lib__ECLXL5CUBZVK8D1F_JYCGKI21E6Cblock
                 U __ecl_frs_push
                 U __setjmp
                 U _cl_boot
                 U _cl_symbols
                 U _ecl_init_module
                 U _ecl_make_codeblock
                 U _ecl_process_env
                 U _init_lib_HELLO_LISP  /* this undefined symbol breaks linking */
0000000000000000 T _init_lib__ECLXL5CUBZVK8D1F_JYCGKI21