dingjinsheng / git-osx-installer

Automatically exported from code.google.com/p/git-osx-installer
0 stars 0 forks source link

Git 1.9.2 fails von < OS X 10.9 #98

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download the 1.9.2 installer from sourceforge
2. Install it on OS X 10.8.5
3. cd into a git repo and run "git diff <whatever>"

What is the expected output? What do you see instead?
Expected:
git diff output

Actual Result:
dyld: lazy symbol binding failed: Symbol not found: ___strlcpy_chk
  Referenced from: /usr/local/git/bin/git
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: ___strlcpy_chk
  Referenced from: /usr/local/git/bin/git
  Expected in: /usr/lib/libSystem.B.dylib

Trace/BPT trap: 5

What version of the product are you using? On what operating system?
git 1.9.2 and os x 10.8.5

git 1.8.4.2 works fine. But the 1.9.2 binary won't run on OS X < 10.9
I haven't tried 1.8.5 yet.

Original issue reported on code.google.com by toni.sch...@gmail.com on 16 May 2014 at 8:21

GoogleCodeExporter commented 8 years ago
Looks like Apple has borked all backwards compatible for compiling >:

Original comment by timchar...@gmail.com on 19 May 2014 at 2:51

GoogleCodeExporter commented 8 years ago
We compile code on 10.9 that needs to run on 10.6 with the following
-mmacosx-version-min=10.6 -isysroot/Developer/SDKs/MacOSX10.6.sdk 
-DMACOSX_DEPLOYMENT_TARGET=10.6

In general -mmacosx-version-min and the correct sdk are required to build for 
older platforms. the older sdk may needs to be extracted from an older xcode 
release. depending on what versions you want and use.

But yeah, backwards compatibility with the new xcode isn't that convenient.

Original comment by toni.sch...@gmail.com on 21 May 2014 at 11:30

GoogleCodeExporter commented 8 years ago
I've been doing all of that for the past several versions, except for the flag 
" -DMACOSX_DEPLOYMENT_TARGET=10.6"

I've recently pushed a new version of the installer. Any chance you can test it 
out and see if it works now?

See this script for the changes in flags:

https://github.com/timcharper/git_osx_installer/commit/d0f138ad09d84f552ca061d60
1140359b9e3533f

Original comment by timchar...@gmail.com on 29 Jun 2014 at 8:33

GoogleCodeExporter commented 8 years ago
Issue 96 has been merged into this issue.

Original comment by timchar...@gmail.com on 29 Jun 2014 at 8:33