{"thread":{"id":"24234","subject":"Error running/configuring git 1.7.1","startedAt":"2010-06-29T22:03:50Z","lastAt":"2010-06-29T22:03:50Z","messageCount":1,"participants":["Michael Cox"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"144484","messageId":"AANLkTimh62uVah77CE9XwHKwhuT4lOUxgRjFWXGuaS1B@mail.gmail.com","threadId":"24234","inReplyTo":null,"subject":"Error running/configuring git 1.7.1","fromName":"Michael Cox","fromEmail":"mhcox@bluezoosoftware.com","sentAt":"2010-06-29T22:03:50Z","receivedAt":"2010-06-29T22:03:50Z","isPatch":false,"sender":{"key":"mhcox@bluezoosoftware.com","avatar":"https://gravatar.com/avatar/733711380ad7e4338caf0fe55f1c38b7696dd1cfe4d0d0d3e5c6a0c82656c956?d=mp&s=160"},"body":"I downloaded the latest tarball (git-1.7.1) and tried to install it on\nRedhat Linux Server release 5.3 (Tikanga) using:\n\n./configure --prefix=$HOME/tool-1.1 --with-curl -with-expat -with-openssl\nmake\nmake install\n\nWhen I try to run\n\ngit clone http://www.kernel.org/pub/scm/git/git.git\n\nI get the error message:\n\nfatal: Unable to find remote helper for 'http'\n\nI looked at the config.log file and found the following anomaly:\n\nconfigure:3165: checking for curl_global_init in -lcurl\nconfigure:3195: cc -o conftest -g -O2   conftest.c -lcurl   >&5\n/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libcurl.so: undefined reference to\n `tld_strerror'\n/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libcurl.so: undefined reference to\n `idna_strerror'\ncollect2: ld returned 1 exit status\nconfigure:3201: $? = 1\nconfigure: failed program was:\n| /* confdefs.h.  */\n|\n| #define PACKAGE_NAME \"git\"\n| #define PACKAGE_TARNAME \"git\"\n| #define PACKAGE_VERSION \"1.7.1\"\n| #define PACKAGE_STRING \"git 1.7.1\"\n| #define PACKAGE_BUGREPORT \"git@vger.kernel.org\"\n| /* end confdefs.h.  */\n|\n| /* Override any gcc2 internal prototype to avoid an error.  */\n| #ifdef __cplusplus\n| extern \"C\"\n| #endif\n| /* We use char because int might match the return type of a gcc2\n|    builtin and then its argument prototype would still apply.  */\n| char curl_global_init ();\n| int\n| main ()\n| {\n| curl_global_init ();\n|   ;\n|   return 0;\n| }\nconfigure:3227: result: no\n\nGoogling for  tld_strerror and idna_strerror, I found that a library,\nlibidna contains idna_strerror.  When I run\n\ncurl-config --libs\n\nI get\n\n-L/usr/kerberos/lib -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err\n-lresolv -ldl -lidn -lssl -lcrypto -lz\n\nSo it looks like the configure test should (at least) add -lidna.\n\nI did a \"make clean\" and re-ran the build using:\n\nLDFLAGS=\"-lidn -lssl -lcrypto -lz\" ./configure --prefix=$HOME/tool-1.1\n--with-curl -with-expat -with-openssl\nmake\nmake install\n\nRunning \"git clone http://www.kernel.org/pub/scm/git/git.git\" works now.\n\n\nMichael\n\nP.S.  The same problem occurs on 1.7.0.6.\n"}]}