Skip to content
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

Symbol not found: _mrb_sym2str #448

Closed
Zogoo opened this issue Jan 20, 2020 · 6 comments · Fixed by #453
Closed

Symbol not found: _mrb_sym2str #448

Zogoo opened this issue Jan 20, 2020 · 6 comments · Fixed by #453

Comments

@Zogoo
Copy link
Contributor

Zogoo commented Jan 20, 2020

After I update my mruby and nginx with the latest master (v2.2.0) start to get following failure?

nginx: [emerg] dlopen() "/usr/local/nginx/modules/ngx_http_mruby_module.so" failed (dlopen(/usr/local/nginx/modules/ngx_http_mruby_module.so, 10): Symbol not found: _mrb_sym2str
  Referenced from: /usr/local/nginx/modules/ngx_http_mruby_module.so
  Expected in: flat namespace
 in /usr/local/nginx/modules/ngx_http_mruby_module.so) in /usr/local/nginx/conf/nginx.conf:12

Anything changed for build process?

@matsumotory
Copy link
Owner

Thank you for your report. I think this issue is a mruby specification. Please issue to mruby repository.

@Zogoo
Copy link
Contributor Author

Zogoo commented Jan 20, 2020

Thank you for your report. I think this issue is a MRuby specification. Please issue to MRuby repository.

I have created issue for a MRuby repo with following url
mruby/mruby#4934
, But I'm still not sure why Travis test environment looks like works fine not my local. Maybe some OSX or Clang issue?

@Zogoo
Copy link
Contributor Author

Zogoo commented Jan 21, 2020

@matsumotory I could solve this issue. When I delete mruby build folder (old version) the it's building correctly.
That's mean .minirake clean not working for version update. What do you think if I add some shell in build.sh to delete mruby build folder if version different than current one.

@matsumotory
Copy link
Owner

matsumotory commented Jan 21, 2020

That sounds good. Could you send the PR?

@Zogoo
Copy link
Contributor Author

Zogoo commented Feb 3, 2020

Seems like with new version might need to specify build_config as like as follows.
rake clean MRUBY_CONFIG=NGX_MRUBY_ROOT/build_config.rb
According to answer of mruby issue

matsumotory added a commit that referenced this issue Feb 4, 2020
Mruby version upgrade require clean up properly (Issue #448)
yyamano added a commit to yyamano/ngx_mruby that referenced this issue Feb 28, 2020
@yyamano
Copy link
Collaborator

yyamano commented Feb 28, 2020

What do you think if I add some shell in build.sh to delete mruby build folder if version different than current one.

@Zogoo I believe db45048 fixes the issue.

matsumotory added a commit that referenced this issue Feb 29, 2020
Fix #448 and minor build system issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants