Boost logo

Boost-Build :

Subject: [Boost-build] Problem compiling bjam with gcc-4.5.2
From: K.Noel Belcourt (kbelco_at_[hidden])
Date: 2011-02-08 12:31:42


I'm trying to use updated gcc-4.5.2 compilers to build bjam but I'm
getting this error message. Looks like a conflict with struct option
in option.h. The fix is probably just to rename the struct but
wanted to make folks aware of it.

-- Noel

Checked out revision 68710.
# Found patch file "/scratch/kbelco/boost/patch_boost". Executing it.
# Preinstalled "/scratch/kbelco/boost/bjam" is not found; building
# Found "bjam" source directory "/scratch/kbelco/boost/tools_bjam"
# Building "bjam" (./ gcc)...
### Using 'gcc' toolset.
rm -rf bootstrap
mkdir bootstrap
gcc -o bootstrap/jam0 command.c compile.c debug.c expand.c glob.c
hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c
make1.c newstr.c option.c output.c parse.c pathunix.c pathvms.c
regexp.c rules.c scan.c search.c subst.c timestamp.c variable.c
modules.c strings.c filesys.c builtins.c pwd.c class.c native.c md5.c
w32_getreg.c modules/set.c modules/path.c modules/regex.c modules/
property-set.c modules/sequence.c modules/order.c execunix.c
fileunix.cIn file included from jam.c:108:0:
option.h:14:16: error: redefinition of ‘struct option’
/home/kbelco/gcc-4.5.2/include/getopt.h:82:8: note: originally
defined here
jam.c: In function ‘executable_path’:
jam.c:623:12: warning: incompatible implicit declaration of built-in
function ‘strndup’

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at