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

Re: Interested in helping open source friends on HP-UX?

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Mar 3, 2015, 16:05 UTC
Message-ID
<54F5DBE1.6080004@drmicha.warpmail.net>
In-Reply-To
<20150303163042.655fe00c@pc09.procura.nl>
H.Merijn Brand venit, vidit, dixit 03.03.2015 16:30:
Show 69 quoted lines
> On Tue, 03 Mar 2015 15:55:48 +0100, Michael J Gruber
> <git@drmicha.warpmail.net> wrote:
> 
>> H.Merijn Brand venit, vidit, dixit 19.02.2015 19:56:
>>> On Thu, 19 Feb 2015 14:21:11 +0100, Michael J Gruber
>>> <git@drmicha.warpmail.net> wrote:
>>>
>>>> Jeff, you got it wrong. You should do the hard part and leave the easy
>>>> part to us!
>>>>
>>>> Thanks anyways, I'll add this to my HP_UX branch.
>>>
>>> I did not mention this in earlier mails. When using the HP C-ANSI-C
>>> compiler, MAX_INT is not set.
>>>
>>> I had to add
>>> --8<---
>>> #ifndef   SIZE_MAX
>>> #  define SIZE_MAX              (18446744073709551615UL)
>>> /* define SIZE_MAX              (4294967295U) */
>>> #  endif
>>> -->8---
>>>
>>> to these files
>>>
>>> sha1_file.c
>>> utf8.c
>>> walker.c
>>> wrapper.c
>>>
>>> And yes, that could be dynamic and probably be in another header file
>>>
>>
>> In compat/regex/regex_internal.h we have
>>
>> /* For loser systems without the definition.  */
>> #ifndef SIZE_MAX
>> # define SIZE_MAX ((size_t) -1)
>> #endif
>>
>> Does this work in your environment?
> 
> I think it does:
> 
> make
>     CC sha1_file.o
>     CC utf8.o
>     CC walker.o
> "walker.c", line 119: warning #4232-D: conversion from "struct object *" to a
>           more strictly aligned type "struct commit *" may cause misaligned
>           access
>                 if (process_commit(walker, (struct commit *)obj))
>                                            ^
> 
> "walker.c", line 124: warning #4232-D: conversion from "struct object *" to a
>           more strictly aligned type "struct tree *" may cause misaligned
>           access
>                 if (process_tree(walker, (struct tree *)obj))
>                                          ^
> 
> "walker.c", line 132: warning #4232-D: conversion from "struct object *" to a
>           more strictly aligned type "struct tag *" may cause misaligned access
>                 if (process_tag(walker, (struct tag *)obj))
>                                         ^
> 
>     CC wrapper.o
>     AR libgit.a
> 
> 

Hmmh. Did you get these same warnings with the fix you had before? They don't make feel that confident...

Show 7 quoted lines
>> [Trying to not let this fall into oblivion...]
> 
> Much appreciated!
> 
>> Michael
> 
> 
Previous: H.Merijn BrandNext: H.Merijn Brand
Message 15 of 23 in “Interested in helping open source friends on HP-UX?”
  1. Junio C HamanoDec 11, 2014
  2. H.Merijn BrandFeb 18, 2015
  3. Michael J GruberFeb 18, 2015
  4. Jeff KingFeb 18, 2015
  5. Junio C HamanoFeb 18, 2015
  6. Jeff KingFeb 18, 2015
  7. Michael J GruberFeb 19, 2015
  8. H.Merijn BrandFeb 19, 2015
  9. Michael J GruberFeb 19, 2015
  10. Jeff KingFeb 19, 2015
  11. Michael J GruberFeb 19, 2015
  12. H.Merijn BrandFeb 19, 2015
  13. Michael J GruberMar 3, 2015
  14. H.Merijn BrandMar 3, 2015
  15. Michael J GruberMar 3, 2015
  16. H.Merijn BrandMar 3, 2015
  17. Jeff KingFeb 20, 2015
  18. Michael J GruberFeb 20, 2015
  19. Jeff KingFeb 20, 2015
  20. H.Merijn BrandFeb 20, 2015
  21. H.Merijn BrandFeb 18, 2015
  22. H.Merijn BrandFeb 18, 2015
  23. David AguilarFeb 21, 2015

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.