Project

General

Profile

Bug #2772

mod_authn_file.c:683:56: error: too few arguments provided to function-like macro invocation (memcpy)

Added by ryandesign 5 months ago. Updated 5 months ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
build_autotools
Target version:
Start date:
2016-11-25
Due date:
% Done:

100%

Missing in 1.5.x:

Description

After applying changeset 653305628989ded07c65e815b32cf0e50f95077f to fix bug #2765, lighttpd 1.4.43 fails to build on OS X El Capitan with:

mod_authn_file.c:683:56: error: too few arguments provided to function-like macro invocation
                    memcpy(sample, CONST_STR_LEN("$1$"));
                                                       ^
/usr/include/secure/_string.h:64:9: note: macro 'memcpy' defined here
#define memcpy(dest, src, len)                                  \
        ^
mod_authn_file.c:683:21: warning: expression result unused [-Wunused-value]
                    memcpy(sample, CONST_STR_LEN("$1$"));
                    ^~~~~~
1 warning and 1 error generated.

Full build log attached.

main.log View (158 KB) ryandesign, 2016-11-25 06:57

Associated revisions

Revision f635ae7a (diff)
Added by gstrauss 5 months ago

[mod_auth] compile fix for Mac OS X XCode (fixes #2772)

memcpy() may be a macro and gave error for missing arguement when
CONST_STR_LEN() macro is used (which expands to two arguments)

(thx ryandesign)

x-ref:
"mod_authn_file.c:683:56: error: too few arguments provided to function-like macro invocation (memcpy)"
https://redmine.lighttpd.net/issues/2772

History

#1 Updated by gstrauss 5 months ago

  • Status changed from New to Patch Pending
  • Target version changed from 1.4.x to 1.4.44

#2 Updated by gstrauss 5 months ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 0 to 100

Also available in: Atom