Menu

#166 Patch to fix compilation using Sun compiler in Solaris 10

open
nobody
None
5
2012-11-29
2009-04-28
Aaron Watry
No

I'm running Solaris 10, and by default the make process fails using the Sun compiler because the C99 standard isn't enabled. Since there's only 3 variables that cause the compilation to break, I've created a patch against rdesktop-1.60 that fixes the compile process. It is attached to this topic.

Discussion

  • Aaron Watry

    Aaron Watry - 2009-04-28

    patch against xclip.c that allows Solaris compilation

     
  • Nobody/Anonymous

    I guess I should probably elaborate a little. There is a slight issue with the code in xclip.c, in that there are 3 variables that are declared mid-function. One is declared inside a for loop, and the other two are just declared after the usual declarations section of their respective functions.

    In C99, this isn't an issue, since variables can be declared wherever, but this mode is not enabled by the Sun compiler in Solaris 10 by default, and it causes the compile process to throw an error. By declaring these variables at the beginning of their respective functions, the compile process completes, and all is well with the world.

     
  • Nobody/Anonymous

    uoBmUo <a href="http://acaqtjqayzvc.com/">acaqtjqayzvc</a>, [url=http://sulnpdbdxbfb.com/]sulnpdbdxbfb[/url], [link=http://qvkupkvwmpod.com/]qvkupkvwmpod[/link], http://ijsxktpzcjld.com/