Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2007 00:59:06 +0400
From:      Yuri Pankov <yuri@darklight.org.ru>
To:        Dima Sorkin <dima.sorkin@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: make and gmake on FreeBSD
Message-ID:  <20070726205906.GA10992@darklight.org.ru>
In-Reply-To: <e40293600707261326x2f65e4a6p46361ae20ab79fc8@mail.gmail.com>
References:  <e40293600707261326x2f65e4a6p46361ae20ab79fc8@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

--ZGiS0Q5IWpPtfppv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Thu, Jul 26, 2007 at 11:26:28PM +0300, Dima Sorkin wrote:
> Hi.
> I have a FreeBSD 6.2, installed it from the distribution disks, no
> changes by me.
>
> There is a "make" and a "gmake" installed on it. They report that they
> are the same programm, but in fact they behave completely different.
> In fact only "gmake" behaves
> like "GNU make" should behave and only with "gmake"
> I succeed to build serious projects.
>
> What happens here ?  What I the "make", where did it come from ?
>
> How do I cause to system "make" behave as "gmake" ?
>
> Thanks, regards,
> Dima.
>
> P.S.  see their output:
> [dsorkin@eml5 /usr/home/dsorkin]$ make --version
> GNU Make 3.81
> Copyright (C) 2006  Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
>
> This program built for i386-portbld-freebsd6.2
> [dsorkin@eml5 /usr/home/dsorkin]$ gmake --version
> GNU Make 3.81
> Copyright (C) 2006  Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.
> There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
> PARTICULAR PURPOSE.
>
> This program built for i386-portbld-freebsd6.2
> [dsorkin@eml5 /usr/home/dsorkin]$ which make
> /usr/bin/make
> [dsorkin@eml5 /usr/home/dsorkin]$ which gmake
> /usr/local/bin/gmake
> [dsorkin@eml5 /usr/home/dsorkin]$ diff /usr/bin/make /usr/local/bin/gmake
> Binary files /usr/bin/make and /usr/local/bin/gmake differ
> [dsorkin@eml5 /usr/home/dsorkin]$

Don't you have shell alias make -> gmake, by chance? Try running system
make using full path.


Yuri

--ZGiS0Q5IWpPtfppv
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQBGqQsaeoAklVFrLdgRAkCZAJ9AHBTxnlJssGeNFvazajE9UOQuvwCdE691
R1X1cNz9nz/jflZxa4IZagk=
=Edfi
-----END PGP SIGNATURE-----

--ZGiS0Q5IWpPtfppv--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20070726205906.GA10992>