I'm trying to compile zlibc on Solaris 9 using gcc v3.4.2 (from
www.sunfreeware.com) and I get the following error.
Any assistance would be great,
Tom
1:srss-sun-02:/var/tmp/zlibc-0.9k$ make
gcc -g -O2 -O4 -Wall -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -Dsparc
-Dsun -Dsolaris2_9 -Dsolaris2 -Dsolaris -I. -I. -fpic -c open.c
gcc -g -O2 -O4 -Wall -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/local/etc\" -Dsparc
-Ds
un -Dsolaris2_9 -Dsolaris2 -Dsolaris -I. -I. -fpic -c altnames.c
altnames.c:7: error: parse error before "char"
altnames.c: In function `_access':
altnames.c:7: error: `var1' undeclared (first use in this function)
altnames.c:7: error: (Each undeclared identifier is reported only once
altnames.c:7: error: for each function it appears in.)
altnames.c:7: error: `var2' undeclared (first use in this function)
altnames.c: At top level:
altnames.c:8: error: parse error before "char"
altnames.c: In function `_chmod':
altnames.c:8: error: `var1' undeclared (first use in this function)
altnames.c:8: error: `var2' undeclared (first use in this function)
altnames.c: At top level:
altnames.c:10: error: parse error before "char"
altnames.c: In function `_stat':
altnames.c:10: error: `var1' undeclared (first use in this function)
altnames.c:10: error: `var2' undeclared (first use in this function)
altnames.c: At top level:
altnames.c:11: error: parse error before "char"
altnames.c: In function `_lstat':
altnames.c:11: error: `var1' undeclared (first use in this function)
altnames.c:11: error: `var2' undeclared (first use in this function)
altnames.c: At top level:
altnames.c:22: error: parse error before "char"
altnames.c: In function `_link':
altnames.c:22: error: `var1' undeclared (first use in this function)
altnames.c:22: error: `var2' undeclared (first use in this function)
altnames.c: At top level:
altnames.c:23: error: parse error before "char"
altnames.c: In function `_symlink':
altnames.c:23: error: `var1' undeclared (first use in this function)
altnames.c:23: error: `var2' undeclared (first use in this function)
altnames.c: At top level:
altnames.c:24: error: parse error before "char"
altnames.c: In function `_rename':
altnames.c:24: error: `var1' undeclared (first use in this function)
altnames.c:24: error: `var2' undeclared (first use in this function)
altnames.c: At top level:
altnames.c:26: error: parse error before "char"
altnames.c: In function `_chown':
altnames.c:26: error: `var1' undeclared (first use in this function)
altnames.c:26: error: `var2' undeclared (first use in this function)
altnames.c:26: error: `var3' undeclared (first use in this function)
altnames.c: At top level:
altnames.c:36: error: parse error before "char"
altnames.c: In function `_open':
altnames.c:36: error: `var1' undeclared (first use in this function)
altnames.c:36: error: `var2' undeclared (first use in this function)
altnames.c:36: error: `var3' undeclared (first use in this function)
altnames.c: At top level:
altnames.c:37: error: parse error before "char"
altnames.c: In function `_open64':
altnames.c:37: error: `var1' undeclared (first use in this function)
altnames.c:37: error: `var2' undeclared (first use in this function)
altnames.c:37: error: `var3' undeclared (first use in this function)
altnames.c: At top level:
altnames.c:38: error: parse error before "char"
altnames.c: In function `__open':
altnames.c:38: error: `var1' undeclared (first use in this function)
altnames.c:38: error: `var2' undeclared (first use in this function)
altnames.c:38: error: `var3' undeclared (first use in this function)
altnames.c: At top level:
altnames.c:39: error: parse error before "char"
altnames.c: In function `__open64':
altnames.c:39: error: `var1' undeclared (first use in this function)
altnames.c:39: error: `var2' undeclared (first use in this function)
altnames.c:39: error: `var3' undeclared (first use in this function)
altnames.c: At top level:
altnames.c:40: error: parse error before "char"
altnames.c: In function `_unlink':
altnames.c:40: error: `var1' undeclared (first use in this function)
altnames.c: At top level:
altnames.c:42: error: parse error before "char"
altnames.c: In function `_readlink':
altnames.c:42: error: `var1' undeclared (first use in this function)
altnames.c:42: error: `var2' undeclared (first use in this function)
altnames.c:42: error: `var3' undeclared (first use in this function)
altnames.c: At top level:
altnames.c:43: error: parse error before "char"
altnames.c: In function `__readlink':
altnames.c:43: error: `var1' undeclared (first use in this function)
altnames.c:43: error: `var2' undeclared (first use in this function)
altnames.c:43: error: `var3' undeclared (first use in this function)
make: *** [altnames.o] Error 1
1:srss-sun-02:/var/tmp/zlibc-0.9k$
_______________________________________________
zlibc mailing list
zlibc(a)tux.org
http://www.tux.org/mailman/listinfo/zlibc