Wireshark-dev: [Wireshark-dev] Re: Failure of asn1 build?

From: John Thacker <johnthacker@xxxxxxxxx>
Date: Tue, 3 Dec 2024 13:21:27 -0500
On Tue, Dec 3, 2024 at 12:51 PM Anders Broman <a.broman58@xxxxxxxxx> wrote:
Hi,
Not sure why the clang build produces different results from my Windows one.

Ideas?

Probably because it's a clean build and ../x509if/x509if-exp.cnf hasn't been generated yet in the build directory.
I can get the same result by going to my build directory and

$ rm ./epan/dissectors/asn1/x509if/x509if-exp.cnf
$ ninja generate_dissector-cosem

Try adding

set( EXTRA_CNF
        "${CMAKE_CURRENT_BINARY_DIR}/../x509if/x509if-exp.cnf"
)

to epan/dissectors/asn1/cosem/CMakeLists.txt to ensure that the export file gets built when building cosem.

John