Opened 14 years ago

Closed 14 years ago

#27607 closed defect (wontfix)

I broke something: Error: Target org.macports.build returned: shell command failed (see log for details)

Reported by: rossinie@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port:

Description

If I want to install something new I get an error:

Error: Target org.macports.build returned: shell command failed (see log for details)
Error: Failed to install expat
Log for expat is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/main.log
Error: The following dependencies were not installed: libnet11 autoconf help2man gettext expat libiconv gperf ncurses ncursesw p5-locale-gettext perl5 perl5.8 m4 automake libtool libpcap openssl zlib pcre bzip2 readline
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Here is the main.log http://nopaste.info/5ac1e198ea.html

I don't know what I did wrong. I uninstalled port and all files, reinstalled it and got the same error. Any idea? THANKS

Change History (6)

comment:1 Changed 14 years ago by danielluke (Daniel J. Luke)

The log says the problem is that 'ranlib' doesn't like the '-q' argument.

It looks like you have a rogue 'ranlib' that is causing the problem. I would guess it's in /usr/local (and unfortunately the expat configure script is finding it)

comment:2 in reply to:  1 ; Changed 14 years ago by rossinie@…

Replying to dluke@…:

The log says the problem is that 'ranlib' doesn't like the '-q' argument.

It looks like you have a rogue 'ranlib' that is causing the problem. I would guess it's in /usr/local (and unfortunately the expat configure script is finding it)

If I type: ranlib. I get this:

*** Warning: inferring the mode of operation is deprecated.
*** Future versions of Libtool will require --mode=MODE be specified.
ranlib: warning: cannot infer operation mode without MODE-ARGS
ranlib: you must specify a MODE

This reminds me, I played around with Libtool. Maybe there is something broken

comment:3 in reply to:  2 Changed 14 years ago by rossinie@…

If I want to reinstall "port install libtool" i get again:

--->  Computing dependencies for libtool
--->  Dependencies to be installed: automake autoconf help2man gettext expat libiconv gperf ncurses ncursesw p5-locale-gettext perl5 perl5.8 m4
--->  Building expat
Error: Target org.macports.build returned: shell command failed (see log for details)
Error: Failed to install expat
Log for expat is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_expat/main.log
Error: The following dependencies were not installed: automake autoconf help2man gettext expat libiconv gperf ncurses ncursesw p5-locale-gettext perl5 perl5.8 m4
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Here main.log http://nopaste.info/e4bf32ae39.html

I just downloaded the newest Version of libtool . While "make"ing i get this:

rm -f libtoolize.tmp libtoolize
set dummy `/bin/sh ./libltdl/config/mkstamp .`; shift; case 2.2.10 in *[acegikmoqsuwy]) TIMESTAMP=" $1 $2" ;; *) TIMESTAMP="" ;; esac; \
	input="libtoolize.m4sh"; \
	sed -e 's,@EGREP\@,/usr/bin/grep -E,g' -e 's,@FGREP\@,/usr/bin/grep -F,g' -e 's,@GREP\@,/usr/bin/grep,g' -e 's,@LN_S\@,ln -s,g' -e 's,@MACRO_VERSION\@,2.2.10,g' -e 's,@PACKAGE\@,libtool,g' -e 's,@PACKAGE_BUGREPORT\@,bug-libtool@gnu.org,g' -e 's,@PACKAGE_NAME\@,libtool,g' -e 's,@PACKAGE_STRING\@,libtool 2.2.10,g' -e 's,@PACKAGE_TARNAME\@,libtool,g' -e 's,@PACKAGE_VERSION\@,2.2.10,g' -e 's,@SED\@,/usr/bin/sed,g' -e 's,@VERSION\@,2.2.10,g' -e 's,@aclocaldir\@,/usr/local/share/aclocal,g' -e 's,@datadir\@,/usr/local/share,g' -e 's,@pkgdatadir\@,/usr/local/share/libtool,g' -e 's,@host_triplet\@,x86_64-apple-darwin10.5.0,g' -e 's,@prefix\@,/usr/local,g' -e "s,@configure_input\@,Generated from $input.,g" -e "s,@TIMESTAMP\@,$TIMESTAMP,g" \
		-e 's,@aclocal_DATA\@,m4/argz.m4 m4/libtool.m4 m4/ltdl.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 m4/lt~obsolete.m4,g' \
		-e "s,@pkgltdl_files\@,libltdl/COPYING.LIB libltdl/README libltdl/Makefile.inc libltdl/Makefile.am libltdl/configure.ac libltdl/aclocal.m4 libltdl/Makefile.in libltdl/config-h.in libltdl/configure libltdl/argz_.h libltdl/argz.c libltdl/loaders/dld_link.c libltdl/loaders/dlopen.c libltdl/loaders/dyld.c libltdl/loaders/load_add_on.c libltdl/loaders/loadlibrary.c libltdl/loaders/shl_load.c libltdl/lt__dirent.c libltdl/lt__strl.c libltdl/libltdl/lt__alloc.h libltdl/libltdl/lt__dirent.h libltdl/libltdl/lt__glibc.h libltdl/libltdl/lt__private.h libltdl/libltdl/lt__strl.h libltdl/libltdl/lt_dlloader.h libltdl/libltdl/lt_error.h libltdl/libltdl/lt_system.h libltdl/libltdl/slist.h libltdl/loaders/preopen.c libltdl/lt__alloc.c libltdl/lt_dlloader.c libltdl/lt_error.c libltdl/ltdl.c libltdl/ltdl.h libltdl/slist.c,g" \
		-e "s,@pkgconfig_files\@,config/compile config/config.guess config/config.sub config/depcomp config/install-sh config/missing config/ltmain.sh,g" \
		./libtoolize.in > libtoolize.tmp
chmod a+x libtoolize.tmp
chmod a-w libtoolize.tmp
mv -f libtoolize.tmp libtoolize
make  all-recursive
/bin/sh ./libtool --tag=CC   --mode=link gcc  -g -O2 -module -avoid-version  -o libltdl/dlopen.la  libltdl/loaders/dlopen.lo  
libtool: link: rm -fr  libltdl/.libs/dlopen.a
libtool: link: ar cru libltdl/.libs/dlopen.a libltdl/loaders/.libs/dlopen.o 
ranlib: unrecognized option `-q'
Try `ranlib --help' for more information.
ar: internal ranlib command failed
make[2]: *** [libltdl/dlopen.la] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Any Idea?

comment:4 Changed 14 years ago by danielluke (Daniel J. Luke)

which ranlib

If you replaced or broke the system ranlib (/usr/bin/ranlib) you'll need to restore it from backup (or your Mac OS X Install DVD).

comment:5 Changed 14 years ago by rossinie@…

sh-3.2# ranlib --version
ltmain.sh (GNU libtool) 1.5.24 (1.1220.2.455 2007/06/24 02:13:29)

Copyright (C) 2007  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

ranlib is a symlink to libtool

comment:6 Changed 14 years ago by danielluke (Daniel J. Luke)

Resolution: wontfix
Status: newclosed

/usr/bin/libtool on Mac OS X is not GNU libtool (the Mac OS X/NeXT libtool actually predates GNU libtool).

Looks like you replaced Mac OS X libtool with GNU libtool, though.

You'll need to restore the correct Mac OS X libtool from backup or from your OS install media.

Note: See TracTickets for help on using tickets.