-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't compile custom module includes ejabberd_sql_pt.hrl #3869
Comments
@prefiks do you have any idea? |
Possibly |
@prefiks you are right and I get error on |
As mentioned in the commit message, most of those packages no longer exist in Alpine 3.14 (which is used here), including |
@weiss but running
|
Understood, and I'm not aware of the casue, just wanted to clarify that it's probably not the commit above. |
@weiss in addition, the general |
ejabberd in the docker image (and the github container too) is compiled using the full erlang/OTP suite. Then an OTP release is generated, which includes only the strictly needed OTP libraries. Strictly needed... as defined in I imagine adding this to ejabberd, then regenerating the image (which generates the OTP release) would solve the problem: diff --git a/src/ejabberd.app.src.script b/src/ejabberd.app.src.script
index a657b640b..dd2cdff93 100644
--- a/src/ejabberd.app.src.script
+++ b/src/ejabberd.app.src.script
@@ -16,7 +16,7 @@ Vars = case file:consult(filename:join([filename:dirname(SCRIPT), "..", "vars.co
{registered, []},
{applications, [kernel, sasl, ssl, stdlib]},
{included_applications,
- [compiler, inets, mnesia, os_mon,
+ [compiler, inets, mnesia, os_mon, syntax_tools,
cache_tab,
eimp,
fast_tls, I can reproduce your problem if I attempt to compile that module with an ejabberd OTP release generated with "make dev". But now I wonder, is it worth including syntax_tools in the general OTP release? Maybe there's a solution for your user case with docker that doesn't involve including it in all cases. |
We are using that module after all, so i think adding it to release is the correct thing to do here. |
Environment
ejabberd/ecs
)Errors from CLI
Bug description
I have a custom module who using the
ejabberd_sql_pt.hrl
and when I try to compile it usingejabberdctl module_upgrade mod_ariel
I get the error above.This is the module:
Also, I tried to do the compilation using the
ghcr.io/processone/ejabberd
docker and received this response:It is very weird because I looked at the
erlang/OPT
repository and saw this function exsisted.The text was updated successfully, but these errors were encountered: