CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 5 - Software Support
  compiling gcc 4.6.2

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  spaceghost
      spaceghost
compiling gcc 4.6.2
#1
Newbie
Joined: 2012/3/2
From
Posts: 1
I am use Centos 5.7 Final and need to upgrade gcc to 4.6.0+. Currently I am trying 4.6.2 and while I have solved a number of build problem I am stuck on this error:

In file included from gnu/java/net/natPlainSocketImpl.cc:23:0:
/usr/include/netinet/tcp.h:116:5: error: #error "Adjust your <bits/endian.h> defines"

The /usr/include/netinet/tcp.h file is looking for __BYTE_ORDER to be set to __LITTLE_ENDIAN or __BIG_ENDIAN (should be little endian since I am on a x86_64 machine). The error message above occurs when __BYTE_ORDER is not defined. This variable appears to be set in <endian.h> but only when __USE_BSD is set. Does anybody know how to get that variable defined?

I am using gcc 4.1.2 and attempted to compile gcc 4.6.2 with this configure command:
./configure --disable-ppl-version-check --disable-cloog-version-check --enable-cloog-backend=isl --build=x86_64-redhat-linux --with-mpc=/usr/local
Posted on: 2012/3/2 21:09
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com