Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 09 Feb 2022 13:27:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        tcltk@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 261829] lang/expect: fix build with only lang/tcl87 installed
Message-ID:  <bug-261829-30738-ptvb01NkXZ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-261829-30738@https.bugs.freebsd.org/bugzilla/>
References:  <bug-261829-30738@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261829-30738-ptvb01NkXZ>