I'm adding yet another architecture to the pile of problems that I have 
with OpenAFS compiles.
(Not that I want to, but I have to.)

Following situation: SLES 9, PPC architecture, OpenAFS 1.3.77, no 
additional patches.

If I compile I get problems with compile_et.c:
cc  -O -I/homes/rpmbuild/SLES/BUILD/openafs-1.3.77/src/config -I. -I. 
-I/homes/r
pmbuild/SLES/BUILD/openafs-1.3.77/include 
-I/homes/rpmbuild/SLES/BUILD/openafs-1
.3.77/include/afs -I/homes/rpmbuild/SLES/BUILD/openafs-1.3.77/include/rx 
-I/home
s/rpmbuild/SLES/BUILD/openafs-1.3.77 
-I/homes/rpmbuild/SLES/BUILD/openafs-1.3.77
/src -I/homes/rpmbuild/SLES/BUILD/openafs-1.3.77/src  -O -o compile_et 
compile_e
t.o error_table.o -L/homes/rpmbuild/SLES/BUILD/openafs-1.3.77/lib 
-lafsutil -ll;
; \  
esac  
compile_et.o(.text+0xc5e): In function `yyerror':  
: undefined reference to `yylineno'  
compile_et.o(.text+0xc62): In function `yyerror':  
: undefined reference to `yylineno'  
collect2: ld returned 1 exit status  
make[3]: *** [compile_et] Error 1  
rm error_table.c  
make[3]: Leaving directory 
`/homes/rpmbuild/SLES/BUILD/openafs-1.3.77/src/comerr'    
yylineno is an external variable. Where is it supposed to be defined ?

I can get around this problem by defining/declaring yylineno in 
compile_et.c . This brings the compile
a bit further until I get into the libafsrpc folder:
cc  -O -I/homes/rpmbuild/SLES/BUILD/openafs-1.3.77/src/config -I. -I. 
-I/homes/
rpmbuild/SLES/BUILD/openafs-1.3.77/include 
-I/homes/rpmbuild/SLES/BUILD/openafs-
1.3.77/include/afs -I/homes/rpmbuild/SLES/BUILD/openafs-1.3.77/include/rx 
-I/home
s/rpmbuild/SLES/BUILD/openafs-1.3.77 
-I/homes/rpmbuild/SLES/BUILD/openafs-1.3.77
/src -I/homes/rpmbuild/SLES/BUILD/openafs-1.3.77/src -I./../des -I../des 
-I../rx
kad -I./../rxkad -I../fsint -DRXDEBUG  -c  ./../rx/rx_pthread.c
In file included from ../rx/rx_pthread.c:40:
/homes/rpmbuild/SLES/BUILD/openafs-1.3.77/include/rx/rx_pthread.h:69: 
warning:
useless keyword or type name in empty declaration
/homes/rpmbuild/SLES/BUILD/openafs-1.3.77/include/rx/rx_pthread.h:69: 
warning:
empty declaration
../rx/rx_pthread.c: In function `rx_ListenerProc':
../rx/rx_pthread.c:258: error: `rx_thread_id_key' undeclared (first use in 
this function)
../rx/rx_pthread.c:258: error: (Each undeclared identifier is reported 
only once
../rx/rx_pthread.c:258: error: for each function it appears in.)
../rx/rx_pthread.c: In function `rx_ServerProc':
../rx/rx_pthread.c:291: error: `rxi_pthread_hinum' undeclared (first use 
in this function)
../rx/rx_pthread.c:293: error: invalid lvalue in assignment
../rx/rx_pthread.c:299: error: `rx_thread_id_key' undeclared (first use in 
this function)
../rx/rx_pthread.c: In function `rxi_StartListener':
../rx/rx_pthread.c:344: error: `rxi_pthread_hinum' undeclared (first use 
in this function)
../rx/rx_pthread.c: In function `rxi_Listen':
../rx/rx_pthread.c:383: error: `rxi_pthread_hinum' undeclared (first use 
in this function)
make[3]: *** [rx_pthread.o] Error 1
make[3]: Leaving directory 
`/homes/rpmbuild/SLES/BUILD/openafs-1.3.77/src/libafrpc'
What does the "useless keyword" warning try to tell me ? The line in 
question
extern void osirx_AssertMine(afs_kmutex_t * lockaddr, char *msg);
looks perfectly fine to me.
Why is rx_thread_id_key undeclared ? Where should it come from ?

Regards
Frank

----------------------------------------------------------------------
Dr. Frank Bagehorn
Manager Infrastructure Services ZRL IS
IBM Zurich Research Lab.
Saeumerstr. 4
CH-8803 Rueschlikon 
Switzerland
----------------------------------------------------------------------
SMTP: [EMAIL PROTECTED]
Notes: Frank Bagehorn/Zurich/[EMAIL PROTECTED]
phone: ++41 (01) 724 83 23  fax: ++41 (01) 724 89 59

---------z1886_boundary_sign--

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to