{"thread":{"id":"35477","subject":"Build issue for git 1.8.5.1 under Mac OS X 10.8 (Mountain Lion)","startedAt":"2013-12-04T18:48:21Z","lastAt":"2013-12-05T07:07:21Z","messageCount":2,"participants":["Marius Schamschula","Torsten Bögershausen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"231532","messageId":"6D4FDF40-DD9A-4875-9D8F-9678BE95FF73@gmail.com","threadId":"35477","inReplyTo":null,"subject":"Build issue for git 1.8.5.1 under Mac OS X 10.8 (Mountain Lion)","fromName":"Marius Schamschula","fromEmail":"mschamschula@gmail.com","sentAt":"2013-12-04T18:48:21Z","receivedAt":"2013-12-04T18:48:21Z","isPatch":false,"sender":{"key":"mschamschula@gmail.com","avatar":null},"body":"Hi all,\n\nOver the years I have built many versions of git and released them on hmug.org. git 1.8.5.1 builds just fine under OS 10.7 (Lion) and 10.9 (Mavericks), but the build fails (also for 1.8.5) on 10.8 (Mountain Lion):\n\n<snip>\nGIT_VERSION = 1.8.5.1\n    * new build flags\n    CC credential-store.o\nIn file included from git-compat-util.h:330:0,\n                 from cache.h:4,\n                 from credential-store.c:1:\ncompat/apple-common-crypto.h: In function 'git_CC_EVP_EncodeBlock':\ncompat/apple-common-crypto.h:32:2: error: 'SecTransformRef' undeclared (first use in this function)\ncompat/apple-common-crypto.h:32:2: note: each undeclared identifier is reported only once for each function it appears in\ncompat/apple-common-crypto.h:32:18: error: expected ';' before 'encoder'\ncompat/apple-common-crypto.h:36:2: error: 'encoder' undeclared (first use in this function)\ncompat/apple-common-crypto.h:36:2: warning: implicit declaration of function 'SecEncodeTransformCreate'\ncompat/apple-common-crypto.h:36:37: error: 'kSecBase64Encoding' undeclared (first use in this function)\ncompat/apple-common-crypto.h:40:2: warning: implicit declaration of function 'SecTransformSetAttribute'\ncompat/apple-common-crypto.h:40:36: error: 'kSecTransformInputAttributeName' undeclared (first use in this function)\ncompat/apple-common-crypto.h:44:2: warning: implicit declaration of function 'SecTransformExecute'\ncompat/apple-common-crypto.h: In function 'git_CC_EVP_DecodeBlock':\ncompat/apple-common-crypto.h:62:2: error: 'SecTransformRef' undeclared (first use in this function)\ncompat/apple-common-crypto.h:62:18: error: expected ';' before 'decoder'\ncompat/apple-common-crypto.h:66:2: error: 'decoder' undeclared (first use in this function)\ncompat/apple-common-crypto.h:66:2: warning: implicit declaration of function 'SecDecodeTransformCreate'\ncompat/apple-common-crypto.h:66:37: error: 'kSecBase64Encoding' undeclared (first use in this function)\ncompat/apple-common-crypto.h:70:36: error: 'kSecTransformInputAttributeName' undeclared (first use in this function)\nMakefile:1975: recipe for target 'credential-store.o' failed\nmake: *** [credential-store.o] Error 1\n</snip>\n\nApparently a header issue: I tried force feeding the Security/SecEncryptTransform.h file, and just got an other error…\n\nAny help would be welcome!\n\nThanks in advance.\n\nMarius\n--\nMarius Schamschula\n"},{"id":"231574","messageId":"52A02629.7030906@web.de","threadId":"35477","inReplyTo":"6D4FDF40-DD9A-4875-9D8F-9678BE95FF73@gmail.com","subject":"Re: Build issue for git 1.8.5.1 under Mac OS X 10.8 (Mountain Lion)","fromName":"Torsten Bögershausen","fromEmail":"tboegi@web.de","sentAt":"2013-12-05T07:07:21Z","receivedAt":"2013-12-05T07:07:21Z","isPatch":false,"sender":{"key":"tboegi@web.de","avatar":"https://avatars.githubusercontent.com/u/7138363?v=4"},"body":"On 12/04/2013 07:48 PM, Marius Schamschula wrote:\n> Hi all,\n>\n> Over the years I have built many versions of git and released them on hmug.org. git 1.8.5.1 builds just fine under OS 10.7 (Lion) and 10.9 (Mavericks), but the build fails (also for 1.8.5) on 10.8 (Mountain Lion):\n>\n> <snip>\n> GIT_VERSION = 1.8.5.1\n>      * new build flags\n>      CC credential-store.o\n> In file included from git-compat-util.h:330:0,\n>                   from cache.h:4,\n>                   from credential-store.c:1:\n> compat/apple-common-crypto.h: In function 'git_CC_EVP_EncodeBlock':\n> compat/apple-common-crypto.h:32:2: error: 'SecTransformRef' undeclared (first use in this function)\n> compat/apple-common-crypto.h:32:2: note: each undeclared identifier is reported only once for each function it appears in\n> compat/apple-common-crypto.h:32:18: error: expected ';' before 'encoder'\n> compat/apple-common-crypto.h:36:2: error: 'encoder' undeclared (first use in this function)\n> compat/apple-common-crypto.h:36:2: warning: implicit declaration of function 'SecEncodeTransformCreate'\n> compat/apple-common-crypto.h:36:37: error: 'kSecBase64Encoding' undeclared (first use in this function)\n> compat/apple-common-crypto.h:40:2: warning: implicit declaration of function 'SecTransformSetAttribute'\n> compat/apple-common-crypto.h:40:36: error: 'kSecTransformInputAttributeName' undeclared (first use in this function)\n> compat/apple-common-crypto.h:44:2: warning: implicit declaration of function 'SecTransformExecute'\n> compat/apple-common-crypto.h: In function 'git_CC_EVP_DecodeBlock':\n> compat/apple-common-crypto.h:62:2: error: 'SecTransformRef' undeclared (first use in this function)\n> compat/apple-common-crypto.h:62:18: error: expected ';' before 'decoder'\n> compat/apple-common-crypto.h:66:2: error: 'decoder' undeclared (first use in this function)\n> compat/apple-common-crypto.h:66:2: warning: implicit declaration of function 'SecDecodeTransformCreate'\n> compat/apple-common-crypto.h:66:37: error: 'kSecBase64Encoding' undeclared (first use in this function)\n> compat/apple-common-crypto.h:70:36: error: 'kSecTransformInputAttributeName' undeclared (first use in this function)\n> Makefile:1975: recipe for target 'credential-store.o' failed\n> make: *** [credential-store.o] Error 1\n> </snip>\n>\n> Apparently a header issue: I tried force feeding the Security/SecEncryptTransform.h file, and just got an other error…\n>\n> Any help would be welcome!\n>\n> Thanks in advance.\n>\n> Marius\n> --\n> Marius Schamschula\n\nI can't reproduce it here (in other words, it compiles)\nWhat could help is to run the preprocessor, and see what the compiler see.\n\na) Patch the Makefile of git like this:\n\n-- a/Makefile\n+++ b/Makefile\n@@ -349,7 +349,8 @@ GIT-VERSION-FILE: FORCE\n\n  # CFLAGS and LDFLAGS are for the users to override from the command line.\n\n-CFLAGS = -g -O2 -Wall\n+#CFLAGS = -g -O2 -Wall\n+CFLAGS= -E\nb) Compile credential-store.o (Which is now an ASCII file)\n\ncredential-store.o ; make credential-store.o\n\nc) Take an editor and have a look.\n    On my system SecTransform.h is here:\n-----------------\n/System/Library/Frameworks/Security.framework/Headers/SecTransform.h\"\n\nd) And the file contains something like this:\n---------------\ntypedef CFTypeRef SecTransformRef;\ntypedef CFTypeRef SecGroupTransformRef;\n\n\n/Torsten\n"}]}