Menu

#1 suacomp 0.6.14 doesn't build on SUA 6.0

open
nobody
None
1.0.0
2012-09-14
2012-09-14
David Holm
No

strtoll and strtoull are already defined in SUA 6.0 but with a different prototype. The build will fail because strto[u]ll.c includes stdlib.h which also comes with defines for these two functions causing the function declaration to not even be valid C-code.

I have attached a patch to resolve this issue.

1 Attachments

Discussion

  • David Holm

    David Holm - 2012-09-14
    • status: open --> closed
     
  • David Holm

    David Holm - 2012-09-14

    This patch was not a good idea. I'll look into another fix.

     
  • David Holm

    David Holm - 2012-09-14

    Here is a new patch that changes suacomp so that strto[u]ll.c is using C99 prototypes which are used in SUA 6.0.

     
  • David Holm

    David Holm - 2012-09-14
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,3 +1,3 @@
    -strtoll and strtoull are already defined in SUA 6.0 but with a different prototype. The build will fail because strtoll[u].c includes stdlib.h which also comes with defines for these two functions causing the function declaration to not even be valid C-code.
    +strtoll and strtoull are already defined in SUA 6.0 but with a different prototype. The build will fail because strto[u]ll.c includes stdlib.h which also comes with defines for these two functions causing the function declaration to not even be valid C-code.
    
     I have attached a patch to resolve this issue.
    
    • status: closed --> open
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB