{"thread":{"id":"4147","subject":"1.3.2.gde1d fails to build on OpenBSD","startedAt":"2006-05-15T14:24:32Z","lastAt":"2006-05-15T16:00:22Z","messageCount":4,"participants":["Randal L. Schwartz","Timo Hirvonen","Linus Torvalds"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"20001","messageId":"86psiftlgf.fsf@blue.stonehenge.com","threadId":"4147","inReplyTo":null,"subject":"1.3.2.gde1d fails to build on OpenBSD","fromName":"Randal L. Schwartz","fromEmail":"merlyn@stonehenge.com","sentAt":"2006-05-15T14:24:32Z","receivedAt":"2006-05-15T14:24:32Z","isPatch":false,"sender":{"key":"merlyn@stonehenge.com","avatar":"https://gravatar.com/avatar/dc528d210743ff0333e6213f9ee7b33b23f1b7bc1f3c5a8c2d819074ecd7ab19?d=mp&s=160"},"body":"\nGIT_VERSION = 1.3.2.gde1d\ngcc -o sha1_file.o -c -g -O2 -Wall -I/usr/local/include -DSHA1_HEADER='<openssl/sha.h>' -DNO_STRCASESTR sha1_file.c\nsha1_file.c:16:20: stdint.h: No such file or directory\ngmake: *** [sha1_file.o] Error 1\n\nI think you want\n\n        #include <sys/types.h>\n\non OpenBSD.\n\n-- \nRandal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095\n<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>\nPerl/Unix/security consulting, Technical writing, Comedy, etc. etc.\nSee PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!\n"},{"id":"20005","messageId":"86bqtzth57.fsf@blue.stonehenge.com","threadId":"4147","inReplyTo":"20060515185819.ff05f6fe.tihirvon@gmail.com","subject":"Re: 1.3.2.gde1d fails to build on OpenBSD","fromName":"Randal L. Schwartz","fromEmail":"merlyn@stonehenge.com","sentAt":"2006-05-15T15:57:40Z","receivedAt":"2006-05-15T15:57:40Z","isPatch":false,"sender":{"key":"merlyn@stonehenge.com","avatar":"https://gravatar.com/avatar/dc528d210743ff0333e6213f9ee7b33b23f1b7bc1f3c5a8c2d819074ecd7ab19?d=mp&s=160"},"body":">>>>> \"Timo\" == Timo Hirvonen <tihirvon@gmail.com> writes:\n\n>> I think you want\n>> \n>> #include <sys/types.h>\n>> \n>> on OpenBSD.\n\nTimo> I think it should be #include <inttypes.h>.  It works at least on BSD\nTimo> and Linux.\n\nYes, that's present in OpenBSD.\n\n-- \nRandal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095\n<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>\nPerl/Unix/security consulting, Technical writing, Comedy, etc. etc.\nSee PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!\n"},{"id":"20004","messageId":"20060515185819.ff05f6fe.tihirvon@gmail.com","threadId":"4147","inReplyTo":"86psiftlgf.fsf@blue.stonehenge.com","subject":"Re: 1.3.2.gde1d fails to build on OpenBSD","fromName":"Timo Hirvonen","fromEmail":"tihirvon@gmail.com","sentAt":"2006-05-15T15:58:19Z","receivedAt":"2006-05-15T15:58:19Z","isPatch":false,"sender":{"key":"tihirvon@gmail.com","avatar":null},"body":"merlyn@stonehenge.com (Randal L. Schwartz) wrote:\n\n> \n> GIT_VERSION = 1.3.2.gde1d\n> gcc -o sha1_file.o -c -g -O2 -Wall -I/usr/local/include -DSHA1_HEADER='<openssl/sha.h>' -DNO_STRCASESTR sha1_file.c\n> sha1_file.c:16:20: stdint.h: No such file or directory\n> gmake: *** [sha1_file.o] Error 1\n> \n> I think you want\n> \n>         #include <sys/types.h>\n> \n> on OpenBSD.\n\nI think it should be #include <inttypes.h>.  It works at least on BSD\nand Linux.\n\n-- \nhttp://onion.dynserv.net/~timo/\n"},{"id":"20006","messageId":"Pine.LNX.4.64.0605150854420.3866@g5.osdl.org","threadId":"4147","inReplyTo":"86psiftlgf.fsf@blue.stonehenge.com","subject":"Re: 1.3.2.gde1d fails to build on OpenBSD","fromName":"Linus Torvalds","fromEmail":"torvalds@osdl.org","sentAt":"2006-05-15T16:00:22Z","receivedAt":"2006-05-15T16:00:22Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\n\nOn Mon, 15 May 2006, Randal L. Schwartz wrote:\n> \n> GIT_VERSION = 1.3.2.gde1d\n> gcc -o sha1_file.o -c -g -O2 -Wall -I/usr/local/include -DSHA1_HEADER='<openssl/sha.h>' -DNO_STRCASESTR sha1_file.c\n> sha1_file.c:16:20: stdint.h: No such file or directory\n> gmake: *** [sha1_file.o] Error 1\n> \n> I think you want\n> \n>         #include <sys/types.h>\n> \n> on OpenBSD.\n\nGaah. This was one reason why I absolutely _detested_ those \"intXX_t\" \ntypes historically. I thought the world had gotten over it, and they were \nall so common and standard that we'd never need to worry about it.\n\nRandal: we already _do_ include <sys/types.h>, as part of the standard set \nof headers in git-compat-util.h.\n\nSo the problem is that that wasn't enough on OS X, which wanted \n<stdint.h>.\n\nJunio: I'd suggest just using \"unsigned int\", or just defining your own \ntypes in \"cache.h\". I would suggest\n\n\ttypedef unsigned char u8;\n\ttypedef unsigned short u16;\n\ttypedef unsigned int u32;\n\n\ttypedef signed char s8;\n\ttypedef short s16;\n\ttypedef int s32;\n\nwhich is the only sane way to avoid idiotic crap like autoconf, and which \navoids that whole \"standard namespace\" issue.\n\nYeah, some people will complain. Ten years later, they _still_ complain \nabout me doing this right in the kernel. But you can sleep well, knowing \nthat the complainers are standards-weenies that have read books, but never \nseen the real world.\n\n\t\t\t\tLinus\n"}]}