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

Frederick C. Lee fclee at dialup4less.com
Wed Jun 27 08:21:00 PDT 2007


Here I go....
<connecting via phone to internet to bypass firewall>

Last login: Wed Jun 27 09:09:14 on ttyp1
Welcome to Darwin!

[/Users/Ric]sudo port -f uninstall libiconv
Password:
Error: port uninstall failed: Registry error: libiconv not registered  
as installed.

[/Users/Ric]sudo port clean libiconv
--->  Cleaning libiconv

[/Users/Ric]sudo port install libiconv
--->  Fetching libiconv
--->  Verifying checksum(s) for libiconv
--->  Extracting libiconv
--->  Configuring libiconv
--->  Building libiconv with target all
--->  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.

[/Users/Ric]

It appears I have a couple of errors.
One is obvious: It appears that I have some ppc code mixed with i386.
This is probably due to when I transferred my files from my G3/G4  
(PPC) to my MacBook Pro (i386) (part of initial configuration of  
laptop).
Perhaps I should just purge all the /opt files and start from scratch.

... can't explain Error: Target com.apple.destroot returned: shell  
command " cd

Ric.

On Jun 26, 2007, at 5:27 PM, paul beard wrote:

>
>
> On 6/26/07, Frederick C. Lee <fclee at dialup4less.com> wrote:
> /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.
>
>
>
> Hmm, seen this before. Google turns up a few things.
>
> The fix:
>
> sudo port -f uninstall libiconv
> sudo port clean libiconv
> sudo port install libiconv
>
> try that and see how you get on.
> -- 
> 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/20070627/194a4133/attachment.html


More information about the macports-users mailing list