help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: not picking up the GNU version of make


From: Stephen Macmanus
Subject: Re: not picking up the GNU version of make
Date: Thu, 21 Apr 2011 11:24:46 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9

Hi Sonal,

The GNU make output for the -version flag begins
with "GNU Make 3.xx" and the script is searching
for this expected output.

The actual output you sent matches the options and
flags for the POSIX compliant version of make which
is also part of the AIX 5.3 installation.

One common location for the GNU make executable is the
"/usr/bin/make" file. The gmake file typically also
uses the same version, but it seems your current
installation is setup differently.

You just need to find where the GNU version exists.

Use the "ls -l" output to verify that /usr/bin/gmake is
not a link to the AIX version, and also see if the
/usr/bin/make file is the GNU version.

The expected output from the -v option is something
like this:

------------------
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 i686-pc-linux-gnu
-------------------


On 4/21/2011 12:16 AM, sonal kumar wrote:
Hi team,

I am new to unix,and need your advice on the below.
I am using aix5.3 and have installed make-3.82 on the server.
I need to use gmake for configuring and installing a package ,but it is
giving error at the below

address@hidden:/usr/tmp/xymon-4.3.2*
*# ./configure.server*
*
*
*Configuration script for Xymon*
*
*
*This script asks a few questions and builds a Makefile to compile Xymon*
*
*
*Checking your make-utility*
*GNU make is required to build Xymon.*
*If it is available as "gmake", run configure as: 'MAKE=gmake
./configure.server'*

I checked the code where its causing the error and tee the output
*CODE:*
*if test "$MAKE" = ""; then*
*        MAKE=make*
*fi*
*echo "Checking your make-utility"*
*MAKEVER=`$MAKE -version 2>&1 | head -n 1 | awk '{print $1 " " $2}'`*
*if test "$MAKEVER" != "GNU Make"*
*then*
*        echo "GNU make is required to build Xymon."*
*        echo "If it is available as \"gmake\", run configure as:
'MAKE=gmake $0'"*
*        exit 1*

TEE OUTPUT
*/usr/bin/gmake: Not a recognized flag: v*
*usage: make [-einqrst] [-k|-S] [-d[A|adg[1|2]mstv]] [-D variable] [-f
makefile ] [-j [jobs]] [variable=value ...] [target ...# which gmake*

Its not picking up the GNU version of make,I have alreadys set the gmake
environment variable etc..

*export MAKE=/usr/bin/gmake*

address@hidden:/usr/bin*
*# which gmake*
*/usr/bin/gmake*
address@hidden:/usr/bin*
*# ls -lrta *make**
*-rwxr-xr-x    1 bin      bin           10318 Nov 23 2004  makedev*
*lrwxrwxrwx    1 bin      bin              20 Mar 01 2009  makekey ->
/usr/ccs/bin/makekey*
*lrwxrwxrwx    1 root     system           36 Apr 08 14:43 automake-1.11 ->
../../opt/freeware/bin/automake-1.11*
*lrwxrwxrwx    1 root     system           31 Apr 08 14:43 automake ->
../../opt/freeware/bin/automake*
*-r-xr-xr-x    1 root     system       106350 Apr 21 09:45 make*
*-r-xr-xr-x    1 root     system       106350 Apr 21 09:47 gmake*
*
*
*
*
*# gcc -v*
*Using built-in specs.*
*COLLECT_GCC=gcc*
*
COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix5.3.0.0/4.6.0/lto-wrapper
*
*Target: powerpc-ibm-aix5.3.0.0*
*Configured with: ../gcc-4.6.0/configure --with-as=/usr/bin/as
--with-ld=/usr/bin/ld --enable-languages=c,c++,fortran
--prefix=/opt/freeware --mandir=/opt/freeware/man
--infodir=/opt/freeware/info --enable-threads
--enable-version-specific-runtime-libs --disable-nls
--enable-decimal-float=dpd --host=powerpc-ibm-aix5.3.0.0*
*Thread model: aix*
*gcc version 4.6.0 (GCC)*


Please suggest on the above,Let me know if u need anymore info



reply via email to

[Prev in Thread] Current Thread [Next in Thread]