Opened 9 years ago

Closed 9 years ago

#23021 closed defect (fixed)

upgrading git from 1.6.3.3 to 1.6.6 fails with error

Reported by: breskeby@… Owned by: bryan@…
Priority: Normal Milestone:
Component: ports Version: 1.8.1
Keywords: Cc: maccheck@…
Port: git-core

Description

I just tried to update my git-core port to the latest 1.6.6 release. It ends up with the following error message:

rene-groschkes-macbook-pro:~ Rene$ sudo port upgrade git-core
--->  Computing dependencies for curl
--->  Configuring curl
--->  Building curl
--->  Staging curl into destroot
--->  Deactivating curl @7.19.6_0
--->  Computing dependencies for curl
--->  Installing curl @7.19.7_0
--->  Activating curl @7.19.7_0
--->  Cleaning curl
--->  Computing dependencies for openssl
--->  Fetching openssl
--->  Attempting to fetch openssl-0.9.8l.tar.gz from http://www.openssl.org/source/
--->  Verifying checksum(s) for openssl
--->  Extracting openssl
--->  Applying patches to openssl
--->  Configuring openssl
--->  Building openssl
--->  Staging openssl into destroot
--->  Deactivating openssl @0.9.8k_0
--->  Computing dependencies for openssl
--->  Installing openssl @0.9.8l_0+darwin
--->  Activating openssl @0.9.8l_0+darwin
--->  Cleaning openssl
--->  Computing dependencies for git-core
--->  Fetching git-core
--->  Attempting to fetch git-1.6.6.tar.bz2 from http://www.kernel.org/pub/software/scm/git/
--->  Attempting to fetch git-manpages-1.6.6.tar.bz2 from http://www.kernel.org/pub/software/scm/git/
--->  Attempting to fetch git-htmldocs-1.6.6.tar.bz2 from http://www.kernel.org/pub/software/scm/git/
--->  Verifying checksum(s) for git-core
--->  Extracting git-core
--->  Applying patches to git-core
--->  Configuring git-core
--->  Building git-core
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_git-core/work/git-1.6.6" && /usr/bin/make -j2 all CFLAGS="-Wall -O2 -I/opt/local/include" LDFLAGS="-L/opt/local/lib" CC=/usr/bin/gcc-4.2 prefix=/opt/local CURLDIR=/opt/local OPENSSLDIR=/opt/local ICONVDIR=/opt/local PERL_PATH="/opt/local/bin/perl" NO_FINK=1 NO_DARWIN_PORTS=1 NO_R_TO_GCC_LINKER=1 " returned error 2
Command output:     CC git.o
    AR libgit.a
    AR xdiff/lib.a
    LINK git-fast-import
    LINK git-hash-object
ld: warning: in ld:/opt/local/lib/ libiconv.dylibwarning: in /opt/local/lib/libiconv.dylib, file is not of required architecture
Undefined symbols:
  "_libiconv_open", referenced from:
      _reencode_string in libgit.a(utf8.o)
  "_libiconv", referenced from:
  , file is not of required architecture
Undefined symbols:
  "_libiconv_open", referenced from:
      _reencode_string in libgit.a(utf8.o)
  "_libiconv", referenced from:
      _reencode_string   in libgit.a ( utf8.o)
_reencode_string   in libgit.a(utf8.o)
  "_libiconv_close", "_libiconv_closereferenced from:
"   , referenced from:
      _reencode_string in libgit.a(utf8.o)
      _reencode_string in libgit.a(utf8.o)
ld: symbol(s) not found
   _reencode_string in libgit.a(utf8.o)
      _reencode_string in libgit.a(utf8.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
collect2: ld returned 1 exit status
make: *** [git-hash-object] Error 1
make: *** Waiting for unfinished jobs....
make: *** [git-fast-import] Error 1

Error: Unable to upgrade port: 1

I'm using latest snowleopard with xcode Version 3.2.1 (1613)

Change History (3)

comment:1 Changed 9 years ago by mf2k (Frank Schima)

Cc: maccheck@… added
Owner: changed from macports-tickets@… to bryan@…

comment:2 Changed 9 years ago by skymoo (Adam Mercer)

warning: in /opt/local/lib/libiconv.dylib, file is not of required architecture

Have you upgraded from Leopard? If so, did you follow the Migration procedure?

comment:3 Changed 9 years ago by breskeby@…

Resolution: fixed
Status: newclosed

thought I upgraded correctly all ports to leopard, but a rerun of the Migration procedure solves my problems.

thx, René

Note: See TracTickets for help on using tickets.