[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=
,=20
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=
ly=20
remaining issue seems to be that the libafs module's name is being mangled=
=20
somewhere in the build process, so we get the following module built:
libafs-2.4.21-32.0.1.ELsmp.o
The spec file expects this to be called "libafs-2.4.21-32.ELsmp.o" and fail=
s=20
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.
Regards,
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=
=3D1
> > -DAFS_TRY_FULL_PRINC=3D1 -DHAVE_DAEMON=3D1 -DSTDC_HEADERS=3D1
> > -DHAVE_SYS_TYPES_H=3D1 -DHAVE_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1
> > -DHAVE_STRING_H =3D1 -DHAVE_MEMORY_H=3D1 -DHAVE_STRINGS_H=3D1
> > -DHAVE_INTTYPES_H=3D1
> > -DHAVE_STDINT_H=3D1 -DHAVE_UNISTD_H=3D1 -DHAVE_UNISTD_H=3D1
> > -DHAVE_STDLIB_H=3D1 -DHAVE_MEMORY_H=3D1 -DHAVE_PATHS_H=3D1 -DHAVE_MALLO=
C_H=3D1
> > -DHAVE_STRERROR=3D1 -DRETSIGTYPE=3Dvoid=EF=BF=BD=EF=BF=BD -DALLOW_REGIS=
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. ;)