#36675: port install nmap does not work -----------------------+------------------------------ Reporter: benhsu@… | Owner: opendarwin.org@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: nmap | -----------------------+------------------------------ Changes (by ryandesign@…): * cc: dluke@… (added) * owner: macports-tickets@… => opendarwin.org@… Old description:
macports version 2.1.2 OS X version 10.8
{{{ port install nmap fails when building kerberos. Error message in build log:
info:build /usr/bin/llvm-gcc-4.2 -DSHARED -I../../../include -I./../../../include -I./.. -I./../md4 -DKRB5_DEPRECATED=1 -pipe -O2 -arch x86_64 -fno-common -Wall -Wcast-qual -Wcast-align -Wshadow -Wmissing-prototypes -Wno-format-zero-length -Woverflow -Wstrict-overflow -Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type -Wmissing- braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused- variable -Wunused-value -Wunknown-pragmas -Wsign-compare -Wnewline-eof -Werror=declaration-after-statement -Werror=variadic-macros -c arcfour_s2k.c -o arcfour_s2k.so.o && mv -f arcfour_s2k.so.o arcfour_s2k.so :info:build In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:146, :info:build from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:8, :info:build from arcfour_s2k.c:7: :info:build /usr/include/MacTypes.h: In function ‘Debugger’: :info:build /usr/include/MacTypes.h:693: error: expected declaration specifiers before ‘__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8’ :info:build /usr/include/MacTypes.h:705: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8’ :info:build /usr/include/MacTypes.h:752: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8’ :info:build /usr/include/MacTypes.h:764: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8’ :info:build /usr/include/MacTypes.h:776: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8’ :info:build /usr/include/MacTypes.h:786: error: expected declaration specifiers before ‘#pragma’ :
$ /usr/bin/llvm-gcc-4.2 -v Using built-in specs. Target: i686-apple-darwin11 Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/src/configure --disable- checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program- prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with- slibdir=/usr/lib --build=i686-apple-darwin11 --enable- llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/dst- llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx- include-dir=/usr/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00) }}}
New description: macports version 2.1.2 [[br]] OS X version 10.8 port install nmap fails when building kerberos. Error message in build log: {{{ info:build /usr/bin/llvm-gcc-4.2 -DSHARED -I../../../include -I./../../../include -I./.. -I./../md4 -DKRB5_DEPRECATED=1 -pipe -O2 -arch x86_64 -fno-common -Wall -Wcast-qual -Wcast-align -Wshadow -Wmissing-prototypes -Wno-format-zero-length -Woverflow -Wstrict-overflow -Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type -Wmissing- braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused- variable -Wunused-value -Wunknown-pragmas -Wsign-compare -Wnewline-eof -Werror=declaration-after-statement -Werror=variadic-macros -c arcfour_s2k.c -o arcfour_s2k.so.o && mv -f arcfour_s2k.so.o arcfour_s2k.so :info:build In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:146, :info:build from /System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:8, :info:build from arcfour_s2k.c:7: :info:build /usr/include/MacTypes.h: In function ‘Debugger’: :info:build /usr/include/MacTypes.h:693: error: expected declaration specifiers before ‘__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8’ :info:build /usr/include/MacTypes.h:705: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8’ :info:build /usr/include/MacTypes.h:752: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8’ :info:build /usr/include/MacTypes.h:764: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8’ :info:build /usr/include/MacTypes.h:776: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__AVAILABILITY_INTERNAL__MAC_10_0_DEP__MAC_10_8’ :info:build /usr/include/MacTypes.h:786: error: expected declaration specifiers before ‘#pragma’ : }}} {{{ $ /usr/bin/llvm-gcc-4.2 -v Using built-in specs. Target: i686-apple-darwin11 Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/src/configure --disable- checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program- prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with- slibdir=/usr/lib --build=i686-apple-darwin11 --enable- llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~25/dst- llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx- include-dir=/usr/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00) }}} -- Comment: It installs fine for me. Please attach the main.log file so we can see what went wrong. Also please try upgrading Xcode's command line tools. First ensure you have Xcode 4.5.1. Then open Xcode.app, go to the Preferences window, go to the Downloads section, and upgrade the command line tools from there. The version of llvm-gcc-4.2 installed by the current version of the command line tools is: {{{ $ /usr/bin/llvm-gcc-4.2 -v Using built-in specs. Target: i686-apple-darwin11 Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/src/configure --disable- checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program- prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with- slibdir=/usr/lib --build=i686-apple-darwin11 --enable- llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/dst- llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx- include-dir=/usr/include/c++/4.2.1 Thread model: posix gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) }}} -- Ticket URL: <https://trac.macports.org/ticket/36675#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS