[MacPorts] #32071: arrsync at 0.4.1 build failed: ld: library not found for -lz.1.2.3 (was: arrsync at 0.4.1 install error buld failed)

MacPorts noreply at macports.org
Tue Nov 15 09:42:12 PST 2011


#32071: arrsync at 0.4.1 build failed: ld: library not found for -lz.1.2.3
------------------------------+---------------------------------------------
 Reporter:  cnesko@…          |       Owner:  toby@…           
     Type:  defect            |      Status:  new              
 Priority:  Normal            |   Milestone:                   
Component:  ports             |     Version:  2.0.3            
 Keywords:                    |        Port:  arrsync          
------------------------------+---------------------------------------------
Changes (by ryandesign@…):

  * owner:  macports-tickets@… => toby@…


Old description:

> Trying to install arrsync from macports and I'm getting the following
> error:
> Error: Target org.macports.build returned: shell command failed (see log
> for details)
>
> From log:
> {{{
> info:build === BUILD NATIVE TARGET arRsync OF PROJECT arRsync WITH THE
> DEFAULT CONFIGURATION (Release) ===
> :info:build Check dependencies
> :info:build Warning: The Copy Bundle Resources build phase contains this
> target's Info.plist file 'Info.plist'.
> :info:build [WARN]Warning: The Copy Bundle Resources build phase contains
> this target's Info.plist file 'Info.plist'.
> :info:build 2011-11-15 14:52:28.639 xcodebuild[4690:3803] This process is
> attempting to exclude an item from Time Machine by path without
> administrator privileges. This is not supported.
> :info:build 2011-11-15 14:52:28.640 xcodebuild[4690:3803] This process is
> attempting to exclude an item from Time Machine by path without
> administrator privileges. This is not supported.
> :info:build 2011-11-15 14:52:28.640 xcodebuild[4690:3803] This process is
> attempting to exclude an item from Time Machine by path without
> administrator privileges. This is not supported.
> :info:build Ld build/Release/arRsync.app/Contents/MacOS/arRsync normal
> x86_64
> :info:build     cd
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_arrsync/arrsync/work/arrsync-0.4.1
> :info:build     setenv MACOSX_DEPLOYMENT_TARGET 10.7
> :info:build     /Developer/usr/bin/gcc-4.2 -arch x86_64
> -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_arrsync/arrsync/work/arrsync-0.4.1/build/Release
> -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_arrsync/arrsync/work/arrsync-0.4.1/build/Release
> -filelist
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_arrsync/arrsync/work/arrsync-0.4.1/build/arRsync.build/Release/arRsync.build
> /Objects-normal/x86_64/arRsync.LinkFileList -mmacosx-version-min=10.7
> -framework Cocoa
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_arrsync/arrsync/work/arrsync-0.4.1/SmartCrashReportsInstall.o
> -framework Carbon -framework CoreFoundation -framework Security -lz.1.2.3
> -o
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_arrsync/arrsync/work/arrsync-0.4.1/build/Release/arRsync.app/Contents/MacOS/arRsync
> :info:build
> :info:build ld: library not found for -lz.1.2.3
> :info:build collect2: ld returned 1 exit status
> :info:build Command /Developer/usr/bin/gcc-4.2 failed with exit code 1
> :info:build Command /Developer/usr/bin/gcc-4.2 failed with exit code 1
> :info:build ** BUILD FAILED **
> :info:build
> :info:build
> :info:build The following build commands failed:
> :info:build arRsync:
> :info:build     Ld
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_arrsync/arrsync/work/arrsync-0.4.1/build/Release/arRsync.app/Contents/MacOS/arRsync
> normal x86_64
> :info:build (1 failure)
> :info:build
> :info:build shell command "cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_arrsync/arrsync/work/arrsync-0.4.1"
> && /usr/bin/xcodebuild  -alltargets -configuration Deployment build
> OBJROOT=build/ SYMROOT=build/ MACOSX_DEPLOYMENT_TARGET=10.7 ARCHS=x86_64
> SDKROOT="" GCC_VERSION=4.2 " returned error 1
> :error:build Target org.macports.build returned: shell command failed
> (see log for details)
> :debug:build Backtrace: shell command failed (see log for details)
>     while executing
> "$procedure $targetname"
> :info:build Warning: the following items did not execute (for arrsync):
> org.macports.activate org.macports.build org.macports.destroot
> org.macports.install
> :notice:build Log for arrsync is at:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_arrsync/arrsync/main.log
> }}}
> Seems like statically linked to the library version that is not existing.
> Suggested solution:
> http://stackoverflow.com/questions/7815174/ld-library-not-found-for-
> lz-1-2-3

New description:

 Trying to install arrsync from macports and I'm getting the following
 error:
 {{{
 Error: Target org.macports.build returned: shell command failed (see log
 for details)
 }}}

 From log:
 {{{
 info:build === BUILD NATIVE TARGET arRsync OF PROJECT arRsync WITH THE
 DEFAULT CONFIGURATION (Release) ===
 :info:build Check dependencies
 :info:build Warning: The Copy Bundle Resources build phase contains this
 target's Info.plist file 'Info.plist'.
 :info:build [WARN]Warning: The Copy Bundle Resources build phase contains
 this target's Info.plist file 'Info.plist'.
 :info:build 2011-11-15 14:52:28.639 xcodebuild[4690:3803] This process is
 attempting to exclude an item from Time Machine by path without
 administrator privileges. This is not supported.
 :info:build 2011-11-15 14:52:28.640 xcodebuild[4690:3803] This process is
 attempting to exclude an item from Time Machine by path without
 administrator privileges. This is not supported.
 :info:build 2011-11-15 14:52:28.640 xcodebuild[4690:3803] This process is
 attempting to exclude an item from Time Machine by path without
 administrator privileges. This is not supported.
 :info:build Ld build/Release/arRsync.app/Contents/MacOS/arRsync normal
 x86_64
 :info:build     cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_arrsync/arrsync/work/arrsync-0.4.1
 :info:build     setenv MACOSX_DEPLOYMENT_TARGET 10.7
 :info:build     /Developer/usr/bin/gcc-4.2 -arch x86_64
 -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_arrsync/arrsync/work/arrsync-0.4.1/build/Release
 -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_arrsync/arrsync/work/arrsync-0.4.1/build/Release
 -filelist
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_arrsync/arrsync/work/arrsync-0.4.1/build/arRsync.build/Release/arRsync.build
 /Objects-normal/x86_64/arRsync.LinkFileList -mmacosx-version-min=10.7
 -framework Cocoa
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_arrsync/arrsync/work/arrsync-0.4.1/SmartCrashReportsInstall.o
 -framework Carbon -framework CoreFoundation -framework Security -lz.1.2.3
 -o
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_arrsync/arrsync/work/arrsync-0.4.1/build/Release/arRsync.app/Contents/MacOS/arRsync
 :info:build
 :info:build ld: library not found for -lz.1.2.3
 :info:build collect2: ld returned 1 exit status
 :info:build Command /Developer/usr/bin/gcc-4.2 failed with exit code 1
 :info:build Command /Developer/usr/bin/gcc-4.2 failed with exit code 1
 :info:build ** BUILD FAILED **
 :info:build
 :info:build
 :info:build The following build commands failed:
 :info:build arRsync:
 :info:build     Ld
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_arrsync/arrsync/work/arrsync-0.4.1/build/Release/arRsync.app/Contents/MacOS/arRsync
 normal x86_64
 :info:build (1 failure)
 :info:build
 :info:build shell command "cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_arrsync/arrsync/work/arrsync-0.4.1"
 && /usr/bin/xcodebuild  -alltargets -configuration Deployment build
 OBJROOT=build/ SYMROOT=build/ MACOSX_DEPLOYMENT_TARGET=10.7 ARCHS=x86_64
 SDKROOT="" GCC_VERSION=4.2 " returned error 1
 :error:build Target org.macports.build returned: shell command failed (see
 log for details)
 :debug:build Backtrace: shell command failed (see log for details)
     while executing
 "$procedure $targetname"
 :info:build Warning: the following items did not execute (for arrsync):
 org.macports.activate org.macports.build org.macports.destroot
 org.macports.install
 :notice:build Log for arrsync is at:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_arrsync/arrsync/main.log
 }}}
 Seems like statically linked to the library version that is not existing.
 Suggested solution:
 http://stackoverflow.com/questions/7815174/ld-library-not-found-for-
 lz-1-2-3

--

Comment:

 arrsync is looking specifically for version 1.2.3 of zlib, which existed
 on Snow Leopard, but presumably not anymore on Lion. MacPorts' own zlib
 has been at 1.2.5 for awhile. It should probably just use "-lz" without
 specifying a version number, which should find MacPorts' version.

-- 
Ticket URL: <https://trac.macports.org/ticket/32071#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list