Great Circle Associates Majordomo-Users
(October 1995)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: compiling wrapper
From: dwolfe @ risc . sps . mot . com (Dave Wolfe)
Date: Mon, 23 Oct 1995 08:44:36 -0500 (CDT)
To: rsr @ ide . com (Roy Rapoport)
Cc: majordomo-users @ greatcircle . com (Majordomo user's mailing list), tim @ usgcc . odu . edu
In-reply-to: <9510202255.AA05548@shadowfx> from "Roy Rapoport" at Oct 20, 95 03:55:20 pm
Reply-to: Dave Wolfe <david_wolfe @ risc . sps . mot . com>

[ Roy Rapoport writes: ]
> 
> On October 20, 1995, tim@usgcc.odu.edu said:
> 
> >cc -DBIN=\"/usr/local/majordomo-1.93\" 
> >-DPATH=\"PATH=/bin:/usr/bin:/usr/ucb\"  
> >-DHOME=\"HOME=/usr/local/majordomo-1.93\" -DSHELL=\"SHELL=/bin/csh\"  
> >-DMAJORDOMO_CF=\"MAJORDOMO_CF=/usr/local/majordomo-1.93/majordomo.cf\"        
> -DPOSIX_UID=54 -DPOSIX_GID=54 -DSETGROUP -o wrapper wrapper.c
> >"wrapper.c", line 65: warning: illegal combination of pointer and 
> >integer, op !=
> >"wrapper.c", line 99: warning: illegal combination of pointer and 
> >integer, op =
> >"wrapper.c", line 99: warning: shortening &(constant) may lose significance
> >"wrapper.c", line 100: auto variable groups has size 0
> >"wrapper.c", line 100: no automatic aggregate initialization
> >"wrapper.c", line 100: illegal lhs of assignment operator
> >"wrapper.c", line 100: warning: illegal combination of pointer and 
> >integer, op =
> >"wrapper.c", line 100: illegal lhs of assignment operator
> >*** Error code 1
> >make: Fatal error: Command failed for target `wrapper'
> >
> >Anyone have an idea what the problem could be.  I have the wrapper.c
> >and wrapper.sh files together.  Does it need any other files??
> 
> Well, I've got good news and bad news.
> 
> The good news is that you do not, to the best of my knowledge, need
> any other file with wrapper -- it's a pretty simple C program.
> 
> The bad news is that the same thing was happening to me for a while,
> until I played around with which compiler I was using (I would
> have thought working in a UNIX development environment would be
> great -- instead, the result is that there are about 10 different
> compilers I can use, but probably only the 10th one will work :) ).
> 
> I'm running on a SUN, the machine I'm compiling it on is a SunOS4.1.3.
> acc works for me, sort of.
> 
> Of course, wrapper is still segfaulting.  I'll probably rewrite it...

Doesn't anyone read the FAQ any more?

  I GET WARNINGS OR ERRORS WHEN TRYING TO COMPILE 1.93'S WRAPPER
  
   You're probably trying to compile the wrapper using the default
   Makefile on a non-POSIX system (like SunOS 4.x). As it says in the
   Makefile, SunOS isn't POSIX -- you need to use the BSD rules.
   
   If you're having trouble compiling the wrapper under AIX, change the
   line that says:

char setgroups_used = "setgroups_was_included"; /* give strings a hint */

   to

char *setgroups_used = "setgroups_was_included"; /* give strings a hint */
     ^
   
   The wrapper compilation may generate warnings under Linux and SunOS,
   which you can safely ignore.


Also, I inserted the line:

#  include <string.h>

in the sequence of lines:

#ifndef STRCHR
#  include <string.h>
#  define STRCHR(s,c) strchr(s,c)
#endif

-- 
 Dave Wolfe    *Not a spokesman for Motorola*  (512) 891-3246
 Motorola MMTG  6501 Wm. Cannon Dr. W. OE112  Austin  TX  78735-8598


References:
Indexed By Date Previous: Re: SUMMARY: Majordomo & LD_LIBRARY_PATH
From: Dave Barr <barr@math.psu.edu>
Next: Need help controlling bounces
From: dpatters@toontown.ess.harris.com (Don Patterson)
Indexed By Thread Previous: Re: compiling wrapper
From: Roy Rapoport <rsr@ide.com>
Next: [no subject]
From: owner-testlist-announce

Google
 
Search Internet Search www.greatcircle.com