git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [patch 07/15] host-IRIX.patch

From
BCBrandon Casey <brandon.casey.ctr@nrlssc.navy.mil>
Date
Mar 16, 2010, 15:27 UTC
Message-ID
<VUV1ChwKH_zLPsIikaNeBZfWtyUI9YmyOzkiMdEjHJ0PuUAnPbDsEw@cipher.nrlssc.navy.mil>
In-Reply-To
<20100316054331.991677000@mlists.thewrittenword.com>
On 03/16/2010 12:42 AM, Gary V. Vaughan wrote:
Show 5 quoted lines
> 
> Irix 6.5 does not define 'sgi', but does define '__sgi'.
> 
> Also, Irix 6.5 requires _BSD_TYPES to be defined in order for the BSD
> u_short types et. al. to be declared properly.
Which IRIX release (uname -R) and compiler version are you using?
I have IRIX 6.5.29m and MIPSpro Compiler 7.4.4m.

Both 'sgi' and '__sgi' appear to be predefined by the preprocessor on my system. I wasn't aware of '__sgi' when I added 'sgi', otherwise I would have used it.

On my system, defining _SGI_SOURCE causes _SGIAPI to be enabled which causes all of the BSD types to be enabled. In my header files in /usr/include/ everywhere I see a test for _BSD_TYPES, I also see a test for _SGIAPI (or something equivalent) like this:

   #if _SGIAPI || defined(_BSD_TYPES)

So defining _BSD_TYPES will probably not affect compiling on IRIX for me (though I haven't tested your patches yet), but do your header files not do the same thing with _SGI_SOURCE, _SGIAPI, and _BSD_TYPES?

Which shell are you using? Bash? or the native Korn shell? If you're trying to use the Korn shell, then you'll need a patch to t/test-lib.sh in order for the test suite to work properly. I can send it to you if you'd like.

I compile and test with the following config.mak settings:
GIT_SKIP_TESTS := \
   t3900.1[129] t3900.2[0234] \
   t5100.5 t5100.1[09] \
   t8005.[234]
export GIT_SKIP_TESTS

# perl 5.8.0 # python 2.1 # GNU tar 1.2 PERL_PATH = /apps/bin/perl PYTHON_PATH = /apps/bin/python TAR = /sw/local/bin/gtar

CC = c99 CFLAGS = -n32 -O2

NO_C99_FORMAT = 1 NO_CURL = 1 NO_TCLTK = 1 NO_MMAP = NO_OPENSSL = 1 BLK_SHA1 = 1 DEFAULT_PAGER = more

# For IRIX <= 6.5.20 compatibility (uname -R) # i.e. the next two are not necessary for IRIX > 6.5.20 NO_STRLCPY = 1 NO_DEFLATE_BOUND = 1

-brandon
Previous: Gary V. VaughanNext: Gary V. Vaughan
Message 22 of 37 in “Portability Patches v3”
  1. 00/15 Portability Patches v3Gary V. Vaughan, Mar 16, 2010
  2. 01/15 user-cppflags.patchGary V. Vaughan, Mar 16, 2010
  3. Junio C HamanoMar 16, 2010
  4. 02/15 const-expr.patchGary V. Vaughan, Mar 16, 2010
  5. Johannes SixtMar 16, 2010
  6. Gary V. VaughanMar 16, 2010
  7. Avery PennarunMar 16, 2010
  8. Gary V. VaughanApr 25, 2010
  9. 03/15 pthread.patchGary V. Vaughan, Mar 16, 2010
  10. Junio C HamanoMar 16, 2010
  11. 04/15 diff-export.patchGary V. Vaughan, Mar 16, 2010
  12. Junio C HamanoMar 16, 2010
  13. 05/15 diff-test_cmp.patchGary V. Vaughan, Mar 16, 2010
  14. Junio C HamanoMar 16, 2010
  15. Gary V. VaughanApr 25, 2010
  16. 06/15 diff-defaults.patchGary V. Vaughan, Mar 16, 2010
  17. Junio C HamanoMar 16, 2010
  18. Gary V. VaughanApr 25, 2010
  19. 07/15 host-IRIX.patchGary V. Vaughan, Mar 16, 2010
  20. Junio C HamanoMar 16, 2010
  21. Gary V. VaughanApr 25, 2010
  22. Brandon CaseyMar 16, 2010
  23. Gary V. VaughanApr 25, 2010
  24. 08/15 host-HPUX10.patchGary V. Vaughan, Mar 16, 2010
  25. 09/15 host-HPUX11.patchGary V. Vaughan, Mar 16, 2010
  26. 10/15 host-OSF1.patchGary V. Vaughan, Mar 16, 2010
  27. 11/15 no-hstrerror.patchGary V. Vaughan, Mar 16, 2010
  28. Junio C HamanoMar 16, 2010
  29. Gary V. VaughanApr 25, 2010
  30. 12/15 no-inet_ntop.patchGary V. Vaughan, Mar 16, 2010
  31. 13/15 no-socklen_t.patchGary V. Vaughan, Mar 16, 2010
  32. Junio C HamanoMar 16, 2010
  33. Gary V. VaughanApr 25, 2010
  34. 14/15 no-ss_family.patchGary V. Vaughan, Mar 16, 2010
  35. 15/15 no-inline.patchGary V. Vaughan, Mar 16, 2010
  36. Sverre RabbelierMar 16, 2010
  37. Brandon CaseyMar 16, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.