Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help compiling rdist on Solaris 2.6

Status
Not open for further replies.

CFord

Technical User
May 17, 2002
9
0
0
ZA
Hello, I have managed to setup my Solaris 2.6 box to compile GNU software. I have compiled Make, Autoconf, Bison, M4, Squid, squidGuard with no problems however I have problems compiling rdist ( and am not sure where to fix this problem. I cannot use the rdist that comes with Solaris due to the work that I am doing at my company with Linux servers using rdist that I cannot change. Doing all as root.

Here is some software versions I am using:
GNU Make 3.80
bison (GNU Bison) 1.875
GCC 3.2.3

Some environment variables:
CC=/usr/local/bin/gcc
LD_LIBRARY_PATH=/opt/SUNWspro/SC5.0/lib:/opt/SUNWspro/lib:/usr/local/lib:/usr/lib:/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.2.3
PATH=/usr/local/bin:/usr/ccd/bin:/usr/bin:/usr/sbin

Here is the output I get:
Making "all" in "src"
make[1]: Entering directory `/data/prxmon/rdist-6.1.5/src'
make[2]: Entering directory `/data/prxmon/rdist-6.1.5/src'
bison -y -d gram.y
gram.y:93.22: warning: stray `,' treated as white space
gram.y:94.20: warning: stray `,' treated as white space
gram.y:95.23: warning: stray `,' treated as white space
gram.y:95.31: warning: stray `,' treated as white space
gram.y:95.39: warning: stray `,' treated as white space
gram.y:95.48: warning: stray `,' treated as white space
gram.y:95.57: warning: stray `,' treated as white space
gram.y:95.69: warning: stray `,' treated as white space
gram.y:95.78: warning: stray `,' treated as white space
gram.y:96.23: warning: stray `,' treated as white space
gram.y:96.30: warning: stray `,' treated as white space
gram.y:104.37: syntax error, unexpected "="
gram.y:108.54-55: invalid $ value
gram.y:108.54-55: $4 of `command' has no declared type
gram.y:111.40-41: invalid $ value
gram.y:111.40-41: $5 of `command' has no declared type
gram.y:111.44-45: invalid $ value
gram.y:111.44-45: $6 of `command' has no declared type
gram.y:114.54-55: invalid $ value
gram.y:114.54-55: $4 of `command' has no declared type
gram.y:117.40-41: invalid $ value
gram.y:117.40-41: $5 of `command' has no declared type
gram.y:117.44-45: invalid $ value
gram.y:117.44-45: $6 of `command' has no declared type
gram.y:136.11-14: warning: type clash on default action: <namel> !=
<string>
gram.y:136.16: syntax error, unexpected &quot;=&quot;
gram.y:140.30-31: invalid $ value
gram.y:140.30-31: $2 of `nlist' has no declared type
gram.y:147.30: syntax error, unexpected &quot;=&quot;
gram.y:161.31: syntax error, unexpected &quot;=&quot;
gram.y:172.52: syntax error, unexpected &quot;=&quot;
gram.y:222.8: warning: empty rule for typed nonterminal, and no action
gram.y:222.30: syntax error, unexpected &quot;=&quot;
gram.y:226.31-32: invalid $ value
gram.y:226.31-32: $2 of `options' has no declared type
gram.y:230.13: warning: empty rule for typed nonterminal, and no action
gram.y:230.30: syntax error, unexpected &quot;=&quot;
gram.y:234.30-31: invalid $ value
gram.y:234.30-31: $1 of `opt_namelist' has no declared type
make[2]: *** [gram.c] Error 1
make[2]: Leaving directory `/data/prxmon/rdist-6.1.5/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/data/prxmon/rdist-6.1.5/src'
Making &quot;all&quot; in &quot;config&quot;
make[1]: Entering directory `/data/prxmon/rdist-6.1.5/config'
make[2]: Entering directory `/data/prxmon/rdist-6.1.5/config'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/data/prxmon/rdist-6.1.5/config'
make[1]: Leaving directory `/data/prxmon/rdist-6.1.5/config'
Making &quot;all&quot; in &quot;doc&quot;
make[1]: Entering directory `/data/prxmon/rdist-6.1.5/doc'
make[2]: Entering directory `/data/prxmon/rdist-6.1.5/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/data/prxmon/rdist-6.1.5/doc'
make[1]: Leaving directory `/data/prxmon/rdist-6.1.5/doc'
Making &quot;all&quot; in &quot;support&quot;
make[1]: Entering directory `/data/prxmon/rdist-6.1.5/support'
make[2]: Entering directory `/data/prxmon/rdist-6.1.5/support'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/data/prxmon/rdist-6.1.5/support'
make[1]: Leaving directory `/data/prxmon/rdist-6.1.5/support'
Making &quot;all&quot; in &quot;mf&quot;
make[1]: Entering directory `/data/prxmon/rdist-6.1.5/mf'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/data/prxmon/rdist-6.1.5/mf'
 
It appears that the build script for the rdist version you are using isn't POSIX compliant and will fail with bison 1.5 or later. You will need to download byacc instead - change references from bison to byacc in the control file. Or fix the gram.y file - a diff of similar changes required to achieve this is given here..


Mainly replacing commas with spaces in variable declarations and removing '=' before braces '{' in rules.

See also
 
That worked, thanks very much!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top