You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Jim Jagielski <ji...@jaguNET.com> on 2019/05/01 09:57:01 UTC
Re: apr 1.7.0 configure fails on macOS with Xcode 10.2.1 SDK
MacOSX10.14.sdk
Does setting the env-var MACOSX_DEPLOYMENT_TARGET not work?
> On Apr 26, 2019, at 6:22 AM, Barry Scott <ba...@barrys-emacs.org> wrote:
>
> I have found the problem and its in the way I setup CFLAGS and LDFLAGS.
>
> In the past it was necessary to setup the env like this so that the build use the Mac OSX SDK so that you can target older Mac OSX releases:
>
> export CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
> export CFLAGS="-arch ${BUILD_ARCH} -isysroot ${SDK_FOLDER}/${MACOSX_SDK} -Wno-deprecated-declarations"
> export LDFLAGS="-arch ${BUILD_ARCH} -Wl,-syslibroot,${SDK_FOLDER}/${MACOSX_SDK}"
>
> But with the latest Xcode that no longer works as it did, however I can use newer clang options:
>
> export CFLAGS="-arch ${BUILD_ARCH} -mmacosx-version-min=${ALL_MACOSX_DEPLOYMENT_TARGETS} -Wno-deprecated-declarations"
> export LDFLAGS="-arch ${BUILD_ARCH} -mmacosx-version-min=${ALL_MACOSX_DEPLOYMENT_TARGETS}"
>
> With that changed I can configure. I will follow up if there are any more changes that are worth recording here.
>
> Barry
>
>
>
>> On 24 Apr 2019, at 19:39, William A Rowe Jr <wrowe@rowe-clan.net <ma...@rowe-clan.net>> wrote:
>>
>> Hi Barry,
>>
>> you are looking at the latest consensus code spanning BSD and OS/X in two variants.
>>
>> It would help us if you would share your config.log and entire output of ./configure along with cc -version type data for the applicable compiler.
>>
>>
>> On Wed, Apr 24, 2019 at 1:04 PM Barry Scott <barry@barrys-emacs.org <ma...@barrys-emacs.org>> wrote:
>> I use ./configure --prefix=/usr/local/svn and see the error:
>> ...
>> checking whether int64_t and long long use fmt %lld... no
>> configure: error: could not determine the string function for int64_t
>>
>> Looking in config.log I see this:
>>
>> configure:24313: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -c -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -Wno-deprecated-declarations -Werror -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 conftest.c >&5
>> In file included from conftest.c:149:
>> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:109:
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_gid_t.h:31:25: error: cannot combine with previous 'type-name' declaration specifier
>> typedef __darwin_gid_t gid_t;
>> ^
>> ./confdefs.h:137:15: note: expanded from macro 'gid_t'
>> #define gid_t int
>> ^
>> In file included from conftest.c:149:
>> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:128:
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_uid_t.h:31:31: error: cannot combine with previous 'type-name' declaration specifier
>> typedef __darwin_uid_t uid_t;
>> ^
>> ./confdefs.h:136:15: note: expanded from macro 'uid_t'
>> #define uid_t int
>> ^
>> In file included from conftest.c:149:
>> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:167:
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_ssize_t.h:31:33: error: cannot combine with previous 'type-name' declaration specifier
>> typedef __darwin_ssize_t ssize_t;
>> ^
>> ./confdefs.h:138:17: note: expanded from macro 'ssize_t'
>> #define ssize_t int
>> ^
>> 3 errors generated.
>>
>> Clearly configdefs.h must not define ssize_t - is this a know problem?
>> Is there a patch I help can test?
>>
>> Barry
>>
>
Re: apr 1.7.0 configure fails on macOS with Xcode 10.2.1 SDK
MacOSX10.14.sdk
Posted by Barry Scott <ba...@barrys-emacs.org>.
> On 1 May 2019, at 10:57, Jim Jagielski <ji...@jaguNET.com> wrote:
>
> Does setting the env-var MACOSX_DEPLOYMENT_TARGET not work?
>
I found, a long time ago, that it was not enough and that's when I started adding the -isysroot stuff.
Barry
>> On Apr 26, 2019, at 6:22 AM, Barry Scott <barry@barrys-emacs.org <ma...@barrys-emacs.org>> wrote:
>>
>> I have found the problem and its in the way I setup CFLAGS and LDFLAGS.
>>
>> In the past it was necessary to setup the env like this so that the build use the Mac OSX SDK so that you can target older Mac OSX releases:
>>
>> export CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
>> export CFLAGS="-arch ${BUILD_ARCH} -isysroot ${SDK_FOLDER}/${MACOSX_SDK} -Wno-deprecated-declarations"
>> export LDFLAGS="-arch ${BUILD_ARCH} -Wl,-syslibroot,${SDK_FOLDER}/${MACOSX_SDK}"
>>
>> But with the latest Xcode that no longer works as it did, however I can use newer clang options:
>>
>> export CFLAGS="-arch ${BUILD_ARCH} -mmacosx-version-min=${ALL_MACOSX_DEPLOYMENT_TARGETS} -Wno-deprecated-declarations"
>> export LDFLAGS="-arch ${BUILD_ARCH} -mmacosx-version-min=${ALL_MACOSX_DEPLOYMENT_TARGETS}"
>>
>> With that changed I can configure. I will follow up if there are any more changes that are worth recording here.
>>
>> Barry
>>
>>
>>
>>> On 24 Apr 2019, at 19:39, William A Rowe Jr <wrowe@rowe-clan.net <ma...@rowe-clan.net>> wrote:
>>>
>>> Hi Barry,
>>>
>>> you are looking at the latest consensus code spanning BSD and OS/X in two variants.
>>>
>>> It would help us if you would share your config.log and entire output of ./configure along with cc -version type data for the applicable compiler.
>>>
>>>
>>> On Wed, Apr 24, 2019 at 1:04 PM Barry Scott <barry@barrys-emacs.org <ma...@barrys-emacs.org>> wrote:
>>> I use ./configure --prefix=/usr/local/svn and see the error:
>>> ...
>>> checking whether int64_t and long long use fmt %lld... no
>>> configure: error: could not determine the string function for int64_t
>>>
>>> Looking in config.log I see this:
>>>
>>> configure:24313: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -c -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -Wno-deprecated-declarations -Werror -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 conftest.c >&5
>>> In file included from conftest.c:149:
>>> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:109:
>>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_gid_t.h:31:25: error: cannot combine with previous 'type-name' declaration specifier
>>> typedef __darwin_gid_t gid_t;
>>> ^
>>> ./confdefs.h:137:15: note: expanded from macro 'gid_t'
>>> #define gid_t int
>>> ^
>>> In file included from conftest.c:149:
>>> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:128:
>>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_uid_t.h:31:31: error: cannot combine with previous 'type-name' declaration specifier
>>> typedef __darwin_uid_t uid_t;
>>> ^
>>> ./confdefs.h:136:15: note: expanded from macro 'uid_t'
>>> #define uid_t int
>>> ^
>>> In file included from conftest.c:149:
>>> In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:167:
>>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_ssize_t.h:31:33: error: cannot combine with previous 'type-name' declaration specifier
>>> typedef __darwin_ssize_t ssize_t;
>>> ^
>>> ./confdefs.h:138:17: note: expanded from macro 'ssize_t'
>>> #define ssize_t int
>>> ^
>>> 3 errors generated.
>>>
>>> Clearly configdefs.h must not define ssize_t - is this a know problem?
>>> Is there a patch I help can test?
>>>
>>> Barry
>>>
>>
>