From owner-freebsd-questions Fri Feb 6 19:51:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA00628 for questions-outgoing; Fri, 6 Feb 1998 19:51:29 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mail3.bellglobal.com ([198.235.216.132]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA00577 for ; Fri, 6 Feb 1998 19:51:23 -0800 (PST) (envelope-from rasmus@lerdorf.on.ca) Received: from shell.lerdorf.on.ca ([207.164.141.19]) by mail3.bellglobal.com (Netscape Mail Server v2.02) with SMTP id AAA29789; Fri, 6 Feb 1998 22:50:27 -0500 Date: Fri, 6 Feb 1998 22:53:19 -0500 (Eastern Standard Time) From: rasmus@lerdorf.on.ca (Rasmus Lerdorf) To: Jonah Kuo cc: freebsd mailing list Subject: Re: php-3.0b4 In-Reply-To: <34DBD9FA.8573493@mail.ttn.com.tw> Message-ID: X-X-Sender: rasmus@imap3.bellglobal.com MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe questions" > I'm having trouble with PHP-3.0b4. > My OS is Freebsd 3.0-current and gcc is v2.7.2.1. > > After I configured it, I simply type 'make' and it produced > lots of error messages. I found all the object files in functions/ > were put into the top source tree, except number.o, instead > functions/ directory. > > Then I checked the Makefile, I found > > functions/%.o: functions/%.c > $(CC) $(CFLAGS) -c $< -o $@ > functions/number.o: functions/number.c > $(CC) $(CFLAGS) -w -c $< -o $@ > > Is there something wrong? or should I modify the file > /etc/make.conf? Congratulations, you have discovered how braindead BSD make is. Install GNU make and your problems will go away. At least I think it is braindead behaviour. If someone can explain to me why $< and $@ expand correctly in the number.o rule, but not in the general rule, I would appreciate it. Sun make, Irix make, GNU make and everything except BSD make handles this nicely. -Rasmus