[SunHELP] Installation of gcc on Solaris 2.6

Damian Walker sunhelp at sunhelp.org
Mon Aug 27 11:53:47 CDT 2001


Hello everyone,

I've installed the following packages on my Sparcserver 20 running
Solaris 2.6:

	binutils-2.11.2-sol26-sparc-local
	gcc-3.0-sol26-sparc-local

Installation went successfully and 'gcc -v' gives sensible results.  But
when I tried to compile the following program:

---8<---
#include <stdio.h>

int main(void) {
    puts ("Hello world!");
    return 0;
}
---8<---

I got the following result:

---8<---
In file included from hello.c:1:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0/include/stdio.h:85: parse 
error before "fpos_t"
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0/include/stdio.h:295: parse 
error before "fpos_t"
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0/include/stdio.h:297: parse 
error before '*' token
---8<---

I tried a temporary kludge fix for this by redefining the type as
'long', and then recompilation got me the following response:

---8<---
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/3.0/../../../../sparc-sun-solaris2.6/bin/ld: cannot 
open values-Xa.o: No such file or directory
collect2: ld returned 1 exit status
---8<---

All this suggests that there is something pretty fundamentally wrong
with the installation, perhaps an extra package that I need to download
and install.  Does anyone have any clues as to what I should try next?

-- 
Damian - http://homepages.poptel.org.uk/dwalker/ - UPDATED 18/8/2001




More information about the SunHELP mailing list