LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-10-2012, 11:29 AM   #1
Fritz_Doll
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:
Code:
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
 
Old 08-10-2012, 01:31 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Probably check out, how others managed to build boost_1_50_0.
http://rpm.pbone.net > Advanced Search : boost-1.50.0
ftp://ftp.task.gda.pl/vol/vol1/ftp.p...50.0-1.src.rpm
>> 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 && ./bootstrap.sh && ./b2
→ → No errors on EL5. (The 'gcc-c++' package must be installed.)
.
Attached Files
File Type: txt boost-link.patch.txt (873 Bytes, 44 views)
 
Old 08-10-2012, 02:00 PM   #3
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862
Blog Entries: 1

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

export CFLAGS="-D_XOPEN_SOURCE=700 -D_GNU_SOURCE"
 
  


Reply



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:26 AM.

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