Building Zeek 7.0.3 from source

I’m trying to build Zeek from source. Building the HEAD works fine, but I want to build the LTS release 7.0.3. The build fails pretty early with:

[ 6%] [gen-zam] Generating ZAM operations

/root/rpmbuild/BUILD/zeek/src/script_opt/ZAM/OPs/ZAM.op, line 282: unknown template attribute - type

make[3]: *** [src/CMakeFiles/gen-zam-OPs.dir/build.make:93: src/ZAM-AssignFlavorsDefs.h] Error 1

make[3]: Leaving directory ‘/root/rpmbuild/BUILD/zeek/build’

make[2]: *** [CMakeFiles/Makefile2:5020: src/CMakeFiles/gen-zam-OPs.dir/all] Error 2

Building on RHEL9.3

Any suggestions as to what might be wrong ?

Thanks

Hey @markfen ,

could you provide more details about your build process? Are you using the tarball from the GitHub page or your own tarball? You might have missed a git submodule update --init --recursive after checking out the 7.0.3 tag.

Hope this helps,
Arne

I tested building from the tarball at https://download.zeek.org/zeek-7.0.3.tar.gz and didn’t run into this, but I admittedly tried it on macOS and not Fedora. I agree with @awelzel here that some more information is needed about how/what you’re building.

Hi @awelzel
Building a git clone direct from the repo.
Using a Docker container on a Mac.
I did the git submodule update before checking out the tag.
Let me retest with a second submodule update after the checkout.
Thanks
Mark

Let me retest with a second submodule update after the checkout.

That’s probably what it is. It’s probably using a different version of the gen-zam module than is included to work with 7.0.3.

Yeah that was the problem, thanks again.