pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: heimdal build error



On Sun, 21 Nov 2021, at 08:12:49 -0600, Jason Bacon wrote:
On 11/4/21 20:10, Jason Bacon wrote:
  On 11/4/21 13:22, Adam wrote:

          Anyone else seeing heimdal fail on NetBSD 9.2?

          Getting this while running pkg_chk -su:

          In file included from hxtool.c:34:0:
hx_locl.h:66:10: fatal error: ocsp_asn1.h: No such file or directory
          #include <ocsp_asn1.h>
                    ^~~~~~~~~~~~~
          compilation terminated.

This is a race condition - oscp_asn1.h should be generated before compiling hxtool.c.

I just pushed patch-lib_hx509_Makefile.in to fix this. Give it a try.

      Kind regards,
      Adam

   The build succeeded, thanks!

Actually, the patch didn't work.

Restarting the build without doing a clean first results in a successful build. If I do make clean first, I consistently see the failure.

MAKE_JOBS_SAFE=no fixes the issue.

I also ran into this issue the other day, and it was repeatedly
reproducible. This is also observable in other build situations, e.g.:

https://us-east.manta.joyent.com/pkgsrc/public/reports/upstream-trunk/20220121.2256/heimdal-7.7.0nb3/build.log
https://us-east.manta.joyent.com/pkgsrc/public/reports/upstream-trunk/20220125.0923/heimdal-7.7.0nb3/build.log

The patch needed to be adjusted to specify those headers
are required by time hxtool.o is built, not by the time the resulting
executable is linked. This is consistent with what the upstream project
actually changed. I've adjusted the patch accordingly, Please let me
know if there's any fallout.

Regards,

Dave


Home | Main Index | Thread Index | Old Index