^
exports.c:2906:13: error: redefinition of ‘ap_hack_apr_uid_name_get’
const void ap_hack_apr_uid_name_get = (const void )apr_uid_name_get;
^
exports.c:1763:13: note: previous definition of ‘ap_hack_apr_uid_name_get’ was here
const void ap_hack_apr_uid_name_get = (const void )apr_uid_name_get;
^
exports.c:2907:13: error: redefinition of ‘ap_hack_apr_uid_get’
const void ap_hack_apr_uid_get = (const void )apr_uid_get;
^
exports.c:1764:13: note: previous definition of ‘ap_hack_apr_uid_get’ was here
const void ap_hack_apr_uid_get = (const void )apr_uid_get;
^
exports.c:2908:13: error: redefinition of ‘ap_hack_apr_uid_homepath_get’
const void ap_hack_apr_uid_homepath_get = (const void )apr_uid_homepath_get;
^
exports.c:1765:13: note: previous definition of ‘ap_hack_apr_uid_homepath_get’ was here
const void ap_hack_apr_uid_homepath_get = (const void )apr_uid_homepath_get;
^
exports.c:2913:13: error: redefinition of ‘ap_hack_apr_gid_name_get’
const void ap_hack_apr_gid_name_get = (const void )apr_gid_name_get;
^
exports.c:1770:13: note: previous definition of ‘ap_hack_apr_gid_name_get’ was here
const void ap_hack_apr_gid_name_get = (const void )apr_gid_name_get;
^
exports.c:2914:13: error: redefinition of ‘ap_hack_apr_gid_get’
const void ap_hack_apr_gid_get = (const void )apr_gid_get;
^
exports.c:1771:13: note: previous definition of ‘ap_hack_apr_gid_get’ was here
const void ap_hack_apr_gid_get = (const void )apr_gid_get;
^
exports.c:2932:13: error: redefinition of ‘ap_hack_apr_version’
const void ap_hack_apr_version = (const void )apr_version;
^
exports.c:1782:13: note: previous definition of ‘ap_hack_apr_version’ was here
const void ap_hack_apr_version = (const void )apr_version;
^
exports.c:2933:13: error: redefinition of ‘ap_hack_apr_version_string’
const void ap_hack_apr_version_string = (const void )apr_version_string;
这种问题一般都是头文件或者库之类的有冲突引起的,这2个地址参考下
https://geekflare.com/error-redefinition-of-ap-hack-apr-allocator-create/
http://blog.chinaunix.net/uid-12274566-id-3761679.html