Skip to content

php & Oniguruma library #3033

Closed
donald opened this issue Dec 14, 2023 · 0 comments · Fixed by #3034
Closed

php & Oniguruma library #3033

donald opened this issue Dec 14, 2023 · 0 comments · Fixed by #3034

Comments

@donald
Copy link
Collaborator

donald commented Dec 14, 2023

  • php with --enable-mbstring requires the Oniguruma regexp library, unless ----disable-mbregex is given, too 1
  • mbregex is required by some softeware, e.g. LimeSurvey 6.3.9
  • We don't have the Oniguruma library installed as a packge
  • /usr/lib/libonig.a and /usr/lib/libonig.so were however installed by the package jq 2 which is a JSON parser, installed by jq - Command-line JSON processor #874
  • jq: update from 1.5. to 1.7 #2988 switched jg to static only, so that now we only have /usr/lib/libonig.a
  • As php extensions are shared object, we can no longer build php with --enable-mbstring
/usr/lib/gcc/x86_64-pc-linux-gnu/10.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/10.4.0/../../../../lib64/libonig.a(regparse.o): relocation R_X86_64_32S against symbol `onig_null_warn' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/10.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: failed to set dynamic section sizes: bad value

We should have a bee package for Oniguruma (which includes the shared library) and the jq package should be prevented from installing libonig.

@donald donald mentioned this issue Dec 14, 2023
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant