New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #30849 (closed defect: fixed)

Opened 22 months ago

Last modified 15 months ago

libzzip won't build correctly with clang

Reported by: msavory@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: clang Cc: ryandesign@…, david.reitter@…
Port: libzzip

Description

Clang on Lion (Clean install of Lion, MacPorts 2.0.1 from dmg, and Xcode 4.2 (4D151a)

Attachments

libzzip_build.txt (26.7 KB) - added by msavory@… 22 months ago.

Change History

Changed 22 months ago by msavory@…

comment:1 Changed 22 months ago by msavory@…

I think this is the first reported error

/bin/sh ../libtool --silent --tag=CC   --mode=link /Developer/usr/bin/clang  -pipe -O2 -arch x86_64 -D_USE_MMAP  -fomit-frame-pointer -Wall -Wpointer-arith -Wsign-compare -Wmissing-declarations -Wdeclaration-after-statement -Werror-implicit-function-declaration -Wstrict-aliasing -Warray-bounds -fstrict-prototypes -Wstrict-prototypes --export-dynamic -L/opt/local/lib -arch x86_64 -o zzipwrap zzipwrap.o libzzipwrap.la
  clang: error: unsupported option '--export-dynamic
  make[3]: *** [zzipwrap] Error 1
  make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_libzzip/libzzip/work/zziplib-0.13.60/Darwin_11.1.0_x86_64.d/zzipwrap'
  make[2]: *** [all-recursive] Error 1
  make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_libzzip/libzzip/work/zziplib-0.13.60/Darwin_11.1.0_x86_64.d'
  make[1]: *** [all] Error 2
  make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_libzzip/libzzip/work/zziplib-0.13.60/Darwin_11.1.0_x86_64.d'
  make: *** [all] Error 2
  make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_libzzip/libzzip/work/zziplib-0.13.60'
  shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_archivers_libzzip/libzzip/work/zziplib-0.13.60" && /usr/bin/make -j2 -w all " returned error 2
  Error: Target org.macports.build returned: shell command failed (see log for details)

comment:2 Changed 22 months ago by afb@…

  • Status changed from new to closed
  • Resolution set to fixed

Fixed, r82687.

comment:3 Changed 22 months ago by ryandesign@…

  • Cc ryandesign@… added

comment:4 Changed 21 months ago by msavory@…

Confirmed fixed for me, thanks

comment:5 Changed 15 months ago by david.reitter@…

  • Status changed from closed to reopened
  • Resolution fixed deleted

This is NOT fixed (for me) in 2.0.3. It tries to build with clang and fails with the same error message. (The website does not list when 2.0.3 came out, so I'm assuming it's current wrt to the mentioned fix.)

I managed to install libzzip with the following trick:

sudo port install libzzip +universal configure.compiler=llvm-gcc-4.2

found here:

http://lists.macosforge.org/pipermail/macports-users/2011-November/026470.html

comment:6 Changed 15 months ago by ryandesign@…

  • Cc david.reitter@… added
  • Status changed from reopened to closed
  • Resolution set to fixed

This issue was resolved and confirmed fixed six months ago; please do not re-open it. If you are now experiencing a problem, please "sudo port selfupdate", "sudo port clean libzzip" and try again, and if it still won't work, file a new ticket with the main.log and any other pertinent information.

Note: See TracTickets for help on using tickets.