[MacPorts] #41342: zlib: libtool: unrecognized option `-o' (was: Trying to install gphoto2)

MacPorts noreply at macports.org
Wed Nov 13 00:49:11 PST 2013


#41342: zlib: libtool: unrecognized option `-o'
-------------------------+--------------------------
  Reporter:  fastcuts@…  |      Owner:  ryandesign@…
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.2.1
Resolution:              |   Keywords:
      Port:  zlib        |
-------------------------+--------------------------
Changes (by ryandesign@…):

 * owner:  macports-tickets@… => ryandesign@…
 * port:   => zlib


Old description:

> Hi
>
> I've been trying to install gphoto2 based on instructions found here:
> http://blog.dcclark.net/2009/05/how-to-gphoto-primer.html
>
> I got an error about not being able to install Zlib.
>
> Here is the output from the gphoto2 install try.  Any ideas??
>
> --->  Fetching archive for zlib
> --->  Attempting to fetch zlib-1.2.8_0.darwin_13.x86_64.tbz2 from
> http://packages.macports.org/zlib
> --->  Attempting to fetch zlib-1.2.8_0.darwin_13.x86_64.tbz2 from
> http://lil.fr.packages.macports.org/zlib
> --->  Attempting to fetch zlib-1.2.8_0.darwin_13.x86_64.tbz2 from
> http://mse.uk.packages.macports.org/sites/packages.macports.org/zlib
> --->  Fetching distfiles for zlib
> --->  Attempting to fetch zlib-1.2.8.tar.xz from http://www.zlib.net/
> --->  Verifying checksums for zlib
> --->  Extracting zlib
> --->  Applying patches to zlib
> --->  Configuring zlib
> --->  Building zlib
> Error: org.macports.build for port zlib returned: command execution
> failed
> Error: Failed to install zlib
> Please see the log file for port zlib for details:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_distfiles.macports.org_ports_archivers_zlib/zlib/main.log
> Error: The following dependencies were not installed: libgphoto2 gd2
> fontconfig freetype libpng zlib libvpx yasm tiff autoconf m4 perl5
> perl5.12 gdbm automake libtool xpm xorg-libXext xorg-libX11 xorg-
> bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-
> libXdmcp xorg-libxcb python27 db46 db_select libedit openssl
> python_select sqlite3 xorg-libpthread-stubs xorg-xcb-proto libxml2 xorg-
> util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-
> xtrans xorg-libXt xorg-libsm xorg-libice libusb-compat libusb popt
> readline
> To report a bug, follow the instructions in the guide:
>     http://guide.macports.org/#project.tickets
> Error: Processing of port gphoto2 failed
>
> Here are the last few lines of the main.log file
>
> :info:build /usr/bin/clang -pipe -Os -arch x86_64  -fPIC -DHAVE_HIDDEN
> -DPIC -c -o objs/gzlib.o gzlib.c
> :info:build /usr/bin/clang -pipe -Os -arch x86_64  -fPIC -DHAVE_HIDDEN
> -DPIC -c -o objs/gzread.o gzread.c
> :info:build /usr/bin/clang -pipe -Os -arch x86_64  -fPIC -DHAVE_HIDDEN
> -DPIC -c -o objs/gzwrite.o gzwrite.c
> :info:build /usr/bin/libtool -o libz.a adler32.o crc32.o deflate.o
> infback.o inffast.o inflate.o inftrees.o trees.o zutil.o compress.o
> uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o
> :info:build libtool: unrecognized option `-o'
> :info:build libtool: Try `libtool --help' for more information.
> :info:build make: *** [libz.a] Error 1
> :info:build make: *** Waiting for unfinished jobs....
> :info:build make: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_distfiles.macports.org_ports_archivers_zlib/zlib/work/zlib-1.2.8'
> :info:build Command failed:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_distfiles.macports.org_ports_archivers_zlib/zlib/work/zlib-1.2.8"
> && /usr/bin/make -j8 -w all
> :info:build Exit code: 2
> :error:build org.macports.build for port zlib returned: command execution
> failed
> :debug:build Error code: CHILDSTATUS 63815 2
> :debug:build Backtrace: command execution failed
>     while executing
> "system -nice 0 $fullcmdstring"
>     ("eval" body line 1)
>     invoked from within
> "eval system $notty $nice \$fullcmdstring"
>     invoked from within
> "command_exec build"
>     (procedure "portbuild::build_main" line 8)
>     invoked from within
> "$procedure $targetname"
> :info:build Warning: targets not executed for zlib: org.macports.activate
> org.macports.build org.macports.destroot org.macports.install
> :notice:build Please see the log file for port zlib for details:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_distfiles.macports.org_ports_archivers_zlib/zlib/main.log
>
> I appreciate any help. Thanks.

New description:

 Hi

 I've been trying to install gphoto2 based on instructions found here:
 http://blog.dcclark.net/2009/05/how-to-gphoto-primer.html

 I got an error about not being able to install Zlib.

 Here is the output from the gphoto2 install try.  Any ideas??

 {{{
 --->  Fetching archive for zlib
 --->  Attempting to fetch zlib-1.2.8_0.darwin_13.x86_64.tbz2 from
 http://packages.macports.org/zlib
 --->  Attempting to fetch zlib-1.2.8_0.darwin_13.x86_64.tbz2 from
 http://lil.fr.packages.macports.org/zlib
 --->  Attempting to fetch zlib-1.2.8_0.darwin_13.x86_64.tbz2 from
 http://mse.uk.packages.macports.org/sites/packages.macports.org/zlib
 --->  Fetching distfiles for zlib
 --->  Attempting to fetch zlib-1.2.8.tar.xz from http://www.zlib.net/
 --->  Verifying checksums for zlib
 --->  Extracting zlib
 --->  Applying patches to zlib
 --->  Configuring zlib
 --->  Building zlib
 Error: org.macports.build for port zlib returned: command execution failed
 Error: Failed to install zlib
 Please see the log file for port zlib for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_distfiles.macports.org_ports_archivers_zlib/zlib/main.log
 Error: The following dependencies were not installed: libgphoto2 gd2
 fontconfig freetype libpng zlib libvpx yasm tiff autoconf m4 perl5
 perl5.12 gdbm automake libtool xpm xorg-libXext xorg-libX11 xorg-
 bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-
 libXdmcp xorg-libxcb python27 db46 db_select libedit openssl python_select
 sqlite3 xorg-libpthread-stubs xorg-xcb-proto libxml2 xorg-util-macros
 xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-
 libXt xorg-libsm xorg-libice libusb-compat libusb popt readline
 To report a bug, follow the instructions in the guide:
     http://guide.macports.org/#project.tickets
 Error: Processing of port gphoto2 failed
 }}}

 Here are the last few lines of the main.log file

 {{{
 :info:build /usr/bin/clang -pipe -Os -arch x86_64  -fPIC -DHAVE_HIDDEN
 -DPIC -c -o objs/gzlib.o gzlib.c
 :info:build /usr/bin/clang -pipe -Os -arch x86_64  -fPIC -DHAVE_HIDDEN
 -DPIC -c -o objs/gzread.o gzread.c
 :info:build /usr/bin/clang -pipe -Os -arch x86_64  -fPIC -DHAVE_HIDDEN
 -DPIC -c -o objs/gzwrite.o gzwrite.c
 :info:build /usr/bin/libtool -o libz.a adler32.o crc32.o deflate.o
 infback.o inffast.o inflate.o inftrees.o trees.o zutil.o compress.o
 uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o
 :info:build libtool: unrecognized option `-o'
 :info:build libtool: Try `libtool --help' for more information.
 :info:build make: *** [libz.a] Error 1
 :info:build make: *** Waiting for unfinished jobs....
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_distfiles.macports.org_ports_archivers_zlib/zlib/work/zlib-1.2.8'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_distfiles.macports.org_ports_archivers_zlib/zlib/work/zlib-1.2.8"
 && /usr/bin/make -j8 -w all
 :info:build Exit code: 2
 :error:build org.macports.build for port zlib returned: command execution
 failed
 :debug:build Error code: CHILDSTATUS 63815 2
 :debug:build Backtrace: command execution failed
     while executing
 "system -nice 0 $fullcmdstring"
     ("eval" body line 1)
     invoked from within
 "eval system $notty $nice \$fullcmdstring"
     invoked from within
 "command_exec build"
     (procedure "portbuild::build_main" line 8)
     invoked from within
 "$procedure $targetname"
 :info:build Warning: targets not executed for zlib: org.macports.activate
 org.macports.build org.macports.destroot org.macports.install
 :notice:build Please see the log file for port zlib for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_distfiles.macports.org_ports_archivers_zlib/zlib/main.log
 }}}

 I appreciate any help. Thanks.

--

Comment:

 I suspect you have replaced /usr/bin/libtool with a copy of GNU libtool.
 What does "`/usr/bin/libtool --version`" say? If it says it's GNU libtool,
 then I'm right and you should restore /usr/bin/libtool to the version that
 Apple provides, then clean zlib and try again.

-- 
Ticket URL: <https://trac.macports.org/ticket/41342#comment:1>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list