← All tasks
cppseladb/PcapPlusPlus #1606Not a task: not reproduced

detect_pcap_version.c should be a C++ file

envgap__seladb__PcapPlusPlus-1606

01 / FAILURE SIGNATURE

As reported upstream

Unknown extension ".c" for file
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
9130bf10006ce0e06d2ce9a5a75782eb6b12d58f
Manifest
CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

seladb/PcapPlusPlus #1606 · read the original issue
### Bug description

When trying to find_package PcapPlusPlus installed with vcpkg, it fails with the following:

```

CMake Error at build/vcpkg_installed/x64-linux/share/pcapplusplus/FindPCAP.cmake:113 (try_run):

  Unknown extension ".c" for file



    .../build/detect_pcap_version.c



  try_compile() works only for enabled languages.  Currently these are:



    CUDA CXX



  See project() command to enable other languages.

```



My project indeed only enable those two languages and not C.

It used to work but block my upgrade to PcapPlusPlus 24.09.



I think `detect_pcap_version.c` (introduced in 71e19fe1fbd2cc05094a152679ba4e4aa39b0aa9) should be a C++ file so it doesn't require C to be enabled.

### PcapPlusPlus versions tested on

Other (specify in the next question)

### Other PcapPlusPlus version (if applicable)

24.09

### Operating systems tested on

Linux

### Other operation systems (if applicable)

_No response_

### Compiler version

gcc 13.2.0

### Packet capture backend (if applicable)

_No response_
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]