[OpenAFS] Compiling - undefined references error

David Miguel davidbranquinho@gmail.com
Sun, 4 Jan 2009 14:23:49 +0000


------=_Part_199208_5054581.1231079029793
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello,

I'm trying to compile afs with kerberos 5 support, on fedora 9.

uname:
Linux 2.6.25-14.fc9.i686 #1 SMP Thu May 1 06:28:41 EDT 2008 i686 i686 i386
GNU/Linux

I'm configuring with:
./configure --with-krb5 --with-afs-sysname=i386_linux26

But 'make' gives me this errors:

gcc -pipe  -O2 -I/root/openafs-1.5.56/src/config -I. -I.
-I/root/openafs-1.5.56/include -I/root/openafs-1.5.56/include/afs
-I/root/openafs-1.5.56/include/rx -I/root/openafs-1.5.56
-I/root/openafs-1.5.56/src -I/root/openafs-1.5.56/src -D_LARGEFILE64_SOURCE
-o copyauth copyauth.o libauth.a /root/openafs-1.5.56/lib/libsys.a
/root/openafs-1.5.56/lib/librxkad.a /root/openafs-1.5.56/lib/libdes.a
/root/openafs-1.5.56/lib/librx.a /root/openafs-1.5.56/lib/libsys.a
/root/openafs-1.5.56/lib/liblwp.a /root/openafs-1.5.56/lib/util.a
libauth.a(cellconfig.o): In function `afsconf_GetAfsdbInfo':
cellconfig.c:(.text+0x10c3): undefined reference to `__res_search'
cellconfig.c:(.text+0x1156): undefined reference to `__res_search'
cellconfig.c:(.text+0x11aa): undefined reference to `__dn_expand'
cellconfig.c:(.text+0x122a): undefined reference to `__dn_expand'
cellconfig.c:(.text+0x12ce): undefined reference to `__dn_expand'
cellconfig.c:(.text+0x13fe): undefined reference to `__res_search'
collect2: ld returned 1 exit status
make[3]: *** [copyauth] Error 1
make[3]: Leaving directory `/root/openafs-1.5.56/src/auth'
make[2]: *** [auth] Error 2
make[2]: Leaving directory `/root/openafs-1.5.56'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/root/openafs-1.5.56'
make: *** [all] Error 2

Can anyone help me?

Thank you very much,
--david

------=_Part_199208_5054581.1231079029793
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello,<br><br>I&#39;m trying to compile afs with kerberos 5 support, on fedora 9.<br><br>uname:<br>Linux 2.6.25-14.fc9.i686 #1 SMP Thu May 1 06:28:41 EDT 2008 i686 i686 i386 GNU/Linux<br><br>I&#39;m configuring with:<br>./configure --with-krb5 --with-afs-sysname=i386_linux26<br>
<br>But &#39;make&#39; gives me this errors:<br><br>gcc -pipe&nbsp; -O2 -I/root/openafs-1.5.56/src/config -I. -I. -I/root/openafs-1.5.56/include -I/root/openafs-1.5.56/include/afs -I/root/openafs-1.5.56/include/rx -I/root/openafs-1.5.56 -I/root/openafs-1.5.56/src -I/root/openafs-1.5.56/src -D_LARGEFILE64_SOURCE&nbsp; -o copyauth copyauth.o libauth.a /root/openafs-1.5.56/lib/libsys.a /root/openafs-1.5.56/lib/librxkad.a /root/openafs-1.5.56/lib/libdes.a /root/openafs-1.5.56/lib/librx.a /root/openafs-1.5.56/lib/libsys.a /root/openafs-1.5.56/lib/liblwp.a /root/openafs-1.5.56/lib/util.a<br>
libauth.a(cellconfig.o): In function `afsconf_GetAfsdbInfo&#39;:<br>cellconfig.c:(.text+0x10c3): undefined reference to `__res_search&#39;<br>cellconfig.c:(.text+0x1156): undefined reference to `__res_search&#39;<br>cellconfig.c:(.text+0x11aa): undefined reference to `__dn_expand&#39;<br>
cellconfig.c:(.text+0x122a): undefined reference to `__dn_expand&#39;<br>cellconfig.c:(.text+0x12ce): undefined reference to `__dn_expand&#39;<br>cellconfig.c:(.text+0x13fe): undefined reference to `__res_search&#39;<br>collect2: ld returned 1 exit status<br>
make[3]: *** [copyauth] Error 1<br>make[3]: Leaving directory `/root/openafs-1.5.56/src/auth&#39;<br>make[2]: *** [auth] Error 2<br>make[2]: Leaving directory `/root/openafs-1.5.56&#39;<br>make[1]: *** [build] Error 2<br>
make[1]: Leaving directory `/root/openafs-1.5.56&#39;<br>make: *** [all] Error 2<br><br clear="all">Can anyone help me?<br><br>Thank you very much, <br>--david<br>

------=_Part_199208_5054581.1231079029793--