git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 1.3.2.gde1d fails to build on OpenBSD
@ 2006-05-15 14:24 Randal L. Schwartz
  2006-05-15 15:58 ` Timo Hirvonen
  2006-05-15 16:00 ` Linus Torvalds
  0 siblings, 2 replies; 4+ messages in thread
From: Randal L. Schwartz @ 2006-05-15 14:24 UTC (permalink / raw)
  To: git


GIT_VERSION = 1.3.2.gde1d
gcc -o sha1_file.o -c -g -O2 -Wall -I/usr/local/include -DSHA1_HEADER='<openssl/sha.h>' -DNO_STRCASESTR sha1_file.c
sha1_file.c:16:20: stdint.h: No such file or directory
gmake: *** [sha1_file.o] Error 1

I think you want

        #include <sys/types.h>

on OpenBSD.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 1.3.2.gde1d fails to build on OpenBSD
  2006-05-15 15:58 ` Timo Hirvonen
@ 2006-05-15 15:57   ` Randal L. Schwartz
  0 siblings, 0 replies; 4+ messages in thread
From: Randal L. Schwartz @ 2006-05-15 15:57 UTC (permalink / raw)
  To: Timo Hirvonen; +Cc: git

>>>>> "Timo" == Timo Hirvonen <tihirvon@gmail.com> writes:

>> I think you want
>> 
>> #include <sys/types.h>
>> 
>> on OpenBSD.

Timo> I think it should be #include <inttypes.h>.  It works at least on BSD
Timo> and Linux.

Yes, that's present in OpenBSD.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 1.3.2.gde1d fails to build on OpenBSD
  2006-05-15 14:24 1.3.2.gde1d fails to build on OpenBSD Randal L. Schwartz
@ 2006-05-15 15:58 ` Timo Hirvonen
  2006-05-15 15:57   ` Randal L. Schwartz
  2006-05-15 16:00 ` Linus Torvalds
  1 sibling, 1 reply; 4+ messages in thread
From: Timo Hirvonen @ 2006-05-15 15:58 UTC (permalink / raw)
  To: merlyn; +Cc: git

merlyn@stonehenge.com (Randal L. Schwartz) wrote:

> 
> GIT_VERSION = 1.3.2.gde1d
> gcc -o sha1_file.o -c -g -O2 -Wall -I/usr/local/include -DSHA1_HEADER='<openssl/sha.h>' -DNO_STRCASESTR sha1_file.c
> sha1_file.c:16:20: stdint.h: No such file or directory
> gmake: *** [sha1_file.o] Error 1
> 
> I think you want
> 
>         #include <sys/types.h>
> 
> on OpenBSD.

I think it should be #include <inttypes.h>.  It works at least on BSD
and Linux.

-- 
http://onion.dynserv.net/~timo/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: 1.3.2.gde1d fails to build on OpenBSD
  2006-05-15 14:24 1.3.2.gde1d fails to build on OpenBSD Randal L. Schwartz
  2006-05-15 15:58 ` Timo Hirvonen
@ 2006-05-15 16:00 ` Linus Torvalds
  1 sibling, 0 replies; 4+ messages in thread
From: Linus Torvalds @ 2006-05-15 16:00 UTC (permalink / raw)
  To: Randal L. Schwartz; +Cc: git



On Mon, 15 May 2006, Randal L. Schwartz wrote:
> 
> GIT_VERSION = 1.3.2.gde1d
> gcc -o sha1_file.o -c -g -O2 -Wall -I/usr/local/include -DSHA1_HEADER='<openssl/sha.h>' -DNO_STRCASESTR sha1_file.c
> sha1_file.c:16:20: stdint.h: No such file or directory
> gmake: *** [sha1_file.o] Error 1
> 
> I think you want
> 
>         #include <sys/types.h>
> 
> on OpenBSD.

Gaah. This was one reason why I absolutely _detested_ those "intXX_t" 
types historically. I thought the world had gotten over it, and they were 
all so common and standard that we'd never need to worry about it.

Randal: we already _do_ include <sys/types.h>, as part of the standard set 
of headers in git-compat-util.h.

So the problem is that that wasn't enough on OS X, which wanted 
<stdint.h>.

Junio: I'd suggest just using "unsigned int", or just defining your own 
types in "cache.h". I would suggest

	typedef unsigned char u8;
	typedef unsigned short u16;
	typedef unsigned int u32;

	typedef signed char s8;
	typedef short s16;
	typedef int s32;

which is the only sane way to avoid idiotic crap like autoconf, and which 
avoids that whole "standard namespace" issue.

Yeah, some people will complain. Ten years later, they _still_ complain 
about me doing this right in the kernel. But you can sleep well, knowing 
that the complainers are standards-weenies that have read books, but never 
seen the real world.

				Linus

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-05-15 16:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-15 14:24 1.3.2.gde1d fails to build on OpenBSD Randal L. Schwartz
2006-05-15 15:58 ` Timo Hirvonen
2006-05-15 15:57   ` Randal L. Schwartz
2006-05-15 16:00 ` Linus Torvalds

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).