[MacPorts] #49880: capstone @3.0.4_1 fails building on 10.6.8

MacPorts noreply at macports.org
Wed Dec 2 09:58:30 PST 2015


#49880: capstone @3.0.4_1 fails building on 10.6.8
------------------------+--------------------------------
 Reporter:  ron.pinz@…  |      Owner:  macports-tickets@…
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.3.4
 Keywords:  haspatch    |       Port:  capstone
------------------------+--------------------------------
 While installing capstone 3.0.4_1 the following error was encountered:

 {{{
 :info:build ld: unknown option: -soname
 :info:build collect2: ld returned 1 exit status
 :info:build make: *** [libcapstone.so] Error 1
 :info:build make: *** Waiting for unfinished jobs....
 :info:build ar: creating archive ./libcapstone.a
 }}}

 A quick look at the Makefile showed that the following excerpt is
 responsible for determining if compilation is taking place with an Apple
 version of the Clang compiler distributed with XCode >= 4.4.

 {{{
 IS_APPLE := $(shell $(CC) -dM -E - < /dev/null | grep
 __apple_build_version__ | wc -l | tr -d " ")
 ifeq ($(IS_APPLE),1)
 EXT = dylib
 VERSION_EXT = $(API_MAJOR).$(EXT)
 $(LIBNAME)_LDFLAGS += -dynamiclib -install_name
 $(PREFIX)/lib/lib$(LIBNAME).$(VERSION_EXT) -current_version
 $(PKG_MAJOR).$(PKG_MINOR).$(PKG_EXTRA) -compatibility_version
 $(PKG_MAJOR).$(PKG_MINOR)
 AR_EXT = a
 }}}

 Testing the shell command :
 {{{
 $ cc -dM -E - < /dev/null | grep __apple_build_version__ | wc -l | tr -d "
 "
 0
 }}}

 Output of shell command 'fix':
 {{{
 $ cc -dM -E - < /dev/null | grep -e __apple_build_version__ -e
 __APPLE_CC__ | wc -l | tr -d " "
 1
 }}}

 Attached please find the corresponding main.log, and a suggested patch for
 patch-Makefile.diff.  Because the port already utilizes a patch for the
 Makefile the included patch is a patch for the patch-Makefile.diff.

-- 
Ticket URL: <https://trac.macports.org/ticket/49880>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list