Bug 240672 - math/suitesparse: compiler error on CURRENT: error: '::gets' has not been declared
Summary: math/suitesparse: compiler error on CURRENT: error: '::gets' has not been dec...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-fortran (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-18 19:37 UTC by O. Hartmann
Modified: 2019-09-20 07:18 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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