Port upgrade problems

David Perlman dperlman at wisc.edu
Wed Aug 17 13:37:49 PDT 2011


I am pretty deep down a rabbit hole which started with just trying to install ffmpeg.  Getting along a little bit at a time...  but now having these errors:

Trinley:macports omgoleus$ sudo port selfupdate
--->  Updating the ports tree
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.0.1 installed,
MacPorts base version 2.0.1 downloaded.
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated

#########So far so good.  But now:

Trinley:macports omgoleus$ sudo port upgrade outdated
--->  Computing dependencies for sqlite3
--->  Configuring sqlite3
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Log for sqlite3 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_sqlite3/sqlite3/main.log
Error: Unable to upgrade port: 1
To report a bug, see <http://guide.macports.org/#project.tickets>

##########And also:

Trinley:macports omgoleus$ sudo port install autoconf
--->  Computing dependencies for autoconf
--->  Configuring autoconf
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Log for autoconf is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_autoconf/autoconf/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
Trinley:macports omgoleus$ 


############The last few lines of the log for sqlite3 are:

:info:configure checking for whether to support dynamic extensions... yes
:info:configure checking for posix_fallocate... no
:info:configure configure: creating ./config.status
:info:configure config.status: creating Makefile
:info:configure dyld: Library not loaded: /opt/local/lib/libintl.8.dylib
:info:configure   Referenced from: /opt/local/bin/gawk
:info:configure   Reason: no suitable image found.  Did find:
:info:configure 	/opt/local/lib/libintl.8.dylib: mach-o, but wrong architecture
:info:configure sed: stdout: Broken pipe
:info:configure ./config.status: line 886: 43309 Done(1)                 eval sed \"\$ac_sed_extra\" "$ac_file_inputs"
:info:configure      43310 Trace/BPT trap          | $AWK -f "$tmp/subs.awk" > $tmp/out
:info:configure config.status: error: could not create Makefile
:info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_sqlite3/sqlite3/work/sqlite-autoconf-3070701" && ./configure --prefix=/opt/local --enable-threadsafe --enable-dynamic-extensions --enable-readline " returned error 1
:error:configure Target org.macports.configure returned: configure failure: shell command failed (see log for details)
:debug:configure Backtrace: configure failure: shell command failed (see log for details)
    while executing
"$procedure $targetname"
:info:configure Warning: the following items did not execute (for sqlite3): org.macports.install org.macports.configure org.macports.build org.macports.destroot
:notice:configure Log for sqlite3 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_sqlite3/sqlite3/main.log


#############And the last few lines of the log for autoconf are:

:info:configure configure: creating ./config.status
:info:configure config.status: creating tests/Makefile
:info:configure dyld: Library not loaded: /opt/local/lib/libintl.8.dylib
:info:configure   Referenced from: /opt/local/bin/gawk
:info:configure   Reason: no suitable image found.  Did find:
:info:configure 	/opt/local/lib/libintl.8.dylib: mach-o, but wrong architecture
:info:configure sed: stdout: Broken pipe
:info:configure ./config.status: line 894: 76258 Done(1)                 eval sed \"\$ac_sed_extra\" "$ac_file_inputs"
:info:configure      76259 Trace/BPT trap          | $AWK -f "$ac_tmp/subs.awk" > $ac_tmp/out
:info:configure config.status: error: could not create tests/Makefile
:info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_autoconf/autoconf/work/autoconf-2.68" && ./configure --prefix=/opt/local " returned error 1
:error:configure Target org.macports.configure returned: configure failure: shell command failed (see log for details)
:debug:configure Backtrace: configure failure: shell command failed (see log for details)
    while executing
"$procedure $targetname"
:info:configure Warning: the following items did not execute (for autoconf): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
:notice:configure Log for autoconf is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_autoconf/autoconf/main.log


################
That file /opt/local/lib/libintl.8.dylib  is present, and readable by everyone.  I googled that filename and found references having to do with old installs of MacPorts, linking to a Migration guide.  I followed the steps there.  Reverting macports.conf to macports.conf.default went OK.  Then I ran into trouble on the next step:

Trinley:macports omgoleus$ sudo port -f uninstall --follow-dependents installed
--->  Deactivating 1Dmean @1.0_0
--->  Uninstalling 1Dmean @1.0_0
Error: port uninstall failed: error deleting "/opt/local/var/macports/software/1Dmean/1.0_0": directory not empty



I had MacPorts installed a long time ago, and just reinstalled it from precompiled binary, then ran sudo port selfupdate and sudo port upgrade outdated.  To get that to work at all, I had to edit /opt/local/etc/macports/sources.conf to remove some local ports directories that someone else had set up a long time ago.

Currently that file only says 
rsync://rsync.macports.org/release/ports/ [default]

which I think is right?

Any help would be appreciated, this has gotten way out of hand.  :)


--
-dave----------------------------------------------------------------
"Let us work without theorizing... 'tis the only way to make life endurable."
- Voltaire, Candide, Chapter 30



More information about the macports-users mailing list