Working with MacPorts on MacBook Pro (Intel) and rsync problems.

Frederick C. Lee fclee at dialup4less.com
Tue Jun 26 16:18:25 PDT 2007


Okay, here we go...
--- connecting via telephone to bypass firewall:

1) Update MacPorts:

[/Users/Ric]sudo port selfupdate
Password:
DarwinPorts base version 1.400 installed
Downloaded MacPorts base version 1.442
Configuring, Building and Installing new MacPorts base
selfupdate done!

[/Users/Ric]port --version
MacPorts 1.442
Entering interactive mode... ("help" for help, "quit" to quit)
[Users/Ric] > exit
Goodbye

--- Okay, so far, so good!

2) Installing the libiconv:

[/Users/Ric]sudo port
MacPorts 1.442
Entering interactive mode... ("help" for help, "quit" to quit)
[Users/Ric] > install -f libiconv
--->  Fetching libiconv
--->  Attempting to fetch libiconv-1.11.tar.gz from http:// 
ftp.gnu.org/gnu/libiconv
--->  Verifying checksum(s) for libiconv
--->  Extracting libiconv
--->  Configuring libiconv
alloc: invalid block: 0x313308: 0 0 8

Abort

Oh-ohhh...

Try again in verbose mode:

[/Users/Ric]sudo port install -fv libiconv
--->  Staging libiconv into destroot
Error: Target com.apple.destroot returned: shell command " cd "/opt/ 
local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_textproc_libiconv/work/libiconv-1.11" && make install DESTDIR=/ 
opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_textproc_libiconv/work/destroot " returned error 2
Command output: chmod 644 /opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_textproc_libiconv/work/destroot/opt/local/lib/libiconv.a
ranlib /opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_textproc_libiconv/work/destroot/opt/local/lib/libiconv.a
libtool: install: warning: remember to run `libtool --finish /opt/ 
local/lib'
if test -n ""; then /usr/bin/install -c -m 644  /opt/local/var/db/ 
dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_textproc_libiconv/work/destroot/opt/local/lib/.new && mv /opt/ 
local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_textproc_libiconv/work/destroot/opt/local/lib/.new /opt/local/ 
var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_textproc_libiconv/work/destroot/opt/local/lib/ ; fi
cd srclib && make install prefix='/opt/local' exec_prefix='/opt/ 
local' libdir='/opt/local/lib'
make  install-am
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
cd src && make install prefix='/opt/local' exec_prefix='/opt/local'  
libdir='/opt/local/lib'
test `ls -ld . | sed -e 's/^d\(.........\).*/\1/'` = rwxrwxrwx ||  
chmod 777 .
if [ ! -d /opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_textproc_libiconv/work/destroot/opt/local ] ; then /bin/sh ../ 
build-aux/mkinstalldirs /opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_textproc_libiconv/work/destroot/opt/local ; fi
if [ ! -d /opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_textproc_libiconv/work/destroot/opt/local ] ; then /bin/sh ../ 
build-aux/mkinstalldirs /opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_textproc_libiconv/work/destroot/opt/local ; fi
if [ ! -d /opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_textproc_libiconv/work/destroot/opt/local/bin ] ; then /bin/ 
sh ../build-aux/mkinstalldirs /opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_textproc_libiconv/work/destroot/opt/local/bin ; fi
case "darwin8.10.1" in \
   hpux*) gcc -L/opt/local/lib `if test -n ''; then  /opt/local/bin;  
fi` iconv.o ../srclib/libicrt.a -L/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_textproc_libiconv/work/destroot/opt/local/lib -liconv  `if test - 
n '/opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_textproc_libiconv/work/destroot'; then echo " -Wl,+b -Wl,/opt/ 
local/lib"; fi` -o iconv;; \
   *) /bin/sh ../libtool --mode=link gcc -L/opt/local/lib `if test -n  
''; then  /opt/local/bin; fi` iconv.o ../srclib/libicrt.a /opt/local/ 
var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_textproc_libiconv/work/destroot/opt/local/lib/libiconv.la  -o  
iconv;; \
esac
gcc iconv.o -o iconv  -L/opt/local/lib ../srclib/libicrt.a /opt/local/ 
lib/libiconv.dylib
/usr/bin/ld: warning /opt/local/lib/libiconv.dylib cputype (18,  
architecture ppc) does not match cputype (7) for specified -arch  
flag: i386 (file not loaded)
/usr/bin/ld: Undefined symbols:
__libiconv_version
_iconv_canonicalize
_libiconv
_libiconv_close
_libiconv_open
_libiconvctl
_libiconvlist
collect2: ld returned 1 exit status
make[1]: *** [install] Error 1
make: *** [install] Error 2

Error: Status 1 encountered during processing.

It looks like part of the reason is that I may have some PPC code vs  
i386 code and hence it bombed.

Shall look into this.

Ric.

------------------------------------------------------------------------ 
------------------



On Jun 26, 2007, at 3:58 PM, paul beard wrote:

> You need to reply all so the whole list gets the thread: good for  
> archiving and in case anyone has additional input.
>
> On 6/26/07, Frederick C. Lee < fclee at dialup4less.com> wrote:
>
>
>
>
> Yet I MacPorts still fails to install ruby:
> [/Users/Ric]sudo port
> Password:
> MacPorts 1.400
> Entering interactive mode... ("help" for help, "quit" to quit)
> [Users/Ric] > install ruby
> Error: Dependency 'libiconv' not found.
> Error: Status 1 encountered during processing.
>
> Is there an environment variable that searches for libraries (like  
> PATH for bins)?
> I looked in MacPorts and it doesn't <explicitly>  provide it.
>
> Well, yes, macports should have tweaked your path at install time.
>
> /opt/local/bin:/opt/local/sbin:/usr/local/bin:/bin:/sbin:/usr/bin:/ 
> usr/sbin
>
> PATH="/opt/local/bin:/opt/local/sbin:/usr/local/bin:/bin:/sbin:/usr/ 
> bin:/usr/sbin"
> export PATH
> MANPATH=${MANPATH}:/opt/local/share/man
> export MANPATH
> INFOPATH=${INFOPATH}:/opt/local/share/info
> export INFOPATH
>
> OK, first off, run port selfupdate: that will get you to version  
> 1.442. It will download all the updated portfiles as well. Next,  
> install libiconv with the force option: it may be installed, as it  
> having all the parts in place, but it's not registered so the ports  
> system will keep complaining.
>
> so:
> [Users/paul] > version
> Version: 1.442
> [Users/paul] > selfupdate
> <time passes>
> [Users/paul] >install -f libiconv
> <time passes>
> [Users/paul] > install ruby
>
> my concern is this fails is that having fink and macports co- 
> existing somehow messed things up.
>
>
>
>
>
>
> -- 
> Paul Beard / www.paulbeard.org/
> <paulbeard at gmail.com/paulbeard at mac.com>

Frederick C. Lee
fclee at dialup4less.com

"Make no mistake about it, I understand how tough it is, sir. I talk  
to families who die."
--George W. Bush, Washington, D.C., Dec. 7, 2006





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20070626/03992aa2/attachment.html


More information about the macports-users mailing list