Bug 297563 - math/gmp: build failure: inp_str.c:68:1: error: conflicting types for '__gmpz_inp_str_nowhite'
Summary: math/gmp: build failure: inp_str.c:68:1: error: conflicting types for '__gmpz...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Alex Dupre
URL:
Keywords:
Depends on:
Blocks: 297571
  Show dependency treegraph
 
Reported: 2026-08-15 22:23 UTC by O. Hartmann
Modified: 2026-08-24 06:02 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (ale)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2026-08-15 22:23:14 UTC
On recent CURRENT (FreeBSD 16.0-CURRENT #4 main-n288314-06aaca43fe05: Sat Aug 15 08:07:26 CEST 2026 amd64) with recent ports tree, port math/gmp fails to build due to conflicting types for '__gmpz_inp_str_nowhite' as shown below:


[...]
inp_str.c:63:10: warning: call to undeclared function '__gmpz_inp_str_nowhite'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   63 |   return mpz_inp_str_nowhite (x, stream, base, c, nread);
      |          ^
../gmp-impl.h:1782:29: note: expanded from macro 'mpz_inp_str_nowhite'
 1782 | #define mpz_inp_str_nowhite __gmpz_inp_str_nowhite
      |                             ^
inp_str.c:68:1: error: conflicting types for '__gmpz_inp_str_nowhite'
   68 | mpz_inp_str_nowhite (mpz_ptr x, FILE *stream, int base, int c, size_t nread)
      | ^
../gmp-impl.h:1782:29: note: expanded from macro 'mpz_inp_str_nowhite'
 1782 | #define mpz_inp_str_nowhite __gmpz_inp_str_nowhite
      |                             ^
inp_str.c:63:10: note: previous implicit declaration is here
   63 |   return mpz_inp_str_nowhite (x, stream, base, c, nread);
      |          ^
../gmp-impl.h:1782:29: note: expanded from macro 'mpz_inp_str_nowhite'
 1782 | #define mpz_inp_str_nowhite __gmpz_inp_str_nowhite
      |                             ^
--- getlimbn.lo ---