Skip to content

Trying to build docker container of cokmap, multiple errors due to precompiled library. #4

@gtrrnr

Description

@gtrrnr

Due to precompiled library /plugin/pm_linux.so that is used to parse nmap probes i encountered multiple errors while trying to build docker container:

First error occured when trying to compile cokmap using go > 1.24.2:

$ echo 1.1.1.1:80/tcp | docker run test/cokmap -v 3 -plugin pm_linux.so  -n nmap-service-probes
cokmap v
{"time":"2025-08-20T05:06:26.223130867Z","level":"INFO","msg":"warning: Product Matcher will try parse only string format response"}
{"time":"2025-08-20T05:06:26.224817357Z","level":"INFO","msg":"fatal error while loading product matcher pm_linux.so error plugin.Open(\"pm_linux\"): plugin was built with a different version of package internal/goarch"}

Tried to compile it using go 1.24.2, now getting errors about dependency being incompatible:

$ echo 1.1.1.1:80/tcp | docker run test/cokmap -v 3 -plugin pm_linux.so  -n nmap-service-probes
cokmap v
{"time":"2025-08-20T05:13:34.286175715Z","level":"INFO","msg":"warning: Product Matcher will try parse only string format response"}
{"time":"2025-08-20T05:13:34.287965021Z","level":"INFO","msg":"fatal error while loading product matcher pm_linux.so error plugin.Open(\"pm_linux\"): plugin was built with a different version of package github.com/dlclark/regexp2/syntax"}

Would you mind releasing source code for pm_linux.so so that users could build it themselves?

Nvm, found this in License.md, what a shame.

The User shall not modify, adapt, localize, or decompile the part the Software which is made available by the Rightholder as compiled (binary) libraries, nor shall the User make any changes to the source code of the Software, except as expressly specified in the License.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions