Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-10-2012, 11:29 AM   #1
LQ Newbie
Registered: Dec 2010
Posts: 20

Rep: Reputation: Disabled
boost-build failed to build engine Red Hat 4.1.2 and GCC 4.1.2

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 ./ --prefix=/home/my_user_account/bin as per the documentation for boost-build
Old 08-10-2012, 01:31 PM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,402

Rep: Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611
Probably check out, how others managed to build boost_1_50_0. > Advanced Search : boost-1.50.0
>> boost-1.50.0-1.src.rpm source code package.
>> There's a patch included : boost-link.patch

cd boost_1_50_0/ && patch -p1 < boost-link.patch && ./ && ./b2
→ → No errors on EL5. (The 'gcc-c++' package must be installed.)
Attached Files
File Type: txt boost-link.patch.txt (873 Bytes, 37 views)
Old 08-10-2012, 02:00 PM   #3
Senior Member
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,149

Rep: Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523
It's just a warning, it shouldn't stop build. Anyway, try this (before configure):



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Failed to build boost 1.41.0 linuxandtsm Linux - Newbie 12 05-30-2013 04:28 AM
gcc-4.4.3 make error - failed to build gcc-4.4.3--please help aayu09 Fedora 4 03-05-2010 09:20 AM
remove the gcc-build, binutils-build, etc after make @d4M Linux From Scratch 6 01-26-2009 04:29 AM
help: failed build of GCC 4.3 on SLES 10/gcc 4.1 ia64 ron7000 Programming 6 05-27-2008 11:24 PM
KDE build for Red Hat ?? its_sandy_here Red Hat 1 03-27-2004 02:20 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:51 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration