[Bug 293004] [net/mosquitto] Header file location (include vs include/mosquitto)

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 06 Feb 2026 14:46:47 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293004

            Bug ID: 293004
           Summary: [net/mosquitto] Header file location (include vs
                    include/mosquitto)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: leres@freebsd.org
          Reporter: alexander@wittig.name
          Assignee: leres@freebsd.org
             Flags: maintainer-feedback?(leres@freebsd.org)

Hidden at the end of the release notes, 2.1 refactored headers (seemingly into
include/mosquitto). The port still installs them directly into
/usr/local/include.
https://github.com/eclipse-mosquitto/mosquitto/blob/release/2.1/ChangeLog.txt#L271

This means compiling code using the mosquitto client library doesn't work any
more: using the old "#include <mosquitto.h>" finds the header in
/usr/local/include/mosquitto.h, but this file then tries to include further
headers as <mosquitto/...> which are not found: 

/usr/local/include/mosquitto.h:27:10: fatal error: 'mosquitto/mqtt_protocol.h'
file not found
   27 | #include <mosquitto/mqtt_protocol.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

The solution, I imagine, is to either install headers into include/mosquitto
and update custom code to #include <mosquitto/mosquitto.h> or patch the
installed headers to #include <...h> without the mosquitto/ prefix.

-- 
You are receiving this mail because:
You are the assignee for the bug.