[OpenAFS] Request for Assistance with OpenAFS - AIX v6.1 build attempt fails with .yylex undefined symbol

Derrick Brashear shadow@gmail.com
Sun, 14 Mar 2010 19:46:03 -0500


On Fri, Mar 12, 2010 at 11:17 AM, Kieffer, Catherine
<Catherine.Kieffer@spirent.com> wrote:
> I am running AIX v6.1TL0 SP2,=A0 I am using the AIX XL C/C++ v10.1
>
> I have tried a number of things as well as googling to try to figure out =
how
> to get rid of the error but no success.
> When I tried to install the provided binaries for AIX a couple of months =
ago
> for v1.4.8, 1.4.10, and 1.4.11, they failed to run.
>
> I did try adding the '-ll -bnoquiet' options for the compile command whic=
h
> eliminated the first two undefined items, but the .yylex error still
> occurred.
>
> Any assistance in what I need to do to resolve the errors would be
> appreciated.

1) 1.4.12 is out
2) bug reports on those binaries if they do not work would be
appreciated. it built to completion for me.

> Here is output from the make command with the errors.
>

> =A0=A0=A0=A0=A0=A0=A0 cd src && cd comerr && make all
> =A0=A0=A0=A0=A0=A0=A0 echo 'char cml_version_number[]=3D"@(#) OpenAFS 1.4=
.11 built ' `date
> +"%Y-%m-%d"` '";' >AFS_component_version_number.c
>
> =A0=A0=A0=A0=A0=A0=A0 echo 'char* AFSVersion =3D "openafs 1.4.11"; '
>>>AFS_component_version_number.c
> =A0=A0=A0=A0=A0=A0=A0 cc=A0 -O -I/home/ckieffer/tmpbuild/openafs-1.4.11/s=
rc/config -I. -I.
> -I/home/ckieffer/tmpbuild/openafs-1.4.11/include
> -I/home/ckieffer/tmpbuild/openafs-1.4.11/include/afs
> -I/home/ckieffer/tmpbuild/openafs-1.4.11/include/rx
> -I/home/ckieffer/tmpbuild/openafs-1.4.11
> -I/home/ckieffer/tmpbuild/openafs-1.4.11/src
> -I/home/ckieffer/tmpbuild/openafs-1.4.11/src -K -D_NONSTD_TYPES -D_MBI=3D=
void
> -c compile_et.c
>
> =A0=A0=A0=A0=A0=A0=A0 case rs_aix61 in=A0 *_linux* | *_umlinux* )=A0 cc=
=A0 -O
> -I/home/ckieffer/tmpbuild/openafs-1.4.11/src/config -I. -I.
> -I/home/ckieffer/tmpbuild/openafs-1.4.11/include
> -I/home/ckieffer/tmpbuild/openafs-1.4.11/include/afs
> -I/home/ckieffer/tmpbuild/openafs-1.4.11/include/rx
> -I/home/ckieffer/tmpbuild/openafs-1.4.11
> -I/home/ckieffer/tmpbuild/openafs-1.4.11/src
> -I/home/ckieffer/tmpbuild/openafs-1.4.11/src -K -D_NONSTD_TYPES -D_MBI=3D=
void
> -o compile_et compile_et.o error_table.o
> -L/home/ckieffer/tmpbuild/openafs-1.4.11/lib -lafsutil;;=A0 * )=A0 cc=A0 =
-O
> -I/home/ckieffer/tmpbuild/openafs-1.4.11/src/config -I. -I.
> -I/home/ckieffer/tmpbuild/openafs-1.4.11/include
> -I/home/ckieffer/tmpbuild/openafs-1.4.11/include/afs
> -I/home/ckieffer/tmpbuild/openafs-1.4.11/include/rx
> -I/home/ckieffer/tmpbuild/openafs-1.4.11
> -I/home/ckieffer/tmpbuild/openafs-1.4.11/src
> -I/home/ckieffer/tmpbuild/openafs-1.4.11/src -K -D_NONSTD_TYPES -D_MBI=3D=
void
> -o compile_et compile_et.o error_table.o
> -L/home/ckieffer/tmpbuild/openafs-1.4.11/lib -lafsutil -ll;;=A0 esac
>
> ld: 0711-317 ERROR: Undefined symbol: yyin
> ld: 0711-317 ERROR: Undefined symbol: yyout
> ld: 0711-317 ERROR: Undefined symbol: .yylex
> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
> information.
> make: 1254-004 The error code from the last command is 8.

somehow you have an object file for error_table.o already? it's not
shown as being compiled above, nor the yacc command that generated the
source file.

yylex comes from yacc.