[Mailman-Users] Compilation problems

Victoriano Giralt vic at vgg.sci.uma.es
Mon Dec 7 01:45:24 CET 1998

On Thu, 3 Dec 1998, Barry A. Warsaw wrote:

> >>>>> "VG" == Victoriano Giralt <vic at vgg.sci.uma.es> writes:
>     VG> I've just downloaded mailman-1.0b6 and tryed to compile it in
>     VG> a DEC AXP with Digital Unix, and get the following errors
>     VG> while doing make:
> What version of make are you running?  It's possible I've got something
I'm running the deafult make that comes with the operating system
development tools.
> Try making sure you're building with GNU make instead of whatever make 
> you're using by default.
> If this really is the problem, we'll have to add a note to the
> installation instructions.  Or if you can figure out the fix to
> Makefile.in and send us a patch, that would be best!
Thanks for the light, I've succesfully made mailman, though using a

The culprit is '$<'.

>From the man page:
  $<  Represents the name of the component that is being used to make the
      target.  Used only in conjunction with suffix rules.

>From GNU make info page:
     The name of the first dependency.  If the target got its commands
     from an implicit rule, this will be the first dependency added by
     the implicit rule (*note Implicit Rules::.).

So $< wasn't beeing translated into cgi-wrapper, nor mail-wrapper.

My workaround, not beeing a make guru myself, has been:

As I have deduced that we always needed $< substituted for cgi-wrapper.c,
that's what I did in Makefile.in:

$(CGI_PROGS): $(srcdir)/cgi-wrapper.c common.o
#       $(CC) -DSCRIPT="\"$@\"" -I. $(CGI_FLAGS) $(CFLAGS) common.o -o $@ $<
$(CC) -DSCRIPT="\"$@\"" -I. $(CGI_FLAGS) $(CFLAGS) common.o -o $@ \


wrapper: $(srcdir)/mail-wrapper.c common.o
#       $(CC) -I. $(MAIL_FLAGS) $(CFLAGS) common.o -o $@ $<
        $(CC) -I. $(MAIL_FLAGS) $(CFLAGS) common.o -o $@ mail-wrapper.c

The commented out lines are the original ones.

Victoriano Giralt
Systems Programmer
Central Computing Facility
University of Málaga

More information about the Mailman-Users mailing list