Opened 9 years ago

Closed 9 years ago

#49880 closed defect (wontfix)

capstone @3.0.4_1 fails building on 10.6.8

Reported by: ron.pinz@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: haspatch Cc: aquynh@…
Port: capstone

Description

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.

Attachments (2)

main.log.gz (2.0 KB) - added by ron.pinz@… 9 years ago.
patch-patch-Makefile.diff (1.1 KB) - added by ron.pinz@… 9 years ago.
patch for the port patch-Makefile.diff

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by ron.pinz@…

Attachment: main.log.gz added

Changed 9 years ago by ron.pinz@…

Attachment: patch-patch-Makefile.diff added

patch for the port patch-Makefile.diff

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Thanks. This problem should be reported to the developers of capstone. If you've already done so, please give us the URL of the bug report.

comment:2 in reply to:  1 ; Changed 9 years ago by ron.pinz@…

Replying to ryandesign@…:

Thanks. This problem should be reported to the developers of capstone. If you've already done so, please give us the URL of the bug report.

Reported upstream, and pull request with fix submitted.

comment:3 in reply to:  2 Changed 9 years ago by ron.pinz@…

fixed upstream, this ticket can be closed.

comment:4 Changed 9 years ago by mf2k (Frank Schima)

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.