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

ubuntu 22.04 Compilation error #37

Closed
smokingfive opened this issue Jun 7, 2023 · 2 comments
Closed

ubuntu 22.04 Compilation error #37

smokingfive opened this issue Jun 7, 2023 · 2 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@smokingfive
Copy link

Describe the bug
When building pkcs-tools-2.5.1 package 2.5.1 I receive the following issue:

In file included from attribctx_lexer.c:49:
../gl/string.h:965:1: error: expected ',' or ';' before '_GL_ATTRIBUTE_MALLOC'
  965 | _GL_FUNCDECL_SYS (strdup, char *,
      | ^~~~~~~~~~~~~~~~
make[2]: *** [Makefile:1657: libp11_la-attribctx_lexer.lo] Error 1

To Reproduce
Steps to reproduce the behavior:

  1. Download pkcs11-tools-2.5.1.tar.gz
  2. Untar the achive
  3. ./configure
  4. ./make

Expected behavior
Expect the package to build.

Screenshots
If applicable, add screenshots to help explain your problem.

Operating System (please complete the following information):

  • OS: Linux
  • Version Ubuntu 22.04

Additional context
Add any other context about the problem here.

@keldonin keldonin added the duplicate This issue or pull request already exists label Jun 7, 2023
@keldonin
Copy link
Contributor

keldonin commented Jun 7, 2023

Hi @smokingfive , this is actually a duplicate of #36. For some reasons, recent GCC versions interfere with flex & GNUlib, and I haven't found yet how to fix this.

As a workaround, you can compile using clang. Check #36 for more details.

@keldonin keldonin added the bug Something isn't working label Jun 7, 2023
keldonin added a commit that referenced this issue Jul 4, 2023
keldonin added a commit that referenced this issue Jul 4, 2023
* fix for issue #37
* update documentation
@keldonin
Copy link
Contributor

keldonin commented Jul 4, 2023

Issue solved and commited to the master branch. @smokingfive if you have an opportunity to test, just do a fresh clone of the repo and try to build again.

@keldonin keldonin closed this as completed Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants