maintainer-feedback requested: [Bug 261829] lang/expect: fix build with only lang/tcl87 installed
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 261829] lang/expect: fix build with only lang/tcl87 installed"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 09 Feb 2022 13:27:25 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-tcltk (Nobody) <tcltk@FreeBSD.org> for maintainer-feedback: Bug 261829: lang/expect: fix build with only lang/tcl87 installed https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261829 --- Description --- If you have DEFAULT_VERSIONS+=tcltk=8.7 in your make.conf, and therefore only have lang/tcl87 installed, lang/expect does not compile, complaining about an bad identifier "CONST84". With the older lang/tcl86 installed, this is defined in /usr/local/include/tcl8.6/tcl.h: #ifdef USE_NON_CONST # ifdef USE_COMPAT_CONST # error define at most one of USE_NON_CONST and USE_COMPAT_CONST # endif # define CONST84 # define CONST84_RETURN #else # ifdef USE_COMPAT_CONST # define CONST84 # define CONST84_RETURN const # else # define CONST84 const # define CONST84_RETURN const # endif #endif #ifndef CONST86 # define CONST86 CONST84 #endif Since we are now in the next millennium, we can assume const always works, and replace the CONST84 macro with just CONST.