LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

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

Rep: Reputation: 0
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
 
Old 04-18-2011, 04:56 AM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,201

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
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, 02:22 AM   #3
Mushabbar
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.

Thanks
 
  


Reply


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 05:02 PM
"No gecko found"error when building Galeon keika Fedora 10 01-29-2010 02:31 AM
Facing error while running "g++ 3.4.4" code in "g++ 4.3.3" Suranjit Ubuntu 2 10-08-2009 11:22 PM
getting "bool" error while building with AIX4.3 anc vacpp5.0 rajamp AIX 3 02-26-2004 07:41 AM
Synaptic error: "sub-process /usr/bin/dpkg returned an error code (2)" firefly2442 Linux - Software 3 02-04-2004 06:41 PM


All times are GMT -5. The time now is 01:31 AM.

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