Boost logo

Boost :

From: Rozental, Gennadiy (gennadiy.rozental_at_[hidden])
Date: 2003-02-15 20:28:24


>With the latest CVS...

>cd BOOST_ROOT/tools/build/jam_src
>sh ./build.sh

1. This produce an error stating that whence is not accessible. whence seems
to be Korn shell utility. SO now I am using
ksh ./build.sh

2. Almost zero compilation errors but one:
pwd.c: In function `pwd':
pwd.c:17: `PATH_MAX' undeclared (first use in this function)

PATH_MAX supposed to be pulled in from limits.h.

Here what I found in /usr/include/limits.h

/*
* It is arguable whether these should be defined
* even in _IBCS2 mode since the defintions are
* WRONG on recent SCO OS's and pathconf should
* be used instead */
                         
#ifdef _IBCS2
#define LINK_MAX 1000
#define PATH_MAX 256
#define PIPE_BUF 5120
#endif /* _IBCS2 */

After I added _IBCS2 to build.sh and Jamfile I was able to compile and link
usable executable. Though it behave a little bit strance. Every time I am
using it, it produces following output:

<boost_home>/boost/tools/build/allyourbase.jam:567: in Cc-platform-specifics
warning: unknown rule CcMv
<boost_home>/boost/tools/build/allyourbase.jam:620: in C++
<boost_home>/boost/tools/build/allyourbase.jam:1089: in Object
<boost_home>/boost/tools/build/allyourbase.jam:1154: in Objects
<boost_home>/boost/tools/build/boost-base.jam:99: in library-file
<boost_home>/boost/tools/build/boost-base.jam:1791: in subvariant-target
<boost_home>/boost/tools/build/boost-base.jam:1548: in link-libraries
<boost_home>/boost/tools/build/boost-base.jam:1780: in subvariant-target
<boost_home>/boost/tools/build/boost-base.jam:1867: in main-target
<boost_home>/boost/tools/build/boost-base.jam:1338: in declare-local-target
<boost_home>/boost/tools/build/testing.jam:40: in boost-test
<boost_home>/boost/tools/build/testing.jam:384: in run-fail
Jamfile:12: in test-btl-lib
Jamfile:19: in load-jamfiles
<boost_home>/boost/tools/build/bootstrap.jam:15: in boost-build
<boost_home>/boost/boost-build.jam:17: in module scope
<boost_home>/boost/tools/build/allyourbase.jam:567: in Cc-platform-specifics
warning: unknown rule CcMv
<boost_home>/boost/tools/build/allyourbase.jam:620: in C++
<boost_home>/boost/tools/build/allyourbase.jam:1089: in Object
<boost_home>/boost/tools/build/allyourbase.jam:1154: in Objects
<boost_home>/boost/tools/build/boost-base.jam:99: in library-file
<boost_home>/boost/tools/build/boost-base.jam:1791: in subvariant-target
<boost_home>/boost/tools/build/boost-base.jam:1548: in link-libraries
<boost_home>/boost/tools/build/boost-base.jam:1780: in subvariant-target
<boost_home>/boost/tools/build/boost-base.jam:1867: in main-target
<boost_home>/boost/tools/build/boost-base.jam:1338: in declare-local-target
<boost_home>/boost/tools/build/testing.jam:40: in boost-test
<boost_home>/boost/tools/build/testing.jam:384: in run-fail
Jamfile:12: in test-btl-lib
Jamfile:19: in load-jamfiles
<boost_home>/boost/tools/build/bootstrap.jam:15: in boost-build
<boost_home>/boost/boost-build.jam:17: in module scope
<boost_home>/boost/tools/build/allyourbase.jam:567: in Cc-platform-specifics
warning: unknown rule CcMv
<boost_home>/boost/tools/build/allyourbase.jam:620: in C++
<boost_home>/boost/tools/build/allyourbase.jam:1089: in Object
<boost_home>/boost/tools/build/allyourbase.jam:1154: in Objects
<boost_home>/boost/tools/build/boost-base.jam:107: in executable-file
<boost_home>/boost/tools/build/testing.jam:285: in run-test
<boost_home>/boost/tools/build/testing.jam:209: in build-test
<boost_home>/boost/tools/build/boost-base.jam:1791: in subvariant-target
<boost_home>/boost/tools/build/boost-base.jam:1867: in main-target
<boost_home>/boost/tools/build/boost-base.jam:1338: in declare-local-target
<boost_home>/boost/tools/build/testing.jam:40: in boost-test
<boost_home>/boost/tools/build/testing.jam:384: in run-fail
Jamfile:12: in test-btl-lib
Jamfile:19: in load-jamfiles

.... and so on for about 600 lines

...found 980 targets...
...updating 11 targets...

And then it works as expected.

> More details are in the BOOST_ROOT/tools/build/jam_src/readme.html

This one does not have anything about building jam. Or I missing it?

If I will be able ot address above issues I could publish it on sourceforge.

 Any help?

Gennadiy.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk