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

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

            Bug ID: 281920
           Summary: devel/rlwrap: doesn't build, rl_message error
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: uzsolt@FreeBSD.org
                CC: gamato@users.sf.net
                CC: gamato@users.sf.net
             Flags: maintainer-feedback?(gamato@users.sf.net)

cc -DHAVE_CONFIG_H -I. -I..    -I/usr/local/include
-DDATADIR=\"/usr/local/share\" -O2 -pipe  -fstack-protector-strong
-fno-strict-aliasing -MT readline.o -MD -MP -MF .deps/readline.Tpo -c -o
readline.o readline.c
readline.c:192:16: error: too many arguments to function call, expected 0, have
1
  192 |     rl_message(message);
      |     ~~~~~~~~~~ ^~~~~~~
/usr/local/include/readline/readline.h:410:12: note: 'rl_message' declared here
  410 | extern int rl_message (void);
      |            ^
1 error generated.
*** Error code 1

Stop.

The relevant part of readline.h:

#if defined (USE_VARARGS) && defined (PREFER_STDARG)                            
extern int rl_message (const char *, ...)  __attribute__((__format__ (printf,
1, 2)));
#else                                                                           
extern int rl_message ();                                                       
#endif                  


I think the USE_VARARGS or PREFER_STDARG isn't defined.

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