Subject: make fails to execute ./fred because of a chdir()
To: None <tech-toolchain@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: tech-toolchain
Date: 12/13/2002 17:58:45
I've been trying to build the latest ghostscript....
(not from pkgsrc 'cos that version is from the ark)
Everything built fine, but 'make install' fails with:
make: exec(./src/instcopy) failed (No such file or directory)
A quick ktrace shows that make does:
6822 make CALL __stat13(0xbfbfa840,0xbfbfac44)
6822 make NAMI "/oldroot/home/dsl/tmp/ghostscript-8.00/obj.i386"
6822 make RET __stat13 -1 errno 2 No such file or directory
6822 make CALL __stat13(0xbfbfa840,0xbfbfac44)
6822 make NAMI "/oldroot/home/dsl/tmp/ghostscript-8.00/obj"
6822 make RET __stat13 0
6822 make CALL chdir(0xbfbfa840)
6822 make NAMI "/oldroot/home/dsl/tmp/ghostscript-8.00/obj"
6822 make RET chdir 0
6822 make CALL open(0x805fac9,0x4,0)
6822 make NAMI "."
6822 make RET open 3
fairly early on - there are no chdir() calls in the trace.
I'm no expert on netbsd's make, but this makefile looks fairly
simple (if rather long)
About the first thing it has to do is:
install-exec:
./src/instcopy ....
but the current directory is all wrong.
Thoughts?
(gmake installed it ok, an old SYSV make might also have
worked - provided it new about 'include')
David
--
David Laight: david@l8s.co.uk