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:   [Bug 261829] lang/expect: fix build with only lang/tcl87 installed
Message-ID:  <bug-261829-30738@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261829

            Bug ID: 261829
           Summary: lang/expect: fix build with only lang/tcl87 installed
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: tcltk@FreeBSD.org
          Reporter: dim@FreeBSD.org
          Assignee: tcltk@FreeBSD.org
             Flags: maintainer-feedback?(tcltk@FreeBSD.org)

Created attachment 231676
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D231676&action=
=3Dedit
Replace CONST84 with CONST

If you have DEFAULT_VERSIONS+=3Dtcltk=3D8.7 in your make.conf, and therefor=
e 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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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