Skip to content

Conversation

@passgat
Copy link

@passgat passgat commented Dec 26, 2025

Building xinetd with gcc-14 in Buildroot raises the following error:

cvt.c: In function 'fcvt_r':
cvt.c:113:9: error: implicit declaration of function 'strx_nprint' [-Wimplicit-function-declaration]
113 | n = strx_nprint (buf, len, "%.*" FLOAT_FMT_FLAG "f", ndigit, value);
| ^~~~~~~~~~~

Including "str.h" header to fix the compiler error would add a build-time dependency of libportable on libstr, creating a circular dependency chhain:

libportable -> libstr -> libsio -> libportable

which results in GNU make dropping dependency edges and therefore not fixing the original build error.

The commit keeps the existing library layering unchanged while restoring successful builds with modern compilers.

Building xinetd with gcc-14 in Buildroot raises the following error:

cvt.c: In function 'fcvt_r':
cvt.c:113:9: error: implicit declaration of function 'strx_nprint' [-Wimplicit-function-declaration]
  113 |     n = strx_nprint (buf, len, "%.*" FLOAT_FMT_FLAG "f", ndigit, value);
      |         ^~~~~~~~~~~

Including "str.h" header to fix the compiler error would add a
build-time dependency of libportable on libstr, creating a circular
dependency chhain:

  libportable -> libstr -> libsio -> libportable

which results in GNU make dropping dependency edges and therefore not
fixing the original build error.

The commit keeps the existing library layering unchanged while restoring
successful builds with modern compilers.

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant