Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-18-2011, 05:30 AM   #1
LQ Newbie
Registered: Mar 2011
Posts: 8

Rep: Reputation: 0
Error in building "c" code using gcc 2.95.2

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,
Old 04-18-2011, 05:56 AM   #2
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 9,487

Rep: Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991Reputation: 991
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.
Old 04-25-2011, 03:22 AM   #3
LQ Newbie
Registered: Mar 2011
Posts: 8

Original Poster
Rep: Reputation: 0
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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
"bad tty" & "file descriptor error" while building RPM on F13 gosssamer Linux - Software 7 12-28-2010 06:02 PM
"No gecko found"error when building Galeon keika Fedora 10 01-29-2010 03:31 AM
Facing error while running "g++ 3.4.4" code in "g++ 4.3.3" Suranjit Ubuntu 2 10-09-2009 12:22 AM
getting "bool" error while building with AIX4.3 anc vacpp5.0 rajamp AIX 3 02-26-2004 08:41 AM
Synaptic error: "sub-process /usr/bin/dpkg returned an error code (2)" firefly2442 Linux - Software 3 02-04-2004 07:41 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration