Closed OlehVinichenko closed 7 months ago
Probably related:
api.vala: In function 'enchant_set_prefix_dir':
api.vala:35:2: error: implicit declaration of function 'set_relocation_prefix' [-Wimplicit-function-declaration]
api.vala:35:2: warning: nested extern declaration of 'set_relocation_prefix' [-Wnested-externs]
Thanks, and apologies, this has happened before. I'll add a test to CI when I fix this.
FWIW it can be worked around by removing src/api.c
but it will then require valac
to regenerate this file.
Thanks @xry111, that also tells me that the bug is effectively hard-wiring configuration into the generated C, oops.
The problem is that currently there are #if
s in the Vala code that depend on the configuration. So if you want to change the configuration, you have to recompile the Vala (as @xry111 observed). I need to remove preprocessor directives from the Vala code and replace them with C #ifdef
s.
with --disable-relocatable option, which has worked for <2.7.0 version build would fail with:
when manually setting --enable-relocatable, build is fine and enchant is compiled.