[ 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:
|
|