Skip to content

with get: functions declared by a header the install relocates are 'declared only by headers the package does not install' (cjson presents 1 of 79) #3167

Closed

Description

@ehartford

Part of #3115; found by the #3116 survey (docs/spec/toolchain/facade-coverage.md).

ci_facade_import_spelling matches a source header by its path suffixes under the installed include dirs. When the install relocates the header (cjson's source cJSON.h installs as include/cjson/cJSON.h), no suffix matches and every function it declares is dropped from the facade. Counts from the survey: cjson 78 of 79 functions, libcurl 6988, libssh2 4005, libevent 4425, raylib 1057, sdl 866, freetype 478 (several of those are deps' and private headers, correctly dropped; the relocation class hides behind the same message).

Fix: match the installed header by content identity (same basename and the same declarations, or the package's own install rules), not by path suffix; and the note should separate 'private header' from 'installed elsewhere'.

Activity

  1. added
    bug
    on Nov 9, 2026
  2. added 2 commits that reference this issue on Nov 9, 2026
  3. ehartford commented on Nov 9, 2026

    @ehartford
    ContributorAuthor

    Fixed in #3184 (main b6f0899): a relocated installed header is found by its bytes, then by its single name. Fixture conan_facade_relocated_header_test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions