Skip to content

Fix the static library dependency of testoauth - #1787

Merged
michaelrsweet merged 1 commit into
OpenPrinting:masterfrom
Shubham-Padkonde:fix/testoauth-library-dependency
Oct 28, 2026
Merged

michaelrsweet merged 1 commit into
OpenPrinting:masterfrom
Shubham-Padkonde:fix/testoauth-library-dependency

Conversation

@Shubham-Padkonde

@Shubham-Padkonde Shubham-Padkonde commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

testoauth depends on $(LIBCUPS_STATIC), but the configured variable is LIBCUPSSTATIC. The missing dependency lets a parallel build start linking the test while libcups.a is still being archived, producing undefined references. It also means building the target alone does not build its required library.

Use the same $(LIBCUPSSTATIC) prerequisite as the neighboring test targets.

Validation in Ubuntu under WSL with GCC:

  • A fresh ./configure --enable-unit-tests --prefix=<workspace>/cups-install followed by make -j4 reproduced the undefined-reference failure in testoauth before the change.
  • make -C cups -B -n testoauth previously omitted archiving libcups.a; after the fix it includes the library build before linking.
  • After make clean, the complete make -j4 build succeeds with the fix.
  • The resulting cups/testoauth --help executable runs; git diff --check passes.

Existing _FORTIFY_SOURCE redefinition and recursive-make jobserver warnings remain. Nothing was installed into the system printing service.

@michaelrsweet michaelrsweet self-assigned this Oct 28, 2026
@michaelrsweet michaelrsweet added the bug Something isn't working label Oct 28, 2026
@michaelrsweet michaelrsweet added this to the v2.5 milestone Oct 28, 2026
@michaelrsweet
michaelrsweet merged commit 5d95db9 into OpenPrinting:master Oct 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants