Closed Bug 65446 Opened 24 years ago Closed 24 years ago

PSM builds using gmake, needs to be make on Linux

Categories

(Core :: Security: PSM, defect)

1.0 Branch
x86
Linux
defect
Not set
major

Tracking

()

VERIFIED DUPLICATE of bug 63832

People

(Reporter: jg, Assigned: javi)

Details

A default mozilla pull and build works fine here. I pulled this evening using
the following:

make -f client.mk checkout BUILD_MODULES=psm && make -f client.mk build && make
-f client.mk build BUILD_MODULES=psm

which was suggested by someone. It pulled fine and was compiling, until the
following exit error occurred:

if test ! -d /usr/src/cvs/mozilla/obj-opt/security/psm/doc; then       \
        cp -r /usr/src/cvs/mozilla/mozilla/security/psm/doc
/usr/src/cvs/mozilla/obj-opt/security/psm/; \
fi;
cd /usr/src/cvs/mozilla/obj-opt/security/coreconf; gmake -f Makefile BUILD_OPT=1
 DIST=/usr/src/cvs/mozilla/obj-opt/dist/Linux2.4_x86_glibc_PTH_OPT.OBJ 
SOURCE_LIB_DIR=/usr/src/cvs/mozilla/obj-opt/dist/Linux2.4_x86_glibc_PTH_OPT.OBJ/lib
SOURCE_BIN_DIR=/usr/src/cvs/mozilla/obj-opt/dist/Linux2.4_x86_glibc_PTH_OPT.OBJ/bin
SOURCE_XP_DIR=/usr/src/cvs/mozilla/obj-opt/dist/Linux2.4_x86_glibc_PTH_OPT.OBJ
/bin/sh: gmake: command not found
make[3]: *** [install] Error 127
make[3]: Leaving directory `/usr/src/cvs/mozilla/obj-opt/security/psm'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/usr/src/cvs/mozilla/obj-opt/security'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/usr/src/cvs/mozilla/obj-opt'
make: *** [build] Error 2

Clearly something is using 'gmake' rather than 'make' here, which of course
doesn't work.
Easy workaround for this. ln -s /usr/bin/make /usr/bin/gmake. Quite whether
there are any differences between the two isn't clear to me at least, however it
builds and seems to work fine with https://hotmail.com. Marking this severity
Major as it will block people who aren't aware of this simple symlink workaround.
Severity: normal → major
All PSM builds need to be assigned to the PSM product.
Assignee: cls → ddrinan
Component: Build Config → Daemon
Product: Browser → PSM
QA Contact: granrose → junruh
Version: other → 1.4
ddrinan's on sabbatical.
Assignee: ddrinan → javi
I ran into this before, too.

Of course you can always symlink make to gmake, but that's an ugly workaround,
not a solution.

A makefile should *always* use $(MAKE) to invoke another make process, not make
or gmake or whatevermake. That variable contains the exact name you want, namely
the name by which the currently running make was invoked.

I think that can't be hard to fix: find -name Mak\* | xargs grep -n gmake
Seems like there is already a bug about this and something checked in.

*** This bug has been marked as a duplicate of 63832 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Verified dupe of bug 63832: "Makefile.in files have gmake hard coded"
Status: RESOLVED → VERIFIED
Product: PSM → Core
Version: psm1.4 → 1.0 Branch
You need to log in before you can comment on or make changes to this bug.