Error in building "c" code using gcc 2.95.2
Hi,
Trying to build “C” source code using Gcc 2.95.2 and Solaris make for the x86 platform. Got the a following error /usr/local/bin/gcc -c -D_KERNEL -DSUNDDI -I. -Wall -Wstrict-prototypes \ -Wmissing-prototypes hdrcpci2_mini.c In file included from /usr/include/sys/varargs.h:50, from /usr/include/sys/systm.h:58, from /usr/include/sys/conf.h:55, from hdrcpci2_mini.c:68: /usr/include/sys/va_impl.h:168: #error ("Unrecognized compiler protocol for variable argument lists") *** Error code 1 make: Fatal error: Command failed for target `hdrcpci2_mini.o' Is this a gcc compiler problem or due to some missing macros? Thanks in Advance, Mushabbar |
My first thought is - what sort of includes are in /usr/include on a solaris box? Are you compiling for Solaris?
If they are solaris includes (i.e. for a solaris system) they are unlikely to compile painlessly for a glibc x86 system. I have glibc here, and don't have /usr/include/anything/varargs.h or /usr/include/anything/systm.h, according to find. gcc-2.95-2 is very far back. Gnu is up to gcc-4.x (I have 4.4.4, and there is newer) and if your libc is out of sync with your gcc, things barf with weird errors. |
The issue got resolved after I swapped the gcc 2.95.2 compiler in the Makefile to the Schillix installed compiler than it compiled without errors.
Thanks |
All times are GMT -5. The time now is 12:15 AM. |