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

fatal error: basic.asn.h: No such file or directory #348

Closed
tropikhajma opened this issue Jan 22, 2021 · 1 comment
Closed

fatal error: basic.asn.h: No such file or directory #348

tropikhajma opened this issue Jan 22, 2021 · 1 comment

Comments

@tropikhajma
Copy link

My build fails with
...
gmake[2]: Entering directory '/builds/pheimlic/p11-kit/components/desktop/p11-kit/build/i86'
/usr/gcc/10/bin/gcc -DHAVE_CONFIG_H -I. -I/builds/pheimlic/p11-kit/components/desktop/p11-kit/p11-kit-0.23.22 -I/builds/pheimlic/p11-kit/components/desktop/p11-kit/p11-kit-0.23.22 -I/builds/pheimlic/p11-kit/components/desktop/p11-kit/p11-kit-0.23.22/common -DBINDIR="/usr/bin/i86" -DBUILDDIR="/builds/pheimlic/p11-kit/components/desktop/p11-kit/build/i86" -DDATA_DIR="/usr/share" -DPRIVATEDIR="/usr/lib/p11-kit" -DSRCDIR="/builds/pheimlic/p11-kit/components/desktop/p11-kit/p11-kit-0.23.22" -DSYSCONFDIR="/etc" -DP11_KIT_FUTURE_UNSTABLE_API -m32 -DP11_KIT_FUTURE_UNSTABLE_API -m32 -O3 -mincoming-stack-boundary=2 -ffile-prefix-map=/builds/pheimlic/p11-kit/components/desktop/p11-kit=. -g -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wdeclaration-after-statement -Wformat=2 -Winit-self -Waggregate-return -Wno-missing-format-attribute -fno-strict-aliasing -fno-common -Wmissing-include-dirs -Wundef -MT trust/trust-persist.o -MD -MP -MF trust/.deps/trust-persist.Tpo -c -o trust/trust-persist.o test -f 'trust/persist.c' || echo '/builds/pheimlic/p11-kit/components/desktop/p11-kit/p11-kit-0.23.22/'trust/persist.c
/builds/pheimlic/p11-kit/components/desktop/p11-kit/p11-kit-0.23.22/trust/persist.c:51:10: fatal error: basic.asn.h: No such file or directory
51 | #include "basic.asn.h"
| ^~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [Makefile:4485: trust/trust-persist.o] Error 1
gmake[2]: Leaving directory '/builds/pheimlic/p11-kit/components/desktop/p11-kit/build/i86'
gmake[1]: *** [Makefile:4811: all-recursive] Error 1
gmake[1]: Leaving directory '/builds/pheimlic/p11-kit/components/desktop/p11-kit/build/i86'
gmake: *** [Makefile:2356: all] Error 2

0.23.20 built fine, I guess it's related to adbb94e

I had to use the attached patch to fix it: 03-trust.patch.txt

This is on Solaris 11.4

ueno added a commit to ueno/p11-kit that referenced this issue Feb 6, 2021
Since adbb94e, we always
generate *.asn.h file at build time.  This caused a build problem if
p11-kit is built with an out-of-tree build directory.

Reported by Pavel Heimlich in:
p11-glue#348
@ueno
Copy link
Member

ueno commented Feb 6, 2021

Thank you for the report; this is indeed a regression. It should be fixed with #353.

ueno added a commit that referenced this issue Feb 6, 2021
Since adbb94e, we always
generate *.asn.h file at build time.  This caused a build problem if
p11-kit is built with an out-of-tree build directory.

Reported by Pavel Heimlich in:
#348
@ueno ueno closed this as completed Feb 6, 2021
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

2 participants