{"thread":{"id":"20917","subject":"[DIFF] build git on armv6l emulator with uclibc","startedAt":"2009-09-12T20:18:07Z","lastAt":"2009-09-12T20:52:45Z","messageCount":3,"participants":["Tito","Clemens Buchacher"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"122989","messageId":"200909122218.07830.farmatito@tiscali.it","threadId":"20917","inReplyTo":null,"subject":"[DIFF] build git on armv6l emulator with uclibc","fromName":"Tito","fromEmail":"farmatito@tiscali.it","sentAt":"2009-09-12T20:18:07Z","receivedAt":"2009-09-12T20:18:07Z","isPatch":false,"sender":{"key":"farmatito@tiscali.it","avatar":null},"body":"Hi,\nthis by no means could be considered a patch, it is only a\nreport of the modifications i had to make to git-1.6.4.2\nsources in order to build it with uClibc-0.9.30.1 in Rob Landley's\nFirmware Linux 0.9.7 in a armv6l qemu emulator.\nThe major problem really was to get perl to build.\nI've tested git (mainly git pull as it is the only thing I really\nneed in this case) and it seems to work fine.\nAttached you'll find a diff and my config.log.\nMaybe some more experienced developer with better knowledge\nof Makefile/autoconf voodoo could use this to add uClibc support\nto git if there is a interest.\n\nBest regards and Ciao,\nTito\n\n\nsigned off by Tito Ragusa <farmatito@tiscali.it>\n\n--- builtin-fetch-pack.c.orig\t2009-08-29 23:58:52.000000000 +0200\n+++ builtin-fetch-pack.c\t2009-09-12 11:47:00.000000000 +0200\n@@ -813,7 +813,11 @@\n \t\tint fd;\n \n \t\tmtime.sec = st.st_mtime;\n+#if 0\n \t\tmtime.nsec = ST_MTIME_NSEC(st);\n+#else\n+\t\tmtime.nsec = (unsigned long int)st.st_mtimensec;\n+#endif\n \t\tif (stat(shallow, &st)) {\n \t\t\tif (mtime.sec)\n \t\t\t\tdie(\"shallow file was removed during fetch\");\n--- read-cache.c.orig\t2009-08-29 23:58:52.000000000 +0200\n+++ read-cache.c\t2009-09-12 22:04:22.000000000 +0200\n@@ -69,8 +69,13 @@\n {\n \tce->ce_ctime.sec = (unsigned int)st->st_ctime;\n \tce->ce_mtime.sec = (unsigned int)st->st_mtime;\n+#if 0 \n \tce->ce_ctime.nsec = ST_CTIME_NSEC(*st);\n \tce->ce_mtime.nsec = ST_MTIME_NSEC(*st);\n+#else\n+\tce->ce_ctime.nsec = (unsigned long int)st->st_ctimensec;\n+\tce->ce_mtime.nsec = (unsigned long int)st->st_mtimensec;\n+#endif\n \tce->ce_dev = st->st_dev;\n \tce->ce_ino = st->st_ino;\n \tce->ce_uid = st->st_uid;\n@@ -1299,7 +1304,11 @@\n \t\tdst_offset += ce_size(ce);\n \t}\n \tistate->timestamp.sec = st.st_mtime;\n+#if 0\n \tistate->timestamp.nsec = ST_MTIME_NSEC(st);\n+#else\n+\tistate->timestamp.nsec = (unsigned long int)st.st_mtimensec;\n+#endif\n \n \twhile (src_offset <= mmap_size - 20 - 8) {\n \t\t/* After an array of active_nr index entries,\n@@ -1564,7 +1573,11 @@\n \tif (ce_flush(&c, newfd) || fstat(newfd, &st))\n \t\treturn -1;\n \tistate->timestamp.sec = (unsigned int)st.st_mtime;\n+#if 0\n \tistate->timestamp.nsec = ST_MTIME_NSEC(st);\n+#else\n+\tistate->timestamp.nsec = (unsigned long int)st.st_mtimensec;\n+#endif\n \treturn 0;\n }\n \n\n\nThis file contains any messages produced by compilers while\nrunning configure, to aid debugging if configure makes a mistake.\n\nIt was created by git configure 1.6.4.2, which was\ngenerated by GNU Autoconf 2.63.  Invocation command line was\n\n  $ ./configure --disable-pthreads --prefix=/usr --without-tcltk\n\n## --------- ##\n## Platform. ##\n## --------- ##\n\nhostname = (none)\nuname -m = armv6l\nuname -r = 2.6.30.4\nuname -s = Linux\nuname -v = #1 Fri Sep 4 23:05:31 CEST 2009\n\n/usr/bin/uname -p = unknown\n/bin/uname -X     = unknown\n\n/bin/arch              = unknown\n/usr/bin/arch -k       = unknown\n/usr/convex/getsysinfo = unknown\n/usr/bin/hostinfo      = unknown\n/bin/machine           = unknown\n/usr/bin/oslevel       = unknown\n/bin/universe          = unknown\n\nPATH: /usr/bin\n\n\n## ----------- ##\n## Core tests. ##\n## ----------- ##\n\nconfigure:1919: Setting lib to 'lib' (the default)\nconfigure:1935: POSIX Threads will be disabled.\nconfigure:1950: CHECKS for site configuration\nconfigure:2187: CHECKS for programs\nconfigure:2244: checking for cc\nconfigure:2260: found /usr/bin/cc\nconfigure:2271: result: cc\nconfigure:2305: checking for C compiler version\nconfigure:2313: cc --version >&5\nuClibc rawgcc (GCC) 4.2.1\nCopyright (C) 2007 Free Software Foundation, Inc.\nThis is free software; see the source for copying conditions.  There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\nconfigure:2317: $? = 0\nconfigure:2324: cc -v >&5\nInvoked as cc\nReference path: /usr/bin/..\narg[ 0] = rawgcc\narg[ 1] = -U__nptl__\narg[ 2] = -v\nUsing built-in specs.\nTarget: armv6l-unknown-linux-gnueabi\nConfigured with: /home/tito/Desktop/firmware-0.9.7/build/temp-armv6l/gcc-core/configure --prefix=/home/tito/Desktop/firmware-0.9.7/build/root-filesystem-armv6l/usr --disable-multilib --build=i686-walrus-linux --host=armv6l-unknown-linux-gnueabi --target=armv6l-unknown-linux-gnueabi --enable-long-long --enable-c99 --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-nls --enable-languages=c,c++ --disable-libstdcxx-pch --program-prefix= --with-march=armv6 --with-mfloat-abi=soft --with-mfp=vfp --disable-sjlj-exceptions\nThread model: posix\ngcc version 4.2.1\nconfigure:2328: $? = 0\nconfigure:2335: cc -V >&5\nrawgcc: '-V' must come at the start of the command line\nconfigure:2339: $? = 1\nconfigure:2362: checking for C compiler default output file name\nconfigure:2384: cc    conftest.c  >&5\nconfigure:2388: $? = 0\nconfigure:2426: result: a.out\nconfigure:2445: checking whether the C compiler works\nconfigure:2455: ./a.out\nconfigure:2459: $? = 0\nconfigure:2478: result: yes\nconfigure:2485: checking whether we are cross compiling\nconfigure:2487: result: no\nconfigure:2490: checking for suffix of executables\nconfigure:2497: cc -o conftest    conftest.c  >&5\nconfigure:2501: $? = 0\nconfigure:2527: result: \nconfigure:2533: checking for suffix of object files\nconfigure:2559: cc -c   conftest.c >&5\nconfigure:2563: $? = 0\nconfigure:2588: result: o\nconfigure:2592: checking whether we are using the GNU C compiler\nconfigure:2621: cc -c   conftest.c >&5\nconfigure:2628: $? = 0\nconfigure:2645: result: yes\nconfigure:2654: checking whether cc accepts -g\nconfigure:2684: cc -c -g  conftest.c >&5\nconfigure:2691: $? = 0\nconfigure:2792: result: yes\nconfigure:2809: checking for cc option to accept ISO C89\nconfigure:2883: cc  -c -g -O2  conftest.c >&5\nconfigure:2890: $? = 0\nconfigure:2913: result: none needed\nconfigure:2933: checking if linker supports -R\nconfigure:2962: cc -o conftest -g -O2   -R / conftest.c  >&5\nrawgcc: unrecognized option '-R'\n/: file not recognized: Is a directory\ncollect2: ld returned 1 exit status\nconfigure:2969: $? = 1\nconfigure: failed program was:\n| /* confdefs.h.  */\n| #define PACKAGE_NAME \"git\"\n| #define PACKAGE_TARNAME \"git\"\n| #define PACKAGE_VERSION \"1.6.4.2\"\n| #define PACKAGE_STRING \"git 1.6.4.2\"\n| #define PACKAGE_BUGREPORT \"git@vger.kernel.org\"\n| /* end confdefs.h.  */\n| \n| int\n| main ()\n| {\n| \n|   ;\n|   return 0;\n| }\nconfigure:2991: result: no\nconfigure:2997: checking if linker supports -Wl,-rpath,\nconfigure:3026: cc -o conftest -g -O2   -Wl,-rpath,/ conftest.c  >&5\nconfigure:3033: $? = 0\nconfigure:3055: result: yes\nconfigure:3180: checking for gar\nconfigure:3210: result: no\nconfigure:3180: checking for ar\nconfigure:3196: found /usr/bin/ar\nconfigure:3207: result: ar\nconfigure:3235: checking for gtar\nconfigure:3265: result: no\nconfigure:3235: checking for tar\nconfigure:3251: found /usr/bin/tar\nconfigure:3262: result: tar\nconfigure:3335: checking for asciidoc\nconfigure:3365: result: no\nconfigure:3399: CHECKS for libraries\nconfigure:3414: checking for SHA1_Init in -lcrypto\nconfigure:3449: cc -o conftest -g -O2   conftest.c -lcrypto   >&5\n/usr/bin/../libexec/gcc/armv6l-unknown-linux-gnueabi/4.2.1/ld: cannot find -lcrypto\ncollect2: ld returned 1 exit status\nconfigure:3456: $? = 1\nconfigure: failed program was:\n| /* confdefs.h.  */\n| #define PACKAGE_NAME \"git\"\n| #define PACKAGE_TARNAME \"git\"\n| #define PACKAGE_VERSION \"1.6.4.2\"\n| #define PACKAGE_STRING \"git 1.6.4.2\"\n| #define PACKAGE_BUGREPORT \"git@vger.kernel.org\"\n| /* end confdefs.h.  */\n| \n| /* Override any GCC internal prototype to avoid an error.\n|    Use char because int might match the return type of a GCC\n|    builtin and then its argument prototype would still apply.  */\n| #ifdef __cplusplus\n| extern \"C\"\n| #endif\n| char SHA1_Init ();\n| int\n| main ()\n| {\n| return SHA1_Init ();\n|   ;\n|   return 0;\n| }\nconfigure:3477: result: no\nconfigure:3482: checking for SHA1_Init in -lssl\nconfigure:3517: cc -o conftest -g -O2   conftest.c -lssl   >&5\n/usr/bin/../libexec/gcc/armv6l-unknown-linux-gnueabi/4.2.1/ld: cannot find -lssl\ncollect2: ld returned 1 exit status\nconfigure:3524: $? = 1\nconfigure: failed program was:\n| /* confdefs.h.  */\n| #define PACKAGE_NAME \"git\"\n| #define PACKAGE_TARNAME \"git\"\n| #define PACKAGE_VERSION \"1.6.4.2\"\n| #define PACKAGE_STRING \"git 1.6.4.2\"\n| #define PACKAGE_BUGREPORT \"git@vger.kernel.org\"\n| /* end confdefs.h.  */\n| \n| /* Override any GCC internal prototype to avoid an error.\n|    Use char because int might match the return type of a GCC\n|    builtin and then its argument prototype would still apply.  */\n| #ifdef __cplusplus\n| extern \"C\"\n| #endif\n| char SHA1_Init ();\n| int\n| main ()\n| {\n| return SHA1_Init ();\n|   ;\n|   return 0;\n| }\nconfigure:3545: result: no\nconfigure:3580: checking for curl_global_init in -lcurl\nconfigure:3615: cc -o conftest -g -O2   conftest.c -lcurl   >&5\n/usr/bin/../libexec/gcc/armv6l-unknown-linux-gnueabi/4.2.1/ld: cannot find -lcurl\ncollect2: ld returned 1 exit status\nconfigure:3622: $? = 1\nconfigure: failed program was:\n| /* confdefs.h.  */\n| #define PACKAGE_NAME \"git\"\n| #define PACKAGE_TARNAME \"git\"\n| #define PACKAGE_VERSION \"1.6.4.2\"\n| #define PACKAGE_STRING \"git 1.6.4.2\"\n| #define PACKAGE_BUGREPORT \"git@vger.kernel.org\"\n| /* end confdefs.h.  */\n| \n| /* Override any GCC internal prototype to avoid an error.\n|    Use char because int might match the return type of a GCC\n|    builtin and then its argument prototype would still apply.  */\n| #ifdef __cplusplus\n| extern \"C\"\n| #endif\n| char curl_global_init ();\n| int\n| main ()\n| {\n| return curl_global_init ();\n|   ;\n|   return 0;\n| }\nconfigure:3643: result: no\nconfigure:3674: checking for XML_ParserCreate in -lexpat\nconfigure:3709: cc -o conftest -g -O2   conftest.c -lexpat   >&5\n/usr/bin/../libexec/gcc/armv6l-unknown-linux-gnueabi/4.2.1/ld: cannot find -lexpat\ncollect2: ld returned 1 exit status\nconfigure:3716: $? = 1\nconfigure: failed program was:\n| /* confdefs.h.  */\n| #define PACKAGE_NAME \"git\"\n| #define PACKAGE_TARNAME \"git\"\n| #define PACKAGE_VERSION \"1.6.4.2\"\n| #define PACKAGE_STRING \"git 1.6.4.2\"\n| #define PACKAGE_BUGREPORT \"git@vger.kernel.org\"\n| /* end confdefs.h.  */\n| \n| /* Override any GCC internal prototype to avoid an error.\n|    Use char because int might match the return type of a GCC\n|    builtin and then its argument prototype would still apply.  */\n| #ifdef __cplusplus\n| extern \"C\"\n| #endif\n| char XML_ParserCreate ();\n| int\n| main ()\n| {\n| return XML_ParserCreate ();\n|   ;\n|   return 0;\n| }\nconfigure:3737: result: no\nconfigure:3790: checking for iconv in -lc\nconfigure:3809: cc -o conftest -g -O2   conftest.c  -lc >&5\nconftest.c:2:19: error: iconv.h: No such file or directory\nconfigure:3816: $? = 1\nconfigure: failed program was:\n| \n| #include <iconv.h>\n| \n| int main(void)\n| {\n| \ticonv_open(\"\", \"\");\n| \treturn 0;\n| }\n| \nconfigure:3832: result: no\nconfigure:3790: checking for iconv in -liconv\nconfigure:3809: cc -o conftest -g -O2   conftest.c  -liconv >&5\nconftest.c:2:19: error: iconv.h: No such file or directory\nconfigure:3816: $? = 1\nconfigure: failed program was:\n| \n| #include <iconv.h>\n| \n| int main(void)\n| {\n| \ticonv_open(\"\", \"\");\n| \treturn 0;\n| }\n| \nconfigure:3832: result: no\nconfigure:3874: checking for deflateBound in -lz\nconfigure:3895: cc -o conftest -g -O2   conftest.c  -lz >&5\nconfigure:3902: $? = 0\nconfigure:3910: result: yes\nconfigure:3938: checking for socket in -lc\nconfigure:3973: cc -o conftest -g -O2   conftest.c -lc   >&5\nconfigure:3980: $? = 0\nconfigure:4001: result: yes\nconfigure:4016: checking for hstrerror in -lc\nconfigure:4051: cc -o conftest -g -O2   conftest.c -lc   >&5\nconfigure:4058: $? = 0\nconfigure:4079: result: yes\nconfigure:4090: checking for basename in -lc\nconfigure:4125: cc -o conftest -g -O2   conftest.c -lc   >&5\nconfigure:4132: $? = 0\nconfigure:4153: result: yes\nconfigure:4165: CHECKS for header files\nconfigure:4174: checking how to run the C preprocessor\nconfigure:4214: cc -E  conftest.c\nconfigure:4221: $? = 0\nconfigure:4252: cc -E  conftest.c\nconftest.c:8:28: error: ac_nonexistent.h: No such file or directory\nconfigure:4259: $? = 1\nconfigure: failed program was:\n| /* confdefs.h.  */\n| #define PACKAGE_NAME \"git\"\n| #define PACKAGE_TARNAME \"git\"\n| #define PACKAGE_VERSION \"1.6.4.2\"\n| #define PACKAGE_STRING \"git 1.6.4.2\"\n| #define PACKAGE_BUGREPORT \"git@vger.kernel.org\"\n| /* end confdefs.h.  */\n| #include <ac_nonexistent.h>\nconfigure:4292: result: cc -E\nconfigure:4321: cc -E  conftest.c\nconfigure:4328: $? = 0\nconfigure:4359: cc -E  conftest.c\nconftest.c:8:28: error: ac_nonexistent.h: No such file or directory\nconfigure:4366: $? = 1\nconfigure: failed program was:\n| /* confdefs.h.  */\n| #define PACKAGE_NAME \"git\"\n| #define PACKAGE_TARNAME \"git\"\n| #define PACKAGE_VERSION \"1.6.4.2\"\n| #define PACKAGE_STRING \"git 1.6.4.2\"\n| #define PACKAGE_BUGREPORT \"git@vger.kernel.org\"\n| /* end confdefs.h.  */\n| #include <ac_nonexistent.h>\nconfigure:4406: checking for grep that handles long lines and -e\nconfigure:4466: result: /usr/bin/grep\nconfigure:4471: checking for egrep\nconfigure:4535: result: /usr/bin/grep -E\nconfigure:4540: checking for ANSI C header files\nconfigure:4570: cc -c -g -O2  conftest.c >&5\nconfigure:4577: $? = 0\nconfigure:4673: cc -o conftest -g -O2   conftest.c  >&5\nconfigure:4677: $? = 0\nconfigure:4683: ./conftest\nconfigure:4687: $? = 0\nconfigure:4705: result: yes\nconfigure:4729: checking for sys/types.h\nconfigure:4750: cc -c -g -O2  conftest.c >&5\nconfigure:4757: $? = 0\nconfigure:4774: result: yes\nconfigure:4729: checking for sys/stat.h\nconfigure:4750: cc -c -g -O2  conftest.c >&5\nconfigure:4757: $? = 0\nconfigure:4774: result: yes\nconfigure:4729: checking for stdlib.h\nconfigure:4750: cc -c -g -O2  conftest.c >&5\nconfigure:4757: $? = 0\nconfigure:4774: result: yes\nconfigure:4729: checking for string.h\nconfigure:4750: cc -c -g -O2  conftest.c >&5\nconfigure:4757: $? = 0\nconfigure:4774: result: yes\nconfigure:4729: checking for memory.h\nconfigure:4750: cc -c -g -O2  conftest.c >&5\nconfigure:4757: $? = 0\nconfigure:4774: result: yes\nconfigure:4729: checking for strings.h\nconfigure:4750: cc -c -g -O2  conftest.c >&5\nconfigure:4757: $? = 0\nconfigure:4774: result: yes\nconfigure:4729: checking for inttypes.h\nconfigure:4750: cc -c -g -O2  conftest.c >&5\nconfigure:4757: $? = 0\nconfigure:4774: result: yes\nconfigure:4729: checking for stdint.h\nconfigure:4750: cc -c -g -O2  conftest.c >&5\nconfigure:4757: $? = 0\nconfigure:4774: result: yes\nconfigure:4729: checking for unistd.h\nconfigure:4750: cc -c -g -O2  conftest.c >&5\nconfigure:4757: $? = 0\nconfigure:4774: result: yes\nconfigure:4798: checking sys/select.h usability\nconfigure:4815: cc -c -g -O2  conftest.c >&5\nconfigure:4822: $? = 0\nconfigure:4836: result: yes\nconfigure:4840: checking sys/select.h presence\nconfigure:4855: cc -E  conftest.c\nconfigure:4862: $? = 0\nconfigure:4876: result: yes\nconfigure:4909: checking for sys/select.h\nconfigure:4916: result: yes\nconfigure:4942: checking for old iconv()\nconfigure:4964: cc -c -g -O2  conftest.c >&5\nconftest.c:2:19: error: iconv.h: No such file or directory\nconftest.c:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'iconv'\nconfigure:4971: $? = 1\nconfigure: failed program was:\n| \n| #include <iconv.h>\n| \n| extern size_t iconv(iconv_t cd,\n| \t\t    char **inbuf, size_t *inbytesleft,\n| \t\t    char **outbuf, size_t *outbytesleft);\n| \n| int main(void)\n| {\n| \treturn 0;\n| }\n| \nconfigure:4982: result: yes\nconfigure:4999: CHECKS for typedefs, structures, and compiler characteristics\nconfigure:5003: checking for struct dirent.d_ino\nconfigure:5032: cc -c -g -O2  conftest.c >&5\nconfigure:5039: $? = 0\nconfigure:5098: result: yes\nconfigure:5110: checking for struct dirent.d_type\nconfigure:5139: cc -c -g -O2  conftest.c >&5\nconfigure:5146: $? = 0\nconfigure:5205: result: yes\nconfigure:5217: checking for struct sockaddr_storage\nconfigure:5249: cc -c -g -O2  conftest.c >&5\nconfigure:5256: $? = 0\nconfigure:5287: cc -c -g -O2  conftest.c >&5\nconftest.c: In function 'main':\nconftest.c:26: error: expected expression before ')' token\nconfigure:5294: $? = 1\nconfigure: failed program was:\n| /* confdefs.h.  */\n| #define PACKAGE_NAME \"git\"\n| #define PACKAGE_TARNAME \"git\"\n| #define PACKAGE_VERSION \"1.6.4.2\"\n| #define PACKAGE_STRING \"git 1.6.4.2\"\n| #define PACKAGE_BUGREPORT \"git@vger.kernel.org\"\n| #define STDC_HEADERS 1\n| #define HAVE_SYS_TYPES_H 1\n| #define HAVE_SYS_STAT_H 1\n| #define HAVE_STDLIB_H 1\n| #define HAVE_STRING_H 1\n| #define HAVE_MEMORY_H 1\n| #define HAVE_STRINGS_H 1\n| #define HAVE_INTTYPES_H 1\n| #define HAVE_STDINT_H 1\n| #define HAVE_UNISTD_H 1\n| /* end confdefs.h.  */\n| \n| #include <sys/types.h>\n| #include <sys/socket.h>\n| \n| \n| int\n| main ()\n| {\n| if (sizeof ((struct sockaddr_storage)))\n| \t  return 0;\n|   ;\n|   return 0;\n| }\nconfigure:5317: result: yes\nconfigure:5328: checking for struct addrinfo\nconfigure:5361: cc -c -g -O2  conftest.c >&5\nconfigure:5368: $? = 0\nconfigure:5400: cc -c -g -O2  conftest.c >&5\nconftest.c: In function 'main':\nconftest.c:27: error: expected expression before ')' token\nconfigure:5407: $? = 1\nconfigure: failed program was:\n| /* confdefs.h.  */\n| #define PACKAGE_NAME \"git\"\n| #define PACKAGE_TARNAME \"git\"\n| #define PACKAGE_VERSION \"1.6.4.2\"\n| #define PACKAGE_STRING \"git 1.6.4.2\"\n| #define PACKAGE_BUGREPORT \"git@vger.kernel.org\"\n| #define STDC_HEADERS 1\n| #define HAVE_SYS_TYPES_H 1\n| #define HAVE_SYS_STAT_H 1\n| #define HAVE_STDLIB_H 1\n| #define HAVE_STRING_H 1\n| #define HAVE_MEMORY_H 1\n| #define HAVE_STRINGS_H 1\n| #define HAVE_INTTYPES_H 1\n| #define HAVE_STDINT_H 1\n| #define HAVE_UNISTD_H 1\n| /* end confdefs.h.  */\n| \n| #include <sys/types.h>\n| #include <sys/socket.h>\n| #include <netdb.h>\n| \n| \n| int\n| main ()\n| {\n| if (sizeof ((struct addrinfo)))\n| \t  return 0;\n|   ;\n|   return 0;\n| }\nconfigure:5430: result: yes\nconfigure:5434: checking for getaddrinfo\nconfigure:5490: cc -o conftest -g -O2   conftest.c  >&5\nconfigure:5497: $? = 0\nconfigure:5517: result: yes\nconfigure:5521: checking for library containing getaddrinfo\nconfigure:5562: cc -o conftest -g -O2   conftest.c  >&5\nconfigure:5569: $? = 0\nconfigure:5600: result: none required\nconfigure:5626: checking whether formatted IO functions support C99 size specifiers\nconfigure:5666: cc -o conftest -g -O2   conftest.c  >&5\nconfigure:5670: $? = 0\nconfigure:5676: ./conftest\nconfigure:5680: $? = 0\nconfigure:5698: result: yes\nconfigure:5709: checking whether system succeeds to read fopen'ed directory\nconfigure:5747: cc -o conftest -g -O2   conftest.c  >&5\nconfigure:5751: $? = 0\nconfigure:5757: ./conftest\nconfigure:5761: $? = 0\nconfigure:5779: result: no\nconfigure:5791: checking whether snprintf() and/or vsnprintf() return bogus value\nconfigure:5842: cc -o conftest -g -O2   conftest.c  >&5\nconfigure:5846: $? = 0\nconfigure:5852: ./conftest\nconfigure:5856: $? = 0\nconfigure:5874: result: no\nconfigure:5886: CHECKS for library functions\nconfigure:5900: checking libgen.h usability\nconfigure:5917: cc -c -g -O2  conftest.c >&5\nconfigure:5924: $? = 0\nconfigure:5938: result: yes\nconfigure:5942: checking libgen.h presence\nconfigure:5957: cc -E  conftest.c\nconfigure:5964: $? = 0\nconfigure:5978: result: yes\nconfigure:6011: checking for libgen.h\nconfigure:6018: result: yes\nconfigure:6032: checking for strcasestr\nconfigure:6088: cc -o conftest -g -O2   conftest.c  >&5\nconfigure:6095: $? = 0\nconfigure:6115: result: yes\nconfigure:6119: checking for library containing strcasestr\nconfigure:6160: cc -o conftest -g -O2   conftest.c  >&5\nconfigure:6167: $? = 0\nconfigure:6198: result: none required\nconfigure:6216: checking for memmem\nconfigure:6272: cc -o conftest -g -O2   conftest.c  >&5\nconfigure:6279: $? = 0\nconfigure:6299: result: yes\nconfigure:6303: checking for library containing memmem\nconfigure:6344: cc -o conftest -g -O2   conftest.c  >&5\nconfigure:6351: $? = 0\nconfigure:6382: result: none required\nconfigure:6400: checking for strlcpy\nconfigure:6456: cc -o conftest -g -O2   conftest.c  >&5\nconfigure:6463: $? = 0\nconfigure:6483: result: yes\nconfigure:6487: checking for library containing strlcpy\nconfigure:6528: cc -o conftest -g -O2   conftest.c  >&5\nconfigure:6535: $? = 0\nconfigure:6566: result: none required\nconfigure:6584: checking for uintmax_t\nconfigure:6615: cc -c -g -O2  conftest.c >&5\nconfigure:6622: $? = 0\nconfigure:6652: cc -c -g -O2  conftest.c >&5\nconftest.c: In function 'main':\nconftest.c:25: error: expected expression before ')' token\nconfigure:6659: $? = 1\nconfigure: failed program was:\n| /* confdefs.h.  */\n| #define PACKAGE_NAME \"git\"\n| #define PACKAGE_TARNAME \"git\"\n| #define PACKAGE_VERSION \"1.6.4.2\"\n| #define PACKAGE_STRING \"git 1.6.4.2\"\n| #define PACKAGE_BUGREPORT \"git@vger.kernel.org\"\n| #define STDC_HEADERS 1\n| #define HAVE_SYS_TYPES_H 1\n| #define HAVE_SYS_STAT_H 1\n| #define HAVE_STDLIB_H 1\n| #define HAVE_STRING_H 1\n| #define HAVE_MEMORY_H 1\n| #define HAVE_STRINGS_H 1\n| #define HAVE_INTTYPES_H 1\n| #define HAVE_STDINT_H 1\n| #define HAVE_UNISTD_H 1\n| /* end confdefs.h.  */\n| \n| #include <inttypes.h>\n| \n| \n| int\n| main ()\n| {\n| if (sizeof ((uintmax_t)))\n| \t  return 0;\n|   ;\n|   return 0;\n| }\nconfigure:6682: result: yes\nconfigure:6693: checking for strtoumax\nconfigure:6749: cc -o conftest -g -O2   conftest.c  >&5\nconfigure:6756: $? = 0\nconfigure:6776: result: yes\nconfigure:6780: checking for library containing strtoumax\nconfigure:6821: cc -o conftest -g -O2   conftest.c  >&5\nconfigure:6828: $? = 0\nconfigure:6859: result: none required\nconfigure:6877: checking for setenv\nconfigure:6933: cc -o conftest -g -O2   conftest.c  >&5\nconfigure:6940: $? = 0\nconfigure:6960: result: yes\nconfigure:6964: checking for library containing setenv\nconfigure:7005: cc -o conftest -g -O2   conftest.c  >&5\nconfigure:7012: $? = 0\nconfigure:7043: result: none required\nconfigure:7061: checking for unsetenv\nconfigure:7117: cc -o conftest -g -O2   conftest.c  >&5\nconfigure:7124: $? = 0\nconfigure:7144: result: yes\nconfigure:7148: checking for library containing unsetenv\nconfigure:7189: cc -o conftest -g -O2   conftest.c  >&5\nconfigure:7196: $? = 0\nconfigure:7227: result: none required\nconfigure:7245: checking for mkdtemp\nconfigure:7301: cc -o conftest -g -O2   conftest.c  >&5\nconfigure:7308: $? = 0\nconfigure:7328: result: yes\nconfigure:7332: checking for library containing mkdtemp\nconfigure:7373: cc -o conftest -g -O2   conftest.c  >&5\nconfigure:7380: $? = 0\nconfigure:7411: result: none required\nconfigure:7429: checking for mkstemps\nconfigure:7485: cc -o conftest -g -O2   conftest.c  >&5\n/tmp/ccaFxzaQ.o: In function `main':\n/home/git-1.6.4.2/conftest.c:52: undefined reference to `mkstemps'\ncollect2: ld returned 1 exit status\nconfigure:7492: $? = 1\nconfigure: failed program was:\n| /* confdefs.h.  */\n| #define PACKAGE_NAME \"git\"\n| #define PACKAGE_TARNAME \"git\"\n| #define PACKAGE_VERSION \"1.6.4.2\"\n| #define PACKAGE_STRING \"git 1.6.4.2\"\n| #define PACKAGE_BUGREPORT \"git@vger.kernel.org\"\n| #define STDC_HEADERS 1\n| #define HAVE_SYS_TYPES_H 1\n| #define HAVE_SYS_STAT_H 1\n| #define HAVE_STDLIB_H 1\n| #define HAVE_STRING_H 1\n| #define HAVE_MEMORY_H 1\n| #define HAVE_STRINGS_H 1\n| #define HAVE_INTTYPES_H 1\n| #define HAVE_STDINT_H 1\n| #define HAVE_UNISTD_H 1\n| /* end confdefs.h.  */\n| /* Define mkstemps to an innocuous variant, in case <limits.h> declares mkstemps.\n|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */\n| #define mkstemps innocuous_mkstemps\n| \n| /* System header to define __stub macros and hopefully few prototypes,\n|     which can conflict with char mkstemps (); below.\n|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since\n|     <limits.h> exists even on freestanding compilers.  */\n| \n| #ifdef __STDC__\n| # include <limits.h>\n| #else\n| # include <assert.h>\n| #endif\n| \n| #undef mkstemps\n| \n| /* Override any GCC internal prototype to avoid an error.\n|    Use char because int might match the return type of a GCC\n|    builtin and then its argument prototype would still apply.  */\n| #ifdef __cplusplus\n| extern \"C\"\n| #endif\n| char mkstemps ();\n| /* The GNU C library defines this for functions which it implements\n|     to always fail with ENOSYS.  Some functions are actually named\n|     something starting with __ and the normal name is an alias.  */\n| #if defined __stub_mkstemps || defined __stub___mkstemps\n| choke me\n| #endif\n| \n| int\n| main ()\n| {\n| return mkstemps ();\n|   ;\n|   return 0;\n| }\nconfigure:7512: result: no\nconfigure:7637: Skipping POSIX Threads at user request.\nconfigure:7904: creating ./config.status\n\n## ---------------------- ##\n## Running config.status. ##\n## ---------------------- ##\n\nThis file was extended by git config.status 1.6.4.2, which was\ngenerated by GNU Autoconf 2.63.  Invocation command line was\n\n  CONFIG_FILES    = \n  CONFIG_HEADERS  = \n  CONFIG_LINKS    = \n  CONFIG_COMMANDS = \n  $ ./config.status \n\non (none)\n\nconfig.status:684: creating config.mak.autogen\n\n## ---------------- ##\n## Cache variables. ##\n## ---------------- ##\n\nac_cv_c_c99_format=yes\nac_cv_c_compiler_gnu=yes\nac_cv_env_CC_set=\nac_cv_env_CC_value=\nac_cv_env_CFLAGS_set=\nac_cv_env_CFLAGS_value=\nac_cv_env_CPPFLAGS_set=\nac_cv_env_CPPFLAGS_value=\nac_cv_env_CPP_set=\nac_cv_env_CPP_value=\nac_cv_env_LDFLAGS_set=\nac_cv_env_LDFLAGS_value=\nac_cv_env_LIBS_set=\nac_cv_env_LIBS_value=\nac_cv_env_build_alias_set=\nac_cv_env_build_alias_value=\nac_cv_env_host_alias_set=\nac_cv_env_host_alias_value=\nac_cv_env_target_alias_set=\nac_cv_env_target_alias_value=\nac_cv_fread_reads_directories=no\nac_cv_func_getaddrinfo=yes\nac_cv_func_memmem=yes\nac_cv_func_mkdtemp=yes\nac_cv_func_mkstemps=no\nac_cv_func_setenv=yes\nac_cv_func_strcasestr=yes\nac_cv_func_strlcpy=yes\nac_cv_func_strtoumax=yes\nac_cv_func_unsetenv=yes\nac_cv_header_inttypes_h=yes\nac_cv_header_libgen_h=yes\nac_cv_header_memory_h=yes\nac_cv_header_stdc=yes\nac_cv_header_stdint_h=yes\nac_cv_header_stdlib_h=yes\nac_cv_header_string_h=yes\nac_cv_header_strings_h=yes\nac_cv_header_sys_select_h=yes\nac_cv_header_sys_stat_h=yes\nac_cv_header_sys_types_h=yes\nac_cv_header_unistd_h=yes\nac_cv_lib_c_basename=yes\nac_cv_lib_c_hstrerror=yes\nac_cv_lib_c_socket=yes\nac_cv_lib_crypto_SHA1_Init=no\nac_cv_lib_curl_curl_global_init=no\nac_cv_lib_expat_XML_ParserCreate=no\nac_cv_lib_ssl_SHA1_Init=no\nac_cv_member_struct_dirent_d_ino=yes\nac_cv_member_struct_dirent_d_type=yes\nac_cv_objext=o\nac_cv_path_EGREP='/usr/bin/grep -E'\nac_cv_path_GREP=/usr/bin/grep\nac_cv_prog_CPP='cc -E'\nac_cv_prog_TAR=tar\nac_cv_prog_ac_ct_AR=ar\nac_cv_prog_ac_ct_CC=cc\nac_cv_prog_cc_c89=\nac_cv_prog_cc_g=yes\nac_cv_search_getaddrinfo='none required'\nac_cv_search_memmem='none required'\nac_cv_search_mkdtemp='none required'\nac_cv_search_setenv='none required'\nac_cv_search_strcasestr='none required'\nac_cv_search_strlcpy='none required'\nac_cv_search_strtoumax='none required'\nac_cv_search_unsetenv='none required'\nac_cv_snprintf_returns_bogus=no\nac_cv_type_struct_addrinfo=yes\nac_cv_type_struct_sockaddr_storage=yes\nac_cv_type_uintmax_t=yes\ngit_cv_ld_dashr=no\ngit_cv_ld_wl_rpath=yes\n\n## ----------------- ##\n## Output variables. ##\n## ----------------- ##\n\nAR='ar'\nASCIIDOC8=''\nASCIIDOC=''\nCC='cc'\nCC_LD_DYNPATH='-Wl,-rpath,'\nCFLAGS=''\nCPP='cc -E'\nCPPFLAGS=''\nDEFS='-DPACKAGE_NAME=\\\"git\\\" -DPACKAGE_TARNAME=\\\"git\\\" -DPACKAGE_VERSION=\\\"1.6.4.2\\\" -DPACKAGE_STRING=\\\"git\\ 1.6.4.2\\\" -DPACKAGE_BUGREPORT=\\\"git@vger.kernel.org\\\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1'\nECHO_C=''\nECHO_N='-n'\nECHO_T=''\nEGREP='/usr/bin/grep -E'\nEXEEXT=''\nFREAD_READS_DIRECTORIES=''\nGREP='/usr/bin/grep'\nLDFLAGS=''\nLIBOBJS=''\nLIBS=''\nLTLIBOBJS=''\nNEEDS_LIBGEN=''\nNEEDS_LIBICONV=''\nNEEDS_RESOLV=''\nNEEDS_SOCKET=''\nNEEDS_SSL_WITH_CRYPTO=''\nNO_C99_FORMAT=''\nNO_CURL='YesPlease'\nNO_DEFLATE_BOUND=''\nNO_D_INO_IN_DIRENT=''\nNO_D_TYPE_IN_DIRENT=''\nNO_EXPAT='YesPlease'\nNO_ICONV='YesPlease'\nNO_IPV6=''\nNO_LIBGEN_H=''\nNO_MEMMEM=''\nNO_MKDTEMP=''\nNO_MKSTEMPS='YesPlease'\nNO_OPENSSL='YesPlease'\nNO_PTHREADS='UnfortunatelyYes'\nNO_SETENV=''\nNO_SOCKADDR_STORAGE=''\nNO_STRCASESTR=''\nNO_STRLCPY=''\nNO_STRTOUMAX=''\nNO_SYS_SELECT_H=''\nNO_UINTMAX_T=''\nNO_UNSETENV=''\nOBJEXT='o'\nOLD_ICONV='UnfortunatelyYes'\nPACKAGE_BUGREPORT='git@vger.kernel.org'\nPACKAGE_NAME='git'\nPACKAGE_STRING='git 1.6.4.2'\nPACKAGE_TARNAME='git'\nPACKAGE_VERSION='1.6.4.2'\nPATH_SEPARATOR=':'\nPTHREAD_LIBS=''\nSHELL='/bin/sh'\nSNPRINTF_RETURNS_BOGUS=''\nTAR='tar'\nTCLTK_PATH=''\nTHREADED_DELTA_SEARCH=''\nac_ct_AR='ar'\nac_ct_CC='cc'\nbindir='${exec_prefix}/bin'\nbuild_alias=''\ndatadir='${datarootdir}'\ndatarootdir='${prefix}/share'\ndocdir='${datarootdir}/doc/${PACKAGE_TARNAME}'\ndvidir='${docdir}'\nexec_prefix='${prefix}'\nhost_alias=''\nhtmldir='${docdir}'\nincludedir='${prefix}/include'\ninfodir='${datarootdir}/info'\nlibdir='${exec_prefix}/lib'\nlibexecdir='${exec_prefix}/libexec'\nlocaledir='${datarootdir}/locale'\nlocalstatedir='${prefix}/var'\nmandir='${datarootdir}/man'\noldincludedir='/usr/include'\npdfdir='${docdir}'\nprefix='/usr'\nprogram_transform_name='s,x,x,'\npsdir='${docdir}'\nsbindir='${exec_prefix}/sbin'\nsharedstatedir='${prefix}/com'\nsysconfdir='${prefix}/etc'\ntarget_alias=''\n\n## ----------- ##\n## confdefs.h. ##\n## ----------- ##\n\n#define PACKAGE_NAME \"git\"\n#define PACKAGE_TARNAME \"git\"\n#define PACKAGE_VERSION \"1.6.4.2\"\n#define PACKAGE_STRING \"git 1.6.4.2\"\n#define PACKAGE_BUGREPORT \"git@vger.kernel.org\"\n#define STDC_HEADERS 1\n#define HAVE_SYS_TYPES_H 1\n#define HAVE_SYS_STAT_H 1\n#define HAVE_STDLIB_H 1\n#define HAVE_STRING_H 1\n#define HAVE_MEMORY_H 1\n#define HAVE_STRINGS_H 1\n#define HAVE_INTTYPES_H 1\n#define HAVE_STDINT_H 1\n#define HAVE_UNISTD_H 1\n\nconfigure: exit 0\n"},{"id":"122990","messageId":"20090912204230.GA31317@localhost","threadId":"20917","inReplyTo":"200909122218.07830.farmatito@tiscali.it","subject":"Re: [DIFF] build git on armv6l emulator with uclibc","fromName":"Clemens Buchacher","fromEmail":"drizzd@aon.at","sentAt":"2009-09-12T20:42:30Z","receivedAt":"2009-09-12T20:42:30Z","isPatch":false,"sender":{"key":"drizzd@gmx.net","avatar":"https://avatars.githubusercontent.com/u/59082?v=4"},"body":"On Sat, Sep 12, 2009 at 10:18:07PM +0200, Tito wrote:\n\n> +#if 0\n>  \t\tmtime.nsec = ST_MTIME_NSEC(st);\n> +#else\n> +\t\tmtime.nsec = (unsigned long int)st.st_mtimensec;\n> +#endif\n\nYou can do this instead:\n\n$ echo NO_NSEC=YesPlease >> config.mak\n$ make\n\nClemens\n"},{"id":"122992","messageId":"200909122252.45995.farmatito@tiscali.it","threadId":"20917","inReplyTo":"20090912204230.GA31317@localhost","subject":"Re: [DIFF] build git on armv6l emulator with uclibc","fromName":"Tito","fromEmail":"farmatito@tiscali.it","sentAt":"2009-09-12T20:52:45Z","receivedAt":"2009-09-12T20:52:45Z","isPatch":false,"sender":{"key":"farmatito@tiscali.it","avatar":null},"body":"On Saturday 12 September 2009 22:42:30 Clemens Buchacher wrote:\n> On Sat, Sep 12, 2009 at 10:18:07PM +0200, Tito wrote:\n> \n> > +#if 0\n> >  \t\tmtime.nsec = ST_MTIME_NSEC(st);\n> > +#else\n> > +\t\tmtime.nsec = (unsigned long int)st.st_mtimensec;\n> > +#endif\n> \n> You can do this instead:\n> \n> $ echo NO_NSEC=YesPlease >> config.mak\n> $ make\n> \n> Clemens\n> \n\nMaybe something about this could be added to configure\n\nOptional Features:\n  --disable-option-checking  ignore unrecognized --enable/--with options\n  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)\n  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]\n  --enable-pthreads=FLAGS FLAGS is the value to pass to the compiler to enable\n \n --disable-nsec\n\nto avoid to someone else to reinvent the wheel like i did :-)\n\nCiao,\nTito\n"}]}