[OpenAFS] sysname=ppc_linux26: Problems compiling

Kevin openafs@gnosys.biz
Sat, 20 Nov 2004 13:10:20 -0500


Hi List-

I'm trying to build version 1.3.74 for ppc_linux26 and having some
problems.

In particular, during configure, I get this warning:

Cannot determine sys_call_table status. assuming it isn't exported

This doesn't seem to be a showstopper, but I'm not quite sure exactly
what it means so when the make step fails, I'm not sure if the two error
messages (this warning from configure above and this error message from
make below) are possibly related.

During make, the process fails with:

cc -O -I/root/test/openafs-1.3.74/src/config -I. -I.
-I/root/test/openafs-1.3.74/include
-I/root/test/openafs-1.3.74/include/afs
-I/root/test/openafs-1.3.74/include/rx -I/root/test/openafs-1.3.74
-I/root/test/openafs-1.3.74/src -I/root/test/openafs-1.3.74/src -O -o
compile_et compile_et.o error_table.o -L/root/test/openafs-1.3.74/lib
-lafsutil -ll;;\
esac
compile_et.o(.text+0xcb2): In function `yyerror':
:undefined reference to `yylineno'
compile_et.o(.text+0xcb6): 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 `/root/test/openafs-1.3.74/src/comerr'
make[2]: *** [comerr] Error 2
make[2]: Leaving directory `/root/test/openafs-1.3.74'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/root/test/openafs-1.3.4'
make: *** [all] Error 2

I see yylineno defined near the top of compile_et.c, so I'm not quite
sure why the error is popping up.

My configure line is:
./configure --prefix=/usr --host=powerpc-unknown-linux-gnu
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
--sysconfdir=/etc --localstatedir=/var/lib --enable-transarc-paths
--with-afs-sysname=ppc_linux26

This is on a NewWorld PowerBook Titanium II 667MHz with 7450 altivec cpu
running a new install of Gentoo Linux and kernel version 2.6.9.

I'm trying to install this while writing a new openafs ebuild file for
Gentoo.  The latest in Gentoo portage is for 1.2.11.  I need the 2.6
kernel because all ppc kernel development seems to be here (vice the 2.4
kernel).  I'm basing the new ebuild file on the one in portage for
1.2.11 and that ebuild seems to do one or two things wrong.  It claims
to be replacing the head and tail calls in several files with POSIX
compliant ones, but when it finishes doing so, I have some cases in the
configure file with "tail -n -n 1" which causes problems during the
"checking your OS..." step of configure.  So I commented those
alterations out, removed any patches applied by the existing ebuild, and
am just using the configure options named above.  Just to make sure I
didn't miss anything in the ebuild file, I'm also trying this outside of
an ebuild with just plain old ./configure and make commands.  I get the
same problems there as in the ebuild I'm writing.

I've read several reports of build and run success with kernel version
2.6 on this list, and so I'm giving it a try myself, but I'm not sure
how to get past this error message.

The OpenAFS README for 1.3.74 doesn't mention a ppc_linux26 sysname, but
I do see it present in src/config/afs_sysnames.h.

Any suggestions?

TIA.

-Kevin