Boost logo

Boost-Build :

From: Rene Rivera (grafik.list_at_[hidden])
Date: 2005-06-24 18:18:31


tgdrevil wrote:
> I've been using bjam to compile a bot library in linux using debian
> sarge. Everything is fine and dandy on there, however I would like to
> compile the bot using gcc 2.95 for a couple of the games we support,
> because some administrators still run old versions and for whatever
> reason aren't always able to upgrade their linux game servers.
>
> So I install debian woody, and also tried suse 8.1 and of course the
> bjam executable we are using was compiled with glibc 2.3 so it wont
> work, also I am unable to compile bjam on this platform either.
>
> Following the instructions on
> http://boost.org/tools/build/jam_src/index.html#building_bjam didn't
> work. bjam wouldn't compile. matter o fact, I couldn't even compile
> bjam on the newer debian sarge. I also tried pre-build bjam and the
> oldest one not compiled with glibc 2.3 is 3.1.4 which when tried it
> said our jam file required 3.1.7 or newer.
>
> Anyone have any advice for getting bjam working in an older distro?
> Any help is appreciated.

1. Please be more specific as to what doesn't work. What errors are you
getting? Is it at runtime? Is it at compile time? Which version of the
source? From CVS, or one of the releases?

2. Which combination do you want to have work? Which libc version? Is it
gcc 2.95.3, or 2.96, or something else.

3. The one thing you _can_ try is to add the "-static" option when
building it so that the libc is included in the executable. And them
moving it to the machine you need it to work on. You'd need to change
the lines in build.jam that look like:

## GCC 2.x, 3.x
toolset gcc gcc : "-o " : -D
: -pedantic
[ opt --release : [ opt --symbols : -g : -s ] -O3 -finline-functions ]
[ opt --debug : -g -O0 -fno-inline ] ;

To:

## GCC 2.x, 3.x
toolset gcc gcc : "-o " : -D
: -pedantic -static
[ opt --release : [ opt --symbols : -g : -s ] -O3 -finline-functions ]
[ opt --debug : -g -O0 -fno-inline ] ;

But I'd *really* like to have it just work. So if you could help out
with #1 and #2 above.

-- 
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - Grafik/jabber.org
 

Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk