I am trying to build boost 1.50.0 for Red Hat 4.1.2 with GCC 4.1.2,
It continues to fail at:
gcc -o bootstrap/jam0 command.c compile.c constants.c debug.c function.c glob.c hash.c hdrmacro.c headers.c jam.c jambase.c jamgram.c lists.c make.c make1.c object.c option.c output.c parse.c pathunix.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.c
jam.c: In function ‘executable_path’:
jam.c:656: warning: incompatible implicit declaration of built-in function ‘strndup’
./bootstrap/jam0 -f build.jam --toolset=gcc --toolset-root= clean
I've checked that jam.c has <string.h> and that string.h has strndup()
the function executable_path() returns the result of strndup() directly.
So I do not understand where this is coming from, any help would be appreciated, thanks.
Note: This is on a work server so boost is being installed to /home/my_user_account
/bin/ as I don't have administrator privileges. I start with ./bootstrap.sh --prefix=/home/my_user_account
/bin as per the documentation for boost-build