[ale] MajorDomo

James W. Lynch jwl at atlanta.cray.com
Tue Sep 3 10:03:32 EDT 1996


---------  Received message begins Here  ---------

(snip)
> 
> I am trying to run MajorDomo on an Indy workstation...  I'm trying to get
> it to compile and make right now...  when I issue the "make"
> I get this:
> 
> root at lizard:>make        
>         cc -DBIN=\"/tools/majordomo-1.93\" -DPATH=\"PATH=/bin:/usr/bin:/usr/ucb\"  -DHOME=\"HOME=/tools/majordomo-1.93\" -DSHELL=\"SHELL=/bin/csh\"  -DMAJORDOMO_CF=\"MAJORDOMO_CF=/tools/majordomo-1.93/majordomo.cf\"        -DPOSIX_UID=54 -DPOSIX_GID=54 -DSETGROUP -o wrapper wrapper.c
> cfe: Error: wrapper.c, line 65: Unacceptable operand of == or !=
>      if (strchr(argv[1], '/')  != (char *) 0L ) {
>  ------------------------------^
> cfe: Warning 712: wrapper.c, line 99: illegal combination of pointer and integer
>      char setgroups_used = "setgroups_was_included";  
>  ---------^
> *** Error code 1 (bu21)
> 
> 
> Anyone know what is wrong? This is straight out of the package...
> 
> Rob
> 
Looks like crappy code to me.  Try to change
    if (strchr(argv[1], '/')  != (char *) 0L ) {
to
    if (strchr(argv[1], '/')  != (char *) NULL ) {

and

 char setgroups_used = "setgroups_was_included";
to 
 char *setgroups_used = "setgroups_was_included";

But I don't know why the line flagged on the last error could 
have compiled on anything.

Regards,
Jim.

------------------------------------------------------------------------
Jim Lynch, Sales Analyst,  SGI/Cray Research, Inc. / ARS: K4GVO
Southeast District, Phone: (770) 631-2254, Email: jwl at cray.com
Suite 270, 200 Westpark Drive, Peachtree City, GA 30269






More information about the Ale mailing list