make and gmake on FreeBSD

Yuri Pankov yuri at darklight.org.ru
Thu Jul 26 20:59:17 UTC 2007


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 at 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 at 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 at eml5 /usr/home/dsorkin]$ which make
> /usr/bin/make
> [dsorkin at eml5 /usr/home/dsorkin]$ which gmake
> /usr/local/bin/gmake
> [dsorkin at eml5 /usr/home/dsorkin]$ diff /usr/bin/make /usr/local/bin/gmake
> Binary files /usr/bin/make and /usr/local/bin/gmake differ
> [dsorkin at eml5 /usr/home/dsorkin]$

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


Yuri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070726/b0f14a0e/attachment.pgp


More information about the freebsd-questions mailing list