I recently compiled the version 1.3.94 kernel. Previously I had version
1.2.1 from Slackware 2.2 distribution. To compile it I had to upgrade my
ld.so and gcc. I got these from the development disks of the slackware
distribution at ftp://sunsite.unc.edu/pub/Linux/distributions/slackware/
slakware/d* so that I would not have to worry about version problems between
gcc, binutils and libc.
Everything compiled fine, but the problem is that once I rebooted with
the new kernel image I could no long use make.
If for instance I typed "make dep" I got the following error:
make: *** No rule to make target 'dep'. Stop.
If I simply type "make" I get the following error:
make: *** No targets specified and no makefile found. Stop.
I tried renaming the file from Makefile to makefile. When I did this it
worked but stopped when it referenced Makefiles in lower level
directories or if it was for a single directory project it stopped if it
referenced any other Makefiles.
Typing the following causes it to work for single directory projects:
sed 's/Makefile/makefile/g' Makefile > makefile
This might also work for multiple directory projects if I did that to all
of the Makefiles, but the clincher is that it would only work once and
would then give me the errors listed above on subsequent makes.
The only consistent fix was to use make -f Makefile to compile, but it is
cumbersome and only works for single directory projects.
Finally, the entire problem goes away if I restore my old kernel image.
---> Additional information.
When installing ld.so and the development packages I used pkgtool to
remove the old packages.
When I was done installing I found that gcc would not run, giving the
following error message:
gcc: can not load '/lib/libc.so.5'
I was surprised since I got all of the development tools from the
Slackware disks. I tried making a symlink libc.so.5 -> libc.so.4.7.2.
When that didn't work I downloaded libc-5.3.9 and installed it after
removing the libc package with pkgtool. Then I created the symlink
libc.so.5 -> libc.so.5.3.9. That worked, but could it possibly have had
undesirable consequences?
Thanks for any help you can give on this.
Waleed