Help needed with gcc on Solaris x86 2.4

Help needed with gcc on Solaris x86 2.4

Post by Scott A. Woo » Sun, 11 Jun 1995 04:00:00



Hi all.

I am having some problems installing gcc on my Solaris 2.4 x86
machine.  

I ftp'd the gcc binaries for version 2.4.5 from
wuarchive.wustl.ed in dir /systems/gnu/i486-sun-solaris2.

I installed them in /usr/local and ran just-fixinc.

I then ftp'd gcc-2.6.3 from the /systems/gnu dir from the same site.
I put it in /opt/gnu.

I ran ./configure --build=i486-sun-solaris2.4.  After it made the
Makefile I changed CC= cc to CC= gcc. (because I don't have cc)

When I did a make, here's what happened:

# make
gcc  -DIN_GCC   -g     -I. -I. -I./config \
  -DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/i486-sun-solaris2.4/2.6.3/include\" \
  -DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/g++-include\" \
  -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" \
  -DCROSS_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/i486-sun-solaris2.4/2.6.3/sys-include\" \
  -DTOOL_INCLUDE_DIR=\"/usr/local/i486-sun-solaris2.4/include\" \
  -c `echo ./cccp.c | sed 's,^\./,,'`
In file included from cccp.c:75:
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:226: parse error before `#'
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h: In function `stat':
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:229: declaration for parameter `___buf' but no such parameter
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:228: declaration for parameter `___path' but no such parameter
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:231: argument `___buf' doesn't match prototype
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:176: prototype declaration
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:231: argument `___path' doesn't match prototype
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:176: prototype declaration
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h: At top level:
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:238: parse error before `#'
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h: In function `lstat':
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:241: declaration for parameter `___buf' but no such parameter
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:240: declaration for parameter `___path' but no such parameter
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:243: argument `___buf' doesn't match prototype
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:179: prototype declaration
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:243: argument `___path' doesn't match prototype
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:179: prototype declaration
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h: At top level:
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:250: parse error before `#'
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h: In function `fstat':
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:253: declaration for parameter `___buf' but no such parameter
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:252: declaration for parameter `___fd' but no such parameter
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:255: argument `___buf' doesn't match prototype
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:175: prototype declaration
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:255: argument `___fd' doesn't match prototype
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:175: prototype declaration
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h: At top level:
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:263: conflicting types for `mknod'
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:180: previous declaration of `mknod'
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h: In function `mknod':
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:263: parm types given both in parmlist and separately
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:267: `_mode' undeclared (first use this function)
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:267: (Each undeclared identifier is reported only once
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:267: for each function it appears in.)
/usr/local/lib/gcc-lib/i486-sun-solaris2/2.4.5/include/sys/stat.h:267: `_dev' undeclared (first use this function)
*** Error code 1
make: Fatal error: Command failed for target `cccp.o'
#

Any and all suggestions, replies, and help would be GREATLY
appreciated!

...saw
--
--
Scott A. Woods

    WWW:  http://www.apk.net/users