Opened 7 months ago

Closed 5 months ago

#69681 closed defect (fixed)

gsl @2.7.1: error: implicitly declaring library function 'exit'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: daitakahashi
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: haspatch Cc: Dave-Allured (Dave Allured)
Port: gsl

Description

Configuring gsl produces this message:

% sudo port configure gsl
--->  Fetching distfiles for gsl
--->  Attempting to fetch gsl-2.7.1.tar.gz from https://distfiles.macports.org/gsl
--->  Verifying checksums for gsl
--->  Extracting gsl
--->  Applying patches to gsl
--->  Configuring gsl
Warning: Configuration logfiles contain indications of -Wimplicit-function-declaration; check that features were not accidentally disabled:
  exit: found in gsl-2.7.1/config.log
  strchr: found in gsl-2.7.1/config.log

To fix the implicit declaration of exit, please apply the patch attached to this bug report:

https://savannah.gnu.org/bugs/index.php?63679

The implicit declaration of strchr is intentional and should be suppressed according to WimplicitFunctionDeclaration#strchr by adding:

# https://trac.macports.org/wiki/WimplicitFunctionDeclaration#strchr
configure.checks.implicit_function_declaration.whitelist-append strchr

Change History (4)

comment:1 Changed 6 months ago by Dave-Allured (Dave Allured)

Cc: Dave-Allured added

comment:2 Changed 6 months ago by Dave-Allured (Dave Allured)

Patch is now applied upstream. GSL version 2.8 release including this fix is imminent.

comment:3 Changed 6 months ago by Dave-Allured (Dave Allured)

Oh sorry, I forgot about the second part above, whitelist strchr. That is still needed in the portfile.

comment:4 Changed 5 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.