Bug 240672

Summary: math/suitesparse: compiler error on CURRENT: error: '::gets' has not been declared
Product: Ports & Packages Reporter: O. Hartmann <ohartmann>
Component: Individual Port(s)Assignee: freebsd-fortran (Nobody) <fortran>
Status: Closed FIXED    
Severity: Affects Some People CC: thierry
Priority: --- Flags: bugzilla: maintainer-feedback? (fortran)
Version: Latest   
Hardware: Any   
OS: Any   

Description O. Hartmann 2019-09-18 19:37:31 UTC
On recent CURRENT (FreeBSD 13.0-CURRENT #68 r352461: Tue Sep 17 22:42:19 CEST 2019  amd64), updating port math/suitesparse on ports tree revision  512281 from suitesparse-5.2.0_4 to suitesparse-5.4.0 fails:

[...]
[  1%] Building CXX object CMakeFiles/mongoose_lib_dbg.dir/Source/Mongoose_BoundaryHeap.o
In file included from /usr/ports/math/suitesparse/work/SuiteSparse/Mongoose/Include/Mongoose_Debug.hpp:22,
                 from /usr/ports/math/suitesparse/work/SuiteSparse/Mongoose/Source/Mongoose_BoundaryHeap.cpp:14:
/usr/local/lib/gcc9/include/c++/cstdio:124:11: error: '::gets' has not been declared
  124 |   using ::gets;
      |           ^~~~
Comment 1 Thierry Thomas freebsd_committer freebsd_triage 2019-09-20 07:18:19 UTC
It appears that ::gets has been removed from C++11, then use compiler:c++0x.

Thanks for the report!
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-09-20 07:18:29 UTC
A commit references this bug:

Author: thierry
Date: Fri Sep 20 07:18:17 UTC 2019
New revision: 512392
URL: https://svnweb.freebsd.org/changeset/ports/512392

Log:
  Fix on -CURRENT.

  PR:		240672
  Reported by:	ohartmann (at) walstatt.org

Changes:
  head/math/suitesparse/Makefile