gcc compilation problem in redhatLinux8.0
- To: redhat-devel-list@xxxxxxxxxx
- Subject: gcc compilation problem in redhatLinux8.0
- From: Guruhema Prasad N <guru@xxxxxxxxxxxxx>
- Date: Thu, 21 Nov 2002 22:39:11 +0530
- Delivered-to: redhat-devel-list@listman.redhat.com
- Organization: EASi Technologies
- Reply-to: redhat-devel-list@xxxxxxxxxx
- User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1
Hi All,
I am developing an application on redhatLinux8.0, I am getting
compilation problem. I have attached the compilation errors file with
this (filename:redhat8.0errors).
with the following corrections it works fine.
1. Comment the line number 596 in /usr/include/stdlib.h
/**
extern int atexit (void (*__func) (void)) __THROW;
**/
2. modify the file /usr/X11R6/include/X11/Xlib.h
at line 77 by adding following code it works fine
#ifdef linux
#include <stddef.h>
#else
Note:- The same file if I compile in SuseLinux8.0, it compiles with
no-errors.
Can I proceed with above corrections !!,
Please suggest a solution.
Thanks,
Guruhema Prasad N
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning: as it has already been specified as a non-system directory
In file included from /usr/include/features.h:291,
from /usr/include/string.h:26,
from ../mydir/myfile1.h
from ../mydir/myfile2.h
from ../mydir/myfile3.h
from myfile4.c:2:
/usr/include/sys/cdefs.h:174:1: warning: "__attribute_malloc__" redefined
In file included from ../mydir/myfile1.h:10,
from ../mydir/myfile2.h:4,
from ../mydir/myfile3.h:1,
from myfile4.c:2:
/usr/include/malloc.h:61:1: warning: this is the location of the previous definition
In file included from /usr/include/X11/Intrinsic.h:56,
from /usr/include/Xm/Xm.h:56,
from ../mydir/myfile1.h:22,
from ../mydir/myfile2.h:4,
from ../mydir/myfile3.h:1,
from myfile4.c:2:
/usr/include/X11/Xlib.h:83: conflicting types for `wchar_t'
/usr/lib/gcc-lib/i386-redhat-linux/3.2/include/stddef.h:294: previous declaration of `wchar_t'
In file included from ../mydir/myfile1.h:40,
from ../mydir/myfile2.h:4,
from ../mydir/myfile3.h:1,
from myfile4.c:2:
/usr/include/stdlib.h:596: parse error before numeric constant
[Kernel Newbies]
[Red Hat General]
[Fedora]
[Red Hat Install]
[Linux Kernel Development]
[Yosemite News]