Opened 13 years ago

Closed 12 years ago

#30849 closed defect (fixed)

libzzip won't build correctly with clang

Reported by: mike-savory Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.1
Keywords: clang Cc: ryandesign (Ryan Carsten Schmidt), david.reitter@…
Port: libzzip

Description

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

Attachments (1)

libzzip_build.txt (26.7 KB) - added by mike-savory 13 years ago.

Download all attachments as: .zip

Change History (7)

Changed 13 years ago by mike-savory

Attachment: libzzip_build.txt added

comment:1 Changed 13 years ago by mike-savory

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 13 years ago by afb@…

Resolution: fixed
Status: newclosed

Fixed, r82687.

comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

comment:4 Changed 13 years ago by mike-savory

Confirmed fixed for me, thanks

comment:5 Changed 12 years ago by david.reitter@…

Resolution: fixed
Status: closedreopened

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 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: david.reitter@… added
Resolution: fixed
Status: reopenedclosed

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.