Created attachment 205168 [details] estic.diff estic fails to build with GCC 9: g++9 -O2 -pipe -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc9 -Wl,-rpath=/usr/local/lib/gcc9 -std=gnu++98 -DFREEBSD -g -Wall -x c++ -I /usr/local/include -fno-implicit-templates -DEXPLICIT_TEMPLATES -c bitset.cc In file included from stream.h:76, from bitset.cc:25: str.h:346:19: error: friend declaration of 'String ShowControls(const String&, unsigned int)' specifies default arguments and isn't a definition [-fpermissive] 346 | friend String ShowControls (const String& S, unsigned Style = ccDefault); | ^~~~~~~~~~~~ str.h:346:19: error: friend declaration of 'String ShowControls(const String&, unsigned int)' specifies default arguments and isn't the only declaration [-fpermissive] str.h:97:12: note: previous declaration of 'String ShowControls(const String&, unsigned int)' 97 | String ShowControls (const String& S, unsigned Style); | ^~~~~~~~~~~~ *** Error code 1 Adding -fpermissive to CXXFLAGS allows it to build, but maybe there is a nicer way? http://package22.nyi.freebsd.org/data/112amd64-default-PR238330/2019-06-09_20h29m30s/logs/errors/estic-1.61_9.log
I will test a some patches.
A commit references this bug: Author: dinoex Date: Thu Jun 27 09:59:55 UTC 2019 New revision: 505205 URL: https://svnweb.freebsd.org/changeset/ports/505205 Log: - fix build with gcc9 - fix build with clang from base on FreeBSD-11 and FreeBSD-12 PR: 238647 Changes: head/misc/estic/Makefile head/misc/estic/files/patch-str.h