bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-mailutils] compilation on Mac OS 10.14.3


From: Oliver Kuehn
Subject: [bug-mailutils] compilation on Mac OS 10.14.3
Date: Sat, 23 Feb 2019 20:02:57 +0100

Hi - 
I was trying to compile the latest mailutils on my MacBook, but failed. 

The compiler is

CC --version
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.2.0

Error messages are given below.

Any help would be appreciated.

Thanks, Oliver

-------------------------------------------------------------

 CC       shell.o
shell.c:328:27: error: expected _expression_
    (rl_completion_func_t*) shell_completion;
                          ^
shell.c:328:6: error: use of undeclared identifier 'rl_completion_func_t'; did you mean 'rl_completion_matches'?
    (rl_completion_func_t*) shell_completion;
     ^~~~~~~~~~~~~~~~~~~~
     rl_completion_matches
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/readline/history.h:202:16: note: 'rl_completion_matches' declared
      here
char           **rl_completion_matches(const char *, rl_compentry_func_t *);
                 ^
shell.c:426:25: warning: incompatible pointer types assigning to 'Function *' (aka 'int (*)(const char *, int)') from 'int (void)' [-Wincompatible-pointer-types]
      rl_pre_input_hook = pre_input;
                        ^ ~~~~~~~~~
shell.c:444:11: warning: implicit declaration of function 'history_list' is invalid in C99 [-Wimplicit-function-declaration]
  hlist = history_list ();
          ^
shell.c:444:9: warning: incompatible integer to pointer conversion assigning to 'HIST_ENTRY **' (aka 'struct _hist_entry **') from 'int' [-Wint-conversion]
  hlist = history_list ();
        ^ ~~~~~~~~~~~~~~~
3 warnings and 2 errors generated.
make[3]: *** [shell.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


reply via email to

[Prev in Thread] Current Thread [Next in Thread]