[Bug 281920] devel/rlwrap: doesn't build, rl_message error

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 07 Oct 2024 12:07:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281920

Konstantin Belousov <kib@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kib@FreeBSD.org

--- Comment #1 from Konstantin Belousov <kib@FreeBSD.org> ---
The problem is that rlstd.c has the following block:
/* Moved from config.h.in because readline.h:rl_message depends on these
   defines. */
#if defined (__STDC__) && defined (HAVE_STDARG_H)
#  define PREFER_STDARG
#  define USE_VARARGS

which checks for HAVE_STDARG_H.  This assumes that the consumer a) uses
autoconf b) checks for stdarg.h c) includes config.h before any readline
headers.

As a temp fix,
CFLAGS+= -DHAVE_STDARG_H
helps.

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