Opened 12 years ago

Closed 12 years ago

#32071 closed defect (fixed)

arrsync@0.4.1 build failed: ld: library not found for -lz.1.2.3

Reported by: cnesko@… Owned by: tobypeterson
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: arrsync

Description (last modified by ryandesign (Ryan Carsten Schmidt))

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

Change History (3)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to toby@…
Summary: arrsync@0.4.1 install error buld failedarrsync@0.4.1 build failed: ld: library not found for -lz.1.2.3

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.

comment:2 Changed 12 years ago by tobypeterson

Status: newassigned

Last I looked, the arrsync Xcode project is too old to edit these days. May need to create a new Xcode project.

comment:3 Changed 12 years ago by tobypeterson

Resolution: fixed
Status: assignedclosed

Actually, it looks like jmr fixed this in r91658

Note: See TracTickets for help on using tickets.