Re: [squid-users] "make install" error on Solaris 8

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 21 Mar 2001 22:23:46 +0100

Jens-Uwe Walther wrote:

> /usr/bin/rm -f /opt/squid/bin/-client
> sh: syntax error at line 2: `;' unexpected
> *** Error code 2
> make: Fatal error: Command failed for target `install'

Ahh... no unlinkd or dnsserver enabled, causing an empty list of helper
programs to install, confusing the solaris shell...

Please try the attached patch.

/Henrik

Index: squid-2.4/src/Makefile.in
--- squid-2.4/src/Makefile.in 2001/02/10 14:41:26 1.195.2.3
+++ squid-2.4-new/Makefile.in 2001/03/21 21:17:46
@@ -347,8 +347,8 @@
                         $(RM) -f $(bindir)/-$$f; \
                 fi; \
         done
- @if test -n "$(UTILS)"; then \
- for f in $(UTILS); do \
+ @for f in $(UTILS) ""; do \
+ if test -n "$f"; then \
                 if test -f $(libexecdir)/$$f; then \
                         echo $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
                         $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
@@ -359,8 +359,8 @@
                         echo $(RM) -f $(libexecdir)/-$$f; \
                         $(RM) -f $(libexecdir)/-$$f; \
                 fi; \
- done; \
- fi
+ fi; \
+ done
         @for f in $(CGIPROGS); do \
                 if test -f $(libexecdir)/$$f; then \
                         echo $(MV) $(libexecdir)/$$f $(libexecdir)/-$$f; \
Received on Wed Mar 21 2001 - 14:21:22 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:58:46 MST