[OpenAFS-devel] Re: openafs-1.3.64 build fails on SuSE 9.1

Tobin Davis tdavis@dsl-only.net
Sun, 23 May 2004 12:09:59 -0700


I ran into the same problem on Mandrake 10.0.  My "simple" fix is to
patch the file as follows:

diff -Naurb openafs-1.3.64/src/comerr/compile_et.c
openafs-1.3.64.new/src/comerr/compile_et.c
--- openafs-1.3.64/src/comerr/compile_et.c	2003-11-29 14:08:10.000000000
-0800
+++ openafs-1.3.64.new/src/comerr/compile_et.c	2004-05-22
15:13:32.000000000 -0700
@@ -51,7 +51,7 @@
 #ifdef AFS_AIX51_ENV
 int yylineno = 0;
 #else
-extern int yylineno;
+int yylineno;
 #endif
 
 char *


This is probably not a good idea, but it worked.  Until you get to the
pam module.  Then you get this mass of errors:

/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../crt1.o(.text+0x18): In function `_start':
../sysdeps/i386/elf/start.S:98: undefined reference to `main'
afs_setcred.o(.text+0x4a4): In function `pam_sm_setcred':
: undefined reference to `pam_get_item'
afs_setcred.o(.text+0x4e3): In function `pam_sm_setcred':
: undefined reference to `pam_get_user'
afs_setcred.o(.text+0x5f7): In function `pam_sm_setcred':
: undefined reference to `pam_get_data'
afs_setcred.o(.text+0xa3c): In function `pam_sm_setcred':
: undefined reference to `pam_putenv'
afs_auth.o(.text+0x53f): In function `pam_sm_authenticate':
: undefined reference to `pam_get_item'
afs_auth.o(.text+0x57b): In function `pam_sm_authenticate':
: undefined reference to `pam_get_user'
afs_auth.o(.text+0x629): In function `pam_sm_authenticate':
: undefined reference to `pam_get_item'
afs_auth.o(.text+0xd00): In function `pam_sm_authenticate':
: undefined reference to `pam_set_item'
afs_auth.o(.text+0xd94): In function `pam_sm_authenticate':
: undefined reference to `pam_set_data'
afs_password.o(.text+0x23f): In function `pam_sm_chauthtok':
: undefined reference to `pam_get_item'
afs_password.o(.text+0x27b): In function `pam_sm_chauthtok':
: undefined reference to `pam_get_user'
afs_password.o(.text+0x327): In function `pam_sm_chauthtok':
: undefined reference to `pam_get_item'
afs_password.o(.text+0x5a3): In function `pam_sm_chauthtok':
: undefined reference to `pam_set_item'
afs_password.o(.text+0x5b9): In function `pam_sm_chauthtok':
: undefined reference to `pam_set_item'
afs_password.o(.text+0xa14): In function `pam_sm_chauthtok':
: undefined reference to `pam_set_item'
collect2: ld returned 1 exit status
make: *** [pam_afs.so.1] Error 1


I stopped at this point and headed back to my wood shop to make some
sawdust.  I'll continue mucking with it tomorrow.

Tobin