Fedora Linux Support Community & Resources Center
  #1  
Old 20th November 2009, 05:13 PM
KirkD Offline
Registered User
 
Join Date: Oct 2007
Posts: 372
windows_xp_2003firefox
Building Boost on 64-bit CentOS 5.4

I'm trying to build boost on a 64-bit CentOS 5.4 install. I have Python 2.6.4 built and installed at /opt/Python_2.6.4/, and I've appended the user-config.jam file with:

using python : 2.6 : /opt/Python_2.6.4/python : /opt/Python_2.6.4/Include : /opt/Python_2.6.4/Lib ;

The standard system Python is 2.4.1 but the tools I'm using require 2.6, so I've built this version and installed it independently of the system version 2.4.1 to avoid any conflicts.

As I'm sure you've already imagined, I get the error:

LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)

I see that this is a long standing bug, but I have yet to find a fix. I've tried various CCFLAGS, CXXFLAGS, etc. to push for a 64-bit compile or a 32-bit compile (-m64 or -m32).

The offending file is pyport.h - is there a 64-bit friendly version that I don't know about?

-Kirk

Edit: Fixed.

I found that the custom pyconfig.h file (customized for arch by ./configure) was not being copied into the appropriate location. As a result, I had default 32-bit definitions. Copying it into the correct place allowed the build. Why ./configure didn't do this remains a mystery.
Reply With Quote
  #2  
Old 20th November 2009, 09:22 PM
mjmwired's Avatar
mjmwired Offline
Registered User
 
Join Date: Feb 2005
Posts: 204
windows_xp_2003firefox
Just curious:
Was there something wrong with the boost included in CentOS ?
Reply With Quote
  #3  
Old 20th November 2009, 09:30 PM
KirkD Offline
Registered User
 
Join Date: Oct 2007
Posts: 372
windows_xp_2003firefox
The included boost was v1.33 and I needed 1.39 or later.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
boost thread soxs060389 Programming & Packaging 2 29th May 2009 12:02 PM
boost bind , boost thread and class combo soxs060389 Programming & Packaging 0 9th May 2009 02:57 PM
Installed F9 after CentOS, can't boot CentOS now drokmed Using Fedora 4 1st August 2008 02:39 AM
C++ boost rpm ekdya Using Fedora 0 15th October 2006 11:53 AM


Current GMT-time: 08:56 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat