[OpenAFS] Build from the source rpm

Terry McCoy terry@nd.edu
Mon, 25 Jun 2012 18:21:29 -0400


Hey

I am trying to build OpenAFS from the source RPM and I am having it 
abort with these errors.  The environment is rhel 5.6, and from what I 
can tell the directory  
/usr/src/redhat/BUILD/openafs-1.6.1/src/libafs/afs  does not exist 
therefore the rpmbuild aborts

Any ideas?



# rpmbuild --rebuild openafs-1.6.1-1.src.rpm

    {  stuff omitted }

make[3]: Entering directory `/usr/src/redhat/BUILD/openafs-1.6.1/src/dir'
/usr/bin/install -c -m 644 dir.h 
/usr/src/redhat/BUILD/openafs-1.6.1/include/afs/dir.h
make[3]: Leaving directory `/usr/src/redhat/BUILD/openafs-1.6.1/src/dir'
cd src && cd rxstat && make depinstall
make[3]: Entering directory `/usr/src/redhat/BUILD/openafs-1.6.1/src/rxstat'
/usr/src/redhat/BUILD/openafs-1.6.1/src/rxgen/rxgen -A -x -h -o rxstat.h 
./rxstat.xg
/usr/bin/install -c -m 644 rxstat.h 
/usr/src/redhat/BUILD/openafs-1.6.1/include/rx/rxstat.h
/usr/src/redhat/BUILD/openafs-1.6.1/src/rxgen/rxgen -x -k -C -o 
Krxstat.cs.c ./rxstat.xg
/usr/src/redhat/BUILD/openafs-1.6.1/src/rxgen/rxgen -x -k -S -o 
Krxstat.ss.c ./rxstat.xg
/usr/src/redhat/BUILD/openafs-1.6.1/src/rxgen/rxgen -x -k -c -o 
Krxstat.xdr.c ./rxstat.xg
make[3]: Leaving directory `/usr/src/redhat/BUILD/openafs-1.6.1/src/rxstat'
cd src && cd sys && make depinstall
make[3]: Entering directory `/usr/src/redhat/BUILD/openafs-1.6.1/src/sys'
/usr/bin/install -c -m 644 afssyscalls.h 
/usr/src/redhat/BUILD/openafs-1.6.1/include/afs/afssyscalls.h
/usr/src/redhat/BUILD/openafs-1.6.1/src/rxgen/rxgen -A -h -o rmtsys.h 
./rmtsys.xg
/usr/bin/install -c -m 644 rmtsys.h 
/usr/src/redhat/BUILD/openafs-1.6.1/include/afs/rmtsys.h
+ case amd64_linux26 in
+ touch afs.exp
+ case amd64_linux26 in
/usr/bin/install -c -m 644 xfsattrs.h 
/usr/src/redhat/BUILD/openafs-1.6.1/include/afs/xfsattrs.h
/usr/bin/install -c -m 644 sys_prototypes.h 
/usr/src/redhat/BUILD/openafs-1.6.1/include/afs/sys_prototypes.h
+ case amd64_linux26 in
/usr/bin/install -c -d ../libafs/afs
Bad switch -d
make[3]: *** [../libafs/afs/xfsattrs.h] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/openafs-1.6.1/src/sys'
make[2]: *** [sys_depinstall] Error 2
make[2]: Leaving directory `/usr/src/redhat/BUILD/openafs-1.6.1'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/openafs-1.6.1'
make: *** [only_libafs_tree] Error 2
+ exit 1
error: Bad exit status from /var/tmp/rpm-tmp.1624 (%build)


RPM build errors:
     InstallSourcePackage: Header V3 DSA signature: NOKEY, key ID fa35869a
     Bad exit status from /var/tmp/rpm-tmp.1624 (%build)