Opened 12 years ago
Closed 12 years ago
#36675 closed defect (worksforme)
port install nmap does not work
Reported by: | benhsu@… | Owned by: | opendarwin.org@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | Cc: | danielluke (Daniel J. Luke) | |
Port: | nmap |
Description (last modified by ryandesign (Ryan Carsten Schmidt))
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)
Change History (3)
comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | dluke@… added |
---|---|
Description: | modified (diff) |
Owner: | changed from macports-tickets@… to opendarwin.org@… |
comment:2 Changed 12 years ago by benhsu@…
Updating Xcode and installing command line tools fixed this
comment:3 Changed 12 years ago by ghosthound
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Submitter indicated upgrading xcode and installing CLI tools resolved the issue.
Note: See
TracTickets for help on using
tickets.
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: