AIX GNU Make Issue

2001-03-21 Thread tom_honermann

I'm running GNU Make 3.79.1 on an AIX 4.3.3.0 system and running into the
following problem.

I'm trying to convert from the system make to GNU make.  I have a Makefile
that does nothing but call a shell script:  (This is a test case scaled
down from the original Makefile)

Makefile:
 all:
  ./doit.sh

doit.sh:
 #!/bin/sh

 /path/to/buildserver

doit.sh has only one command in it: a command to run an executable called
buildserver from BEA's Tuxedo product.  If I run "doit.sh" from the command
line, it works fine.  If I invoke the Makefile with the system make, it
works fine.  But, when I invoke the Makefile from GNU Make, I get errors
like:

exec(): 0509-036 Cannot load program /path/to/buildserver because of the
following errors:
 0509-150   Dependent module libgp.a(libgp.so.60) could not be loaded.
 0509-022 Cannot load module libgp.a(libgp.so.60)
 0509-026 System error: A file or directory in the path name does not
exist.
gmake: *** [all] Error 255

Putting the command in doit.sh directly into the Makefile results in the
exact same behavior.

Obviously, the error is coming from the system, not from GNU Make.  But,
apparently, GNU Make is running the program with the environment somehow
messed up.  The library in question above is in my LIBPATH (and remember,
this works by running doit.sh on the command line and when invoking the
Makefile from the system make).  GNU Make doesn't touch LIBPATH (at least I
found no references to it in the make source).  So, any ideas?

Tom.



___
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make



Re: AIX GNU Make Issue

2001-03-21 Thread Paul D. Smith

Check the permissions (ls -l) on the installed GNU make executable.  See
if the setuid or setgid bits are set on the executable.

If they are, try turning them off ("chmod 755 make", for example).

See if that helps.


If this is the problem and you use the above solution, you will lose (at
least this is my understanding, not having an AIX system to work with)
the ability to use the -l option to GNU make, but that's the only effect
you should see.

HTH.

-- 
---
 Paul D. Smith [EMAIL PROTECTED]  Find some GNU make tips at:
 http://www.gnu.org  http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

___
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make