please take a moment to check to make sure there is no copy of Availability.h 
in /usr/local/include  (and nothing else in /usr/local while you're there)

thanks

Ken


On 2017-10-04, at 10:36 AM, lucas.pet...@engilitycorp.com wrote:

> Hello everyone,
> 
> My OS was recently upgraded by my local sys admin to Sierra. MacPorts was 
> installed and running fine when I was using El Capitan. I now cannot get 
> MacPorts to build or install from the package. I have confirmed that I have 
> Xcode 9.0 installed and I have run the suggested commands for Xcode licenses, 
> etc.
> 
> The MacPorts-2.4.1-10.12-Sierra.pkg fails after trying to run package 
> scripts. There is no information given as an error message. The installer 
> tells me to contact the software provider. 
> 
> I have tried building from the source files as well. This fails at the first 
> build step. I am attaching the configure output. I have tried switching the 
> the configure compiler to Xcode's cc, but I get the same error:
> 
> ITLLRP-MN-21381:MacPorts-2.4.1 rditllrp$ ./configure > configure.txt
> configure: WARNING: GNUSTEP_SYSTEM_ROOT is not defined in your environment, 
> preventing the use of GNUstep's Foundation library
> configure: WARNING: No ports tree found
> ITLLRP-MN-21381:MacPorts-2.4.1 rditllrp$ make
> ===> making all in vendor
> ===> making all in vendor/tcl/unix
> gcc -c -Os -pipe    -Wall -fno-common -I"." 
> -I/Users/rditllrp/Downloads/MacPorts-2.4.1/vendor/tcl/unix/../unix 
> -I/Users/rditllrp/Downloads/MacPorts-2.4.1/vendor/tcl/unix/../generic 
> -I/Users/rditllrp/Downloads/MacPorts-2.4.1/vendor/tcl/unix/../libtommath 
> -DPACKAGE_NAME=\"tcl\" -DPACKAGE_TARNAME=\"tcl\" -DPACKAGE_VERSION=\"8.5\" 
> -DPACKAGE_STRING=\"tcl\ 8.5\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 
> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 
> -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 
> -DHAVE_UNISTD_H=1 -DNO_VALUES_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 
> -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 
> -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_ATFORK=1 
> -DHAVE_PTHREAD_GET_STACKSIZE_NP=1 -DTCL_THREADS=1 
> -DTCL_CFGVAL_ENCODING=\"iso8859-1\" -DMODULE_SCOPE=extern\ 
> __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DMAC_OSX_TCL=1 
> -DHAVE_COREFOUNDATION=1 -DHAVE_CAST_TO_UNION=1 -DTCL_SHLIB_EXT=\".dylib\" 
> -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DTCL_TOMMATH=1 -DMP_PREC=4 
> -DTCL_WIDE_INT_IS_LONG=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRTOL=1 
> -DHAVE_WAITPID=1 -DHAVE_GETADDRINFO=1 -DHAVE_GETPWUID_R_5=1 
> -DHAVE_GETPWUID_R=1 -DHAVE_GETPWNAM_R_5=1 -DHAVE_GETPWNAM_R=1 
> -DHAVE_GETGRGID_R_5=1 -DHAVE_GETGRGID_R=1 -DHAVE_GETGRNAM_R_5=1 
> -DHAVE_GETGRNAM_R=1 -DHAVE_MTSAFE_GETHOSTBYNAME=1 
> -DHAVE_MTSAFE_GETHOSTBYADDR=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 
> -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_MKTIME=1 -DHAVE_TM_GMTOFF=1 
> -DHAVE_TIMEZONE_VAR=1 -DHAVE_STRUCT_STAT_ST_BLOCKS=1 
> -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_BLKCNT_T=1 -DHAVE_INTPTR_T=1 
> -DHAVE_UINTPTR_T=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_CHFLAGS=1 
> -DHAVE_GETATTRLIST=1 -DHAVE_COPYFILE_H=1 -DHAVE_COPYFILE=1 
> -DHAVE_LIBKERN_OSATOMIC_H=1 -DHAVE_OSSPINLOCKLOCK=1 -DUSE_VFORK=1 
> -DTCL_DEFAULT_ENCODING=\"utf-8\" -DTCL_LOAD_FROM_MEMORY=1 -DTCL_WIDE_CLICKS=1 
> -DHAVE_AVAILABILITYMACROS_H=1 -DHAVE_WEAK_IMPORT=1 -D_DARWIN_C_SOURCE=1 
> -DHAVE_FTS=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 -DTCL_UNLOAD_DLLS=1 
> -DHAVE_CPUID=1      -DSTATIC_BUILD 
> /Users/rditllrp/Downloads/MacPorts-2.4.1/vendor/tcl/unix/../generic/tclStubLib.c
> In file included from 
> /Users/rditllrp/Downloads/MacPorts-2.4.1/vendor/tcl/unix/../generic/tclStubLib.c:14:
> In file included from 
> /Users/rditllrp/Downloads/MacPorts-2.4.1/vendor/tcl/unix/../generic/tclInt.h:36:
> In file included from 
> /Users/rditllrp/Downloads/MacPorts-2.4.1/vendor/tcl/unix/../generic/tclPort.h:23:
> In file included from ./tclUnixPort.h:622:
> /usr/include/pthread.h:423:25: error: expected parameter declarator
> __SWIFT_UNAVAILABLE_MSG("Use lazily initialized globals instead")
>                         ^
> /usr/include/pthread.h:423:25: error: expected ')'
> /usr/include/pthread.h:423:24: note: to match this '('
> __SWIFT_UNAVAILABLE_MSG("Use lazily initialized globals instead")
>                        ^
> /usr/include/pthread.h:424:51: error: expected ';' after top level declarator
> __OSX_AVAILABLE_STARTING(__MAC_10_4, __IPHONE_2_0)
>                                                   ^
> 3 errors generated.
> make[2]: *** [tclStubLib.o] Error 1
> make[1]: *** [all-tcl] Error 2
> make: *** [all] Error 1
> 
> Any advice is appreciated. 
> 
> Thanks,
> 
> Lucas Pettey, PhD 
> 
> <configure.txt>

Reply via email to