[OpenAFS] minor issue compiling 1.3.80

Dj Merrill deej@thayer.dartmouth.edu
Fri, 25 Mar 2005 15:28:56 -0500


	Just grabbed the source for 1.3.80 today, and am
compiling it on CentOS 4 (basically Redhat Enterprise 4).
I ran into a small snag during the make:

(configured with ./configure --enable-transarc-paths )

Building in directory: MODLOAD-2.6.9-5.0.3.EL-SP
make[4]: Entering directory 
`/root/src/openafs-1.3.80/src/libafs/MODLOAD-2.6.9-5.0.3.EL-SP'
Makefile.common:51: warning: overriding commands for target `.c.o'
/root/src/openafs-1.3.80/src/config/Makefile.config:132: warning: 
ignoring old commands for target `.c.o'
env EXTRA_CFLAGS="" ./make_kbuild_makefile.pl MODLOAD-2.6.9-5.0.3.EL-SP 
libafs.ko /root/src/openafs-1.3.80/src/config/Makefile.config 
Makefile.afs Makefile.common
env: ./make_kbuild_makefile.pl: No such file or directory
make[4]: *** [libafs.ko] Error 127
make[4]: Leaving directory 
`/root/src/openafs-1.3.80/src/libafs/MODLOAD-2.6.9-5.0.3.EL-SP'
make[3]: *** [linux_compdirs] Error 2
make[3]: Leaving directory `/root/src/openafs-1.3.80/src/libafs'
make[2]: *** [libafs] Error 2
make[2]: Leaving directory `/root/src/openafs-1.3.80'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/root/src/openafs-1.3.80'
make: *** [all] Error 2


	The "make_kbuild_makefile.pl" file is actually one
level above MODLOAD-2.6.9-5.0.3.EL-SP in
openafs-1.3.80/src/libafs.

	Contents of MODLOAD-2.6.9-5.0.3.EL-SP are:
[root MODLOAD-2.6.9-5.0.3.EL-SP]# ls -la
total 28
drwxr-xr-x  2 root root 4096 Mar 25 15:08 .
drwxrwxr-x  4  101  101 4096 Mar 25 15:08 ..
lrwxrwxrwx  1 root root    9 Mar 25 15:08 config -> ../config
lrwxrwxrwx  1 root root   11 Mar 25 15:08 Makefile.afs -> ../Makefile
lrwxrwxrwx  1 root root   18 Mar 25 15:08 Makefile.common -> 
../Makefile.common


	Looks like some links are made, so my quick fix was:
[root MODLOAD-2.6.9-5.0.3.EL-SP]# ln -s ../make_kbuild_makefile.pl .
[root MODLOAD-2.6.9-5.0.3.EL-SP]# ls -la
total 32
drwxr-xr-x  2 root root 4096 Mar 25 15:11 .
drwxrwxr-x  4  101  101 4096 Mar 25 15:08 ..
lrwxrwxrwx  1 root root    9 Mar 25 15:08 config -> ../config
lrwxrwxrwx  1 root root   11 Mar 25 15:08 Makefile.afs -> ../Makefile
lrwxrwxrwx  1 root root   18 Mar 25 15:08 Makefile.common -> 
../Makefile.common
lrwxrwxrwx  1 root root   26 Mar 25 15:11 make_kbuild_makefile.pl -> 
../make_kbuild_makefile.pl

	
	The make completed fine after this (although I have not yet
tested the binaries).

	One other note is that the "config" link in the
MODLOAD-2.6.9-5.0.3.EL-SP points to a "config" file in the
directory above it, but no "config" file actually
exists there.  It did not cause the make to fail, though.

Hope this helps,

fyi

-Dj

-- 
Dj Merrill
deej@thayer.dartmouth.edu

"TSA: Totally Screwing Aviation"