On 08/14/2014 02:13 PM, Markus Hitter wrote:
I'm new to this list, so: Hello everybody!
My backup servers run Mac OS X 10.4.10. Yes, these are old, but very
reliable and easily up to the task. And Mac OS X 10.4 is the latest OS
supported there (PowerPC G3).
Recently I tried to upgrade to v2.0.4 (from 22.214.171.124).
Issue 1: I get many of these warnings:
LINK [many cases]
/usr/bin/ld: warning multiple definitions of symbol _regcomp
libgit.a(regex.o) definition of _regcomp in section (__TEXT,__text)
definition of _regcomp
/usr/bin/ld: warning multiple definitions of symbol _regexec
libgit.a(regex.o) definition of _regexec in section (__TEXT,__text)
definition of _regexec
/usr/bin/ld: warning multiple definitions of symbol _regfree
libgit.a(regex.o) definition of _regfree in section (__TEXT,__text)
definition of _regfree
Is this expected?
Git has its own regcomp() (and the regXXX() ) in ./compat/regex/*, and
for some reasons the linker
picks them both from libgit.a (which is a static library) and the
dynamic library in libSystem.dylib
Either the linker needs to be convinced not to do that (by changing the
command line to the linker,
changing the order of libraries may help, I don't know)
Or each regcomp in the .h and .c files is changed into git_regcomp.
This change shouldn't break anything.
Issue 2: I need this simple patch ...
--- compat/apple-common-crypto.h.org 2014-07-30 23:19:53.000000000 +0200
+++ compat/apple-common-crypto.h 2014-08-14 12:57:37.000000000 +0200
@@ -2,7 +2,7 @@
#define HMAC_CTX CCHmacContext
#define HMAC_Init(hmac, key, len, algo) CCHmacInit(hmac, algo, key, len)
#define HMAC_Update CCHmacUpdate
The <CommonCrypto/CommonHMAC.h> is in Mac OS X 10.6 .. 10.9,
but not in 10.4 (I don't know about 10.5).
You can try to tweak the "makefiles", search for NO_APPLE_COMMON_CRYPTO,
and set NO_APPLE_COMMON_CRYPTO, but only for Darwin 10.3 (or below)
... and this command sequence ...
... to get it compiling. All, except git-imap-send, obviously, which is
no loss for my purposes.
I tried many releases, the patch requirement started with about v1.9.1,
the git-imap-send failure somewhere between 126.96.36.199 and 188.8.131.52.
Trying to be a good Open Source citizen, how would I proceed?
If you want to share your changes, please send a patch to this list.
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html