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

Broken yywrap()? #593

Open
rdratlos opened this issue Sep 26, 2023 · 0 comments
Open

Broken yywrap()? #593

rdratlos opened this issue Sep 26, 2023 · 0 comments

Comments

@rdratlos
Copy link

rdratlos commented Sep 26, 2023

When using flex to develop packages, which rely on yywrap(), static library libl.a (linked to libfl.a) is required. Linking to yywrap() provided by shared library libfl.so is not possible.

Steps to reproduce:

  • Extraxt attached test.zip
  • Perform automake/autoconf

Result:

  • without static lib:
checking for lex library... none needed
checking for library containing yywrap... no

  • with static lib:
checking for lex library... none needed
checking for library containing yywrap... -ll

config.log contains following error if the static library is not available:

/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib/libfl.so: undefined reference to `yylex'
collect2: error: ld returned 1 exit status

Is this a bug or a feature? Both, static and shared library provide function yywrap() but it seems to be broken in the shared lib.

Affected version: 2.6.4

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

No branches or pull requests

1 participant