[OpenAFS-port-freebsd] grammar.y and Bison

Richard Jones <[email protected]>
Newsgroups gmane.comp.file-systems.openafs.freebsd
Message-ID <[email protected]>
Hi,

I'm getting the following error when running gmake:
(I'm not a developer, so don't really understand what the error means)

[...]

gmake[3]: Entering directory `/usr/local/src/openafs-1.2.8/src/uss'
echo 'char cml_version_number[]="@(#) OpenAFS 1.2.8 built ' `date +"%Y-%m-%d"` '";' >AFS_component_version_number.c
echo 'char* AFSVersion = "openafs 1.2.8"; ' >>AFS_component_version_number.c
cc -c  -I/usr/include -I/usr/local/src/openafs-1.2.8/src/config -I/usr/local/src/openafs-1.2.8/include -I. -O2 -pipe uss.c
uss.c: In function `main':
uss.c:2013: warning: passing arg 1 of `cmd_SetBeforeProc' from incompatible pointer type
cc -c  -I/usr/include -I/usr/local/src/openafs-1.2.8/src/config -I/usr/local/src/openafs-1.2.8/include -I. -O2 -pipe uss_procs.c
uss_procs.c: In function `uss_procs_CpFile':
uss_procs.c:236: warning: assignment makes pointer from integer without a cast
cc -c  -I/usr/include -I/usr/local/src/openafs-1.2.8/src/config -I/usr/local/src/openafs-1.2.8/include -I. -O2 -pipe uss_common.c
cc -c  -I/usr/include -I/usr/local/src/openafs-1.2.8/src/config -I/usr/local/src/openafs-1.2.8/include -I. -O2 -pipe uss_vol.c
cc -c  -I/usr/include -I/usr/local/src/openafs-1.2.8/src/config -I/usr/local/src/openafs-1.2.8/include -I. -O2 -pipe uss_acl.c
cc -c  -I/usr/include -I/usr/local/src/openafs-1.2.8/src/config -I/usr/local/src/openafs-1.2.8/include -I. -O2 -pipe uss_ptserver.c
cc -c  -I/usr/include -I/usr/local/src/openafs-1.2.8/src/config -I/usr/local/src/openafs-1.2.8/include -I. -O2 -pipe uss_kauth.c
cc -c  -I/usr/include -I/usr/local/src/openafs-1.2.8/src/config -I/usr/local/src/openafs-1.2.8/include -I. -O2 -pipe uss_fs.c
flex -l lex.c
bison -y -d grammar.y
grammar.y:53.2: parse error, unexpected "|"
grammar.y:59.2: parse error, unexpected "|"
grammar.y:65.2: parse error, unexpected "|"
grammar.y:68.2: parse error, unexpected "|"
grammar.y:73.2: parse error, unexpected "|"
grammar.y:77.2: parse error, unexpected "|"
grammar.y:85.4-56: invalid $ value
grammar.y:85.4-56: $6 of `entry' has no declared type
grammar.y:85.4-60: invalid $ value
grammar.y:85.4-60: $7 of `entry' has no declared type
grammar.y:85.4-64: invalid $ value
grammar.y:85.4-64: $8 of `entry' has no declared type
grammar.y:86.2: parse error, unexpected "|"
grammar.y:89.2: parse error, unexpected "|"
grammar.y:95.4-58: invalid $ value
grammar.y:95.4-58: $6 of `entry' has no declared type
grammar.y:96.2: parse error, unexpected "|"
grammar.y:104.4-56: invalid $ value
grammar.y:104.4-56: $6 of `entry' has no declared type
grammar.y:104.4-60: invalid $ value
grammar.y:104.4-60: $7 of `entry' has no declared type
grammar.y:104.4-64: invalid $ value
grammar.y:104.4-64: $8 of `entry' has no declared type
grammar.y:105.2: parse error, unexpected "|"
grammar.y:107.2: parse error, unexpected "|"
gmake[3]: *** [y.tab.c] Error 1
gmake[3]: Leaving directory `/usr/local/src/openafs-1.2.8/src/uss'
gmake[2]: *** [uss] Error 2
gmake[2]: Leaving directory `/usr/local/src/openafs-1.2.8'
gmake[1]: *** [build] Error 2
gmake[1]: Leaving directory `/usr/local/src/openafs-1.2.8'
gmake: *** [all] Error 2

I'm running 4.x Stable (uname -a lists 4.8 RC2), bison-1.75 and
gmake-3.80, both from the ports tree.

I've only managed to find two references to this problem, one on
the openafs-info list and one with Google, neither give a solution
appear to have follow-ups.

Can anyone help, or recommend a patch or working source/config/setup?
Let me know off-list if you need the full gmake or ./configure output.

Regards,

Richard Jones
-- 
Richard Jones
http://www.jonze.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.