[OpenAFS] Trouble compiling 1.4rc4 SRPM

Lester Barrows barrows@email.arc.nasa.gov
Thu, 22 Sep 2005 12:01:35 -0700

Hi Derek,

I also get the res_search error while attempting to rebuild the  source rpm=
this is again on the amd64 (x86_64) platform running RHEL 3. I've been=20
putting ugly, evil kludges into the spec file to make it look for=20
__res_search rather than res_search and then building from the spec. The on=
remaining issue seems to be that the libafs module's name is being mangled=
somewhere in the build process, so we get the following module built:


The spec file expects this to be called "libafs-2.4.21-32.ELsmp.o" and fail=
when attempting to package the file. Aside from the evil kludges and=20
packaging issues, it seems to be building OK here on an amd64 system.

Lester Barrows

On Thursday 22 September 2005 11:30 am, Derek Atkins wrote:
> Kurt Seiffert <seiffert@indiana.edu> writes:
> [snip]
> > I tried bypassing the res_search check. ./configure ran successfully by
> > hand then but then the make blew up with the following:
> >
> >     gcc -c -g -O2=EF=BF=BD=EF=BF=BD
> > -I/usr/src/redhat/BUILD/openafs-1.4.0-rc4/afs-krb5/src/..
> > /../amd64_linux26/dest//include -DPACKAGE_NAME=3D\"afs-krb5\"
> >     -DPACKAGE_TARNAME=3D\"afs-krb5\" -DPACKAGE_VERSION=3D\"1.4\"
> > -DPACKAGE_STRING=3D \"afs-krb5\ 1.4\"
> > -DPACKAGE_BUGREPORT=3D\"kenh@cmf.nrl.navy.mil\" -DAFS=3D1 -DAFS_INT32=
TER=EF=BF=BD=EF=BF=BD afs2k5db.c
> >     afs2k5db.c:33:21: com_err.h: No such file or directory
> >     afs2k5db.c:35:20: k5-int.h: No such file or directory
> >     afs2k5db.c:36:17: adm.h: No such file or directory
> >     afs2k5db.c:37:23: adm_proto.h: No such file or directory
> >     afs2k5db.c:128: error: syntax error before "krb5_key_data"
> >     afs2k5db.c: In function `main':
> No, the RPM just doesn't build afs2k5db.  Take a look at the SPEC. ;)
> > This looks like maybe the patches haven't been applied or something is
> > amiss from trying to run the make from outside the environment setup by
> > the rpmbuild. I still need to research some more.
> Nope, nothing amiss; you're just compiling it differently by hand. ;)