> On 1 May 2019, at 10:57, Jim Jagielski <j...@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 <ba...@barrys-emacs.org >> <mailto: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 <wr...@rowe-clan.net >>> <mailto:wr...@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 <ba...@barrys-emacs.org >>> <mailto:ba...@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 >>> >> >