[OpenAFS] openafs 1.0.1 Solaris 5.7 compile error

Phuoc Ly Phuoc Ly <ply@marvell.com>
Tue, 5 Dec 2000 19:25:36 -0800 (PST)


I got the following error when I try to compile openafs 1.0.1 on Solaris 5.7.
I used bison and flex since I don't have lex and yacc.

Anyone successfully build openafs on solaris?  Please help.

Below is the last part of the 'make SYS_NAME="sun4x_57"' command:

...
cd obj; cd comerr ; make install SYS_NAME=sun4x_57 
DESTDIR=/usr/local/src/openafs-1.0.1/sun4x_57/dest/ 
SRCDIR=/usr/local/src/openafs-1.0.1/sun4x_57/dest/
make[3]: Entering directory `/usr/local/src/openafs-1.0.1/sun4x_57/obj/comerr'
/opt/SUNWspro/bin/cc -c -O -I/usr/local/src/openafs-1.0.1/sun4x_57/dest/include 
-dy -Bdynamic error_msg.c
/opt/SUNWspro/bin/cc -c -O -I/usr/local/src/openafs-1.0.1/sun4x_57/dest/include 
-dy -Bdynamic et_name.c
/opt/SUNWspro/bin/cc -c -O -I/usr/local/src/openafs-1.0.1/sun4x_57/dest/include 
-dy -Bdynamic com_err.c
echo 'char cml_version_number[]="@(#)CML not accessible: No version 
Information";' >AFS_component_version_number.c;
echo 'char* AFSVersion = "afs??"; ' >>AFS_component_version_number.c;
/opt/SUNWspro/bin/cc -c -O -I/usr/local/src/openafs-1.0.1/sun4x_57/dest/include 
-dy -Bdynamic AFS_component_version_number.c
rm -f libcom_err.a
/usr/ccs/bin/ar cruv libcom_err.a error_msg.o et_name.o com_err.o 
AFS_component_version_number.o
a - error_msg.o
a - et_name.o
a - com_err.o
a - AFS_component_version_number.o
ar: writing libcom_err.a
/bin/true libcom_err.a
/opt/SUNWspro/bin/cc -c -O -I/usr/local/src/openafs-1.0.1/sun4x_57/dest/include 
-dy -Bdynamic compile_et.c
yacc  error_table.y 
mv -f y.tab.c error_table.c
rm -f et_lex.lex.c
lex -t et_lex.lex.l >et_lex.lex.c
/opt/SUNWspro/bin/cc -c -O -I/usr/local/src/openafs-1.0.1/sun4x_57/dest/include 
-dy -Bdynamic error_table.c
case sun4x_57 in \
*_linux* ) \
/opt/SUNWspro/bin/cc -O -I/usr/local/src/openafs-1.0.1/sun4x_57/dest/include -dy 
-Bdynamic -o compile_et compile_et.o error_table.o 
/usr/local/src/openafs-1.0.1/sun4x_57/dest/lib/afs/util.a -lsocket -lnsl -lintl 
-ldl;; \
* ) \
/opt/SUNWspro/bin/cc -O -I/usr/local/src/openafs-1.0.1/sun4x_57/dest/include -dy 
-Bdynamic -o compile_et compile_et.o error_table.o 
/usr/local/src/openafs-1.0.1/sun4x_57/dest/lib/afs/util.a -lsocket -lnsl -lintl 
-ldl -ll;; \
esac
Undefined			first referenced
 symbol  			    in file
yylineno                            compile_et.o
ld: fatal: Symbol referencing errors. No output written to compile_et
make[3]: *** [compile_et] Error 1
make[3]: Leaving directory `/usr/local/src/openafs-1.0.1/sun4x_57/obj/comerr'
make[2]: *** [comerr] Error 2
make[2]: Leaving directory `/usr/local/src/openafs-1.0.1'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/usr/local/src/openafs-1.0.1'
make: *** [all] Error 2