t2sde icon indicating copy to clipboard operation
t2sde copied to clipboard

Error relocating /usr/lib/libfl.so.2: yylex: symbol not found

Open svmhdvn opened this issue 1 year ago • 4 comments

Building the following packages (probably a few other packages as well, I'll edit this description as I find them) fails on a fresh install of t2-23.10-x86-64-minimal-firefox-gcc-musl-nocona.iso:

  • git
  • python

Same message shows up: Error relocating /usr/lib/libfl.so.2: yylex: symbol not found

svmhdvn avatar Oct 14 '23 03:10 svmhdvn

On 14/10/23 14:11, Siva Mahadevan wrote:

Building the following packages (probably a few other packages as well, I'll edit this description as I find them) fails on a fresh install of t2-23.10-x86-64-minimal-firefox-gcc-musl-nocona.iso:

  • git
  • python

Same message shows up: Error relocating /usr/lib/libfl.so.2: yylex: symbol not found

There are a few of these if you do a search on the error. They all seem to point back to the one problem that seems to be clearest in this > https://copyprogramming.com/howto/undefined-reference-to-yylex.

scsijon avatar Oct 14 '23 04:10 scsijon

you cant build anything on that image, because of that error

before you get to that error however, you will be missing getconf - musl-utils contains a couple of other missing items from that image as well (getent & iconv)

according to that link it can only (simply) be fixed by using a version of flex before 2.6.x which isnt on the trunk mirror.

there is however a flex-2.5.33 in the 8.0 branch, which might be the flex-old package mentioned

paulwratt avatar Nov 15 '23 16:11 paulwratt

but you cant build that either, because yylex: symbol not found ...

seems like the only real way to fix this is to patch libfl at the time the ISO is built from source, to use flex-2.6.x

paulwratt avatar Nov 15 '23 16:11 paulwratt

it seems surprising that this was not found before now (in any musl build ?)

paulwratt avatar Nov 15 '23 16:11 paulwratt