Ok, I got a bit further with my trials to compile on a PowerPC Blade with SLES9. Until now I had a problem with an undeclared variable in compile_et.c . My workaround for it looks like this
--- src/comerr/compile_et.c 2005-02-01 18:53:41.082020292 +0100
+++ src/comerr/compile_et.c 2005-02-01 18:53:18.668560000 +0100
@@ -50,6 +50,8 @@
extern FILE *yyout;
#ifdef AFS_AIX51_ENV
int yylineno = 0;
+#elif AFS_PPC_LINUX26_ENV
+int yylineno = 0;
#else
extern int yylineno;
#endif
Then I ran into a problem with undeclared variables in rx_pthread.c It
took me a while to realize, that the AFS_PTHREAD_ENV variable was not set
and I set it in the parameter file.
--- src/config/param.ppc_linux26.h 2005-02-01 18:58:15.404555506
+0100
+++ src/config/param.ppc_linux26.h 2005-02-01 18:11:18.174763000
+0100
@@ -20,6 +20,7 @@
#define AFS_PPC_LINUX24_ENV 1
#define AFS_PPC_LINUX26_ENV 1
#define AFS_NONFSTRANS 1
+#define AFS_PTHREAD_ENV 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
#define AFS_SYSCALL 137
Why it works on all the other architectures without this variable set in
the paramters - no idea...
Now I'm stuck in the lwp section. It doesn't like a line in lwp.c that
looks completely valid to me, so maybe someone has an idea.
The long list of other errors is probably triggered by the very first one.
The line in question is the definition of the head variable in the QUEUE
structure
struct QUEUE {
PROCESS head;
int count;
} runnable[MAX_PRIORITIES], blocked, qwaiting;
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
cd src && cd lwp && make depinstall
make[3]: Entering directory `/tmp/openafs-1.3.78/src/lwp'
make[3]: Nothing to be done for `depinstall'.
make[3]: Leaving directory `/tmp/openafs-1.3.78/src/lwp'
cd src && cd lwp && make all
make[3]: Entering directory `/tmp/openafs-1.3.78/src/lwp'
case "ppc_linux26" in \
rs_aix*) \
cc -O -I. -I. -I/tmp/openafs-1.3.78/src/config
-I/tmp/openafs-1.3.78/include -c ./lwp.c;; \
*) \
cc -O -O -I/tmp/openafs-1.3.78/src/config -I. -I.
-I/tmp/openafs-1.3.78/include -I/tmp/openafs-1.3.78/include/afs
-I/tmp/openafs-1.3.78/include/rx -I/tmp/openafs-1.3.78
-I/tmp/openafs-1.3.78/src -I/tmp/openafs-1.3.78/src -c ./lwp.c;; \
esac
"/usr/include/bits/string2.h", line 1101.17: 1506-1300 (W) The subscript
-1 is less than zero. The subscript of an array should be greater than or
equal to zero.
"./lwp.c", line 122.5: 1506-046 (S) Syntax error.
"./lwp.c", line 124.12: 1506-045 (S) Undeclared identifier
LWP_MAX_PRIORITY.
"./lwp.c", line 124.12: 1506-195 (S) Integral constant expression with a
value greater than zero is required.
"./lwp.c", line 137.26: 1506-221 (S) Initializer must be a valid constant
expression.
"./lwp.c", line 149.23: 1506-275 (S) Unexpected text p encountered.
"./lwp.c", line 149.15: 1506-095 (S) Unexpected parameter PROCESS.
"./lwp.c", line 154.12: 1506-022 (S) "head" is not a member of "struct
QUEUE".
"./lwp.c", line 157.9: 1506-122 (S) Expecting pointer to struct or union.
"./lwp.c", line 157.25: 1506-122 (S) Expecting pointer to struct or union.
"./lwp.c", line 158.9: 1506-122 (S) Expecting pointer to struct or union.
"./lwp.c", line 158.25: 1506-122 (S) Expecting pointer to struct or union.
"./lwp.c", line 161.12: 1506-022 (S) "head" is not a member of "struct
QUEUE".
"./lwp.c", line 162.12: 1506-022 (S) "head" is not a member of "struct
QUEUE".
"./lwp.c", line 162.19: 1506-122 (S) Expecting pointer to struct or union.
"./lwp.c", line 164.5: 1506-122 (S) Expecting pointer to struct or union.
"./lwp.c", line 164.15: 1506-122 (S) Expecting pointer to struct or union.
"./lwp.c", line 170.23: 1506-275 (S) Unexpected text p encountered.
"./lwp.c", line 170.15: 1506-095 (S) Unexpected parameter PROCESS.
"./lwp.c", line 173.12: 1506-022 (S) "head" is not a member of "struct
QUEUE".
"./lwp.c", line 174.12: 1506-022 (S) "head" is not a member of "struct
QUEUE".
"./lwp.c", line 175.9: 1506-122 (S) Expecting pointer to struct or union.
"./lwp.c", line 175.19: 1506-122 (S) Expecting pointer to struct or union.
"./lwp.c", line 177.9: 1506-122 (S) Expecting pointer to struct or union.
"./lwp.c", line 177.22: 1506-022 (S) "head" is not a member of "struct
QUEUE".
"./lwp.c", line 178.12: 1506-022 (S) "head" is not a member of "struct
QUEUE".
"./lwp.c", line 179.12: 1506-022 (S) "head" is not a member of "struct
QUEUE".
"./lwp.c", line 180.9: 1506-122 (S) Expecting pointer to struct or union.
"./lwp.c", line 180.22: 1506-022 (S) "head" is not a member of "struct
QUEUE".
"./lwp.c", line 188.6: 1506-276 (S) Syntax error: possible missing '{'?
"./lwp.c", line 243.22: 1506-275 (S) Unexpected text tp encountered.
"./lwp.c", line 244.6: 1506-045 (S) Undeclared identifier tp.
"./lwp.c", line 244.11: 1506-045 (S) Undeclared identifier lwp_cpptr.
"./lwp.c", line 247.12: 1506-045 (S) Undeclared identifier LWP_SUCCESS.
"./lwp.c", line 252.23: 1506-275 (S) Unexpected text pid encountered.
"./lwp.c", line 252.15: 1506-095 (S) Unexpected parameter PROCESS.
"./lwp.c", line 254.9: 1506-122 (S) Expecting pointer to struct or union.
"./lwp.c", line 255.9: 1506-122 (S) Expecting pointer to struct or union.
"./lwp.c", line 256.40: 1506-122 (S) Expecting pointer to struct or union.
"./lwp.c", line 257.16: 1506-045 (S) Undeclared identifier LWP_SUCCESS.
"./lwp.c", line 259.16: 1506-045 (S) Undeclared identifier LWP_ENOWAIT.
"./lwp.c", line 274.31: 1506-046 (S) Syntax error.
"./lwp.c", line 276.5: 1506-045 (S) Undeclared identifier PROCESS.
"./lwp.c", line 300.9: 1506-045 (S) Undeclared identifier temp.
"./lwp.c", line 300.26: 1506-277 (S) Syntax error: possible missing ';' or
','?
"./lwp.c", line 302.13: 1506-045 (S) Undeclared identifier lwp_cpptr.
"./lwp.c", line 303.20: 1506-045 (S) Undeclared identifier LWP_ENOMEM.
"./lwp.c", line 359.20: 1506-045 (S) Undeclared identifier LWP_EBADPRI.
"./lwp.c", line 364.9: 1506-045 (S) Undeclared identifier temp2.
"./lwp.c", line 401.10: 1506-045 (S) Undeclared identifier pid.
"./lwp.c", line 404.16: 1506-045 (S) Undeclared identifier LWP_EINIT.
"./lwp.c", line 473.28: 1506-277 (S) Syntax error: possible missing ')' or
','?
"./lwp.c", line 477.10: 1506-045 (S) Undeclared identifier pid.
"./lwp.c", line 477.16: 1506-045 (S) Undeclared identifier lwp_cpptr.
"./lwp.c", line 478.16: 1506-045 (S) Undeclared identifier LWP_SUCCESS.
"./lwp.c", line 480.16: 1506-045 (S) Undeclared identifier LWP_EINIT.
"./lwp.c", line 483.1: 1506-166 (S) Definition of function PROCESS
requires parentheses.
"./lwp.c", line 484.1: 1506-276 (S) Syntax error: possible missing '{'?
"./lwp.c", line 488.16: 1506-045 (S) Undeclared identifier lwp_cpptr.
"./lwp.c", line 490.26: 1506-275 (S) Unexpected text integer constant
encountered.
"./lwp.c", line 490.16: 1506-045 (S) Undeclared identifier PROCESS.
"./lwp.c", line 496.28: 1506-275 (S) Unexpected text pid encountered.
"./lwp.c", line 498.13: 1506-275 (S) Unexpected text temp encountered.
"./lwp.c", line 502.13: 1506-045 (S) Undeclared identifier lwp_cpptr.
"./lwp.c", line 502.26: 1506-045 (S) Undeclared identifier pid.
"./lwp.c", line 508.13: 1506-045 (S) Undeclared identifier temp.
"./lwp.c", line 528.27: 1506-285 (S) The indirection operator cannot be
applied to a pointer to an incomplete struct or union.
"./lwp.c", line 529.47: 1506-285 (S) The indirection operator cannot be
applied to a pointer to an incomplete struct or union.
"./lwp.c", line 533.16: 1506-045 (S) Undeclared identifier LWP_SUCCESS.
"./lwp.c", line 535.16: 1506-045 (S) Undeclared identifier LWP_EINIT.
"./lwp.c", line 543.9: 1506-045 (S) Undeclared identifier lwp_cpptr.
"./lwp.c", line 544.16: 1506-045 (S) Undeclared identifier LWP_SUCCESS.
"./lwp.c", line 546.16: 1506-045 (S) Undeclared identifier LWP_EINIT.
"./lwp.c", line 574.32: 1506-275 (S) Unexpected text pid encountered.
"./lwp.c", line 574.37: 1506-276 (S) Syntax error: possible missing
identifier?
"./lwp.c", line 578.10: 1506-018 (S) Operand of indirection operator must
be a pointer expression.
"./lwp.c", line 578.21: 1506-045 (S) Undeclared identifier pid.
"./lwp.c", line 581.16: 1506-045 (S) Undeclared identifier LWP_EINIT.
"./lwp.c", line 585.44: 1506-046 (S) Syntax error.
"./lwp.c", line 587.5: 1506-045 (S) Undeclared identifier PROCESS.
"./lwp.c", line 588.12: 1506-007 (S) "struct lwp_pcb" is undefined.
"./lwp.c", line 594.16: 1506-045 (S) Undeclared identifier LWP_SUCCESS.
"./lwp.c", line 600.16: 1506-045 (S) Undeclared identifier LWP_EBADPRI.
"./lwp.c", line 605.13: 1506-022 (S) "head" is not a member of "struct
QUEUE".
"./lwp.c", line 607.14: 1506-022 (S) "head" is not a member of "struct
QUEUE".
"./lwp.c", line 609.41: 1506-043 (S) The operand of the sizeof operator is
not valid.
"./lwp.c", line 610.5: 1506-045 (S) Undeclared identifier temp.
"./lwp.c", line 610.22: 1506-277 (S) Syntax error: possible missing ';' or
','?
"./lwp.c", line 613.5: 1506-285 (S) The indirection operator cannot be
applied to a pointer to an incomplete struct or union.
"./lwp.c", line 614.5: 1506-285 (S) The indirection operator cannot be
applied to a pointer to an incomplete struct or union.
"./lwp.c", line 615.5: 1506-285 (S) The indirection operator cannot be
applied to a pointer to an incomplete struct or union.
"./lwp.c", line 620.5: 1506-285 (S) The indirection operator cannot be
applied to a pointer to an incomplete struct or union.
"./lwp.c", line 621.5: 1506-045 (S) Undeclared identifier lwp_cpptr.
"./lwp.c", line 622.6: 1506-045 (S) Undeclared identifier pid.
"./lwp.c", line 628.28: 1506-045 (S) Undeclared identifier
AFS_LWP_MINSTACKSIZE.
"./lwp.c", line 645.13: 1506-045 (S) Undeclared identifier lwp_cpptr.
"./lwp.c", line 648.16: 1506-045 (S) Undeclared identifier LWP_EINIT.
"./lwp.c", line 658.16: 1506-045 (S) Undeclared identifier LWP_EINIT.
"./lwp.c", line 659.22: 1506-285 (S) The indirection operator cannot be
applied to a pointer to an incomplete struct or union.
"./lwp.c", line 659.9: 1506-045 (S) Undeclared identifier lwp_cpptr.
"./lwp.c", line 662.22: 1506-275 (S) Unexpected text cur encountered.
"./lwp.c", line 662.22: 1506-045 (S) Undeclared identifier cur.
make[3]: *** [lwp.o] Error 1
make[3]: Leaving directory `/tmp/openafs-1.3.78/src/lwp'
make[2]: *** [lwp] Error 2
make[2]: Leaving directory `/tmp/openafs-1.3.78'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/tmp/openafs-1.3.78'
make: *** [all] Error 2
smime.p7s
Description: S/MIME Cryptographic Signature
