mcheck is a GLIBC extension. So commenting out those lines are fine, but when we integrate the changes to the source tree, it is better to check for the __GNU_LIBRARY__ macro.
http://www.gnu.org/s/hello/manual/gnulib/mcheck_002eh.html -Ron ________________________________ From: Rayson Ho <[email protected]> To: Philippe Dreuw <[email protected]> Cc: [email protected] Sent: Sunday, November 13, 2011 8:32 PM Subject: Re: [gridengine users] SoGE 8 with windows professional execution hosts and cygwin I just diffed libs/sgeobj/sge_conf.c on my Windows drive - to get it compiled under Cygwin, I comment out: - line 39: #include <mcheck.h> - line 649: bool mtrace_before = enable_mtrace - the whole #ifdef LINUX block at line 807: if (enable_mtrace != mtrace_before) { Rayson On Sun, Nov 13, 2011 at 7:06 PM, Rayson Ho <[email protected]> wrote: > On Sun, Nov 13, 2011 at 6:44 PM, Philippe Dreuw > <[email protected]> wrote: >> could you maybe specify what scripts do I have to change for cygwin? >> >> ../libs/sgeobj/sge_conf.c:39:20: fatal error: mcheck.h: No such file >> or directory >> compilation terminated. >> make: *** [sge_conf.o] Error 1 >> not done > > You should be able to get sge_conf.c compiled without including > mcheck.h -- so just comment out the line (line 39) - /* #include > <mcheck.h> */ > > (Note that you will encounter a few minor compilation errors like this > one, so just send the list the error and I hope we could get > everything compiled & tested, and then integrate the changes back to > Son of Grid Engine and Open Grid Scheduler - so that others who want > to compile SGE under Cygwin wouldn't need to do this exercise again.) > > Rayson > > > >> >> >> >> >> On Sun, Nov 13, 2011 at 6:59 PM, Rayson Ho <[email protected]> wrote: >>> On Sun, Nov 13, 2011 at 12:19 PM, Philippe Dreuw >>> <[email protected]> wrote: >>>> 2) Is there any chance to run this configuration, e.g. compile >>>> gridengine on a windows XP pro system with SFU, but use it mainly with >>>> windows xp/7 pro execution hosts running cygwin? >>> >>> SFU and Cygwin are 2 different Windows sub-systems, and thus programs >>> written or compiled for one won't work under the other sub-system. >>> >>> (SFU/Windows Services for UNIX uses the POSIX subsystem, while Cygwin >>> uses the WIN32 subsystem.) >>> >>> Last time I tried, there were some minor code changes needed to get >>> Grid Engine 6.2u5 compiled under Cygwin... I didn't do anything Cygwin >>> specific for Open Grid Scheduler, and I am not sure if Dave did >>> anything specific for Cygwin. >>> >>> Rayson >>> >>> >>> >>>> >>>> Thanks for your help! >>>> >>>> -- >>>> Philippe Dreuw >>>> _______________________________________________ >>>> users mailing list >>>> [email protected] >>>> https://gridengine.org/mailman/listinfo/users >>>> >>> >> >> >> >> -- >> Philippe Dreuw >> > _______________________________________________ users mailing list [email protected] https://gridengine.org/mailman/listinfo/users _______________________________________________ users mailing list [email protected] https://gridengine.org/mailman/listinfo/users
