Boost logo

Boost :

From: Oliver Kullmann (O.Kullmann_at_[hidden])
Date: 2004-12-07 11:56:02


Hi Jeff,

> > 3) I'm using g++ version 3.4.3, and I compiled Boost with this
> > compiler, but to whatever library from Boost I link, I get warning
> > messages like the above; another example
> >
> > > g++ calender.o -lboost_date_time-gcc
> > /usr/bin/ld: warning: libstdc++.so.5, needed by
> > /usr/local/lib/gcc/i686-pc-linux-
> > gnu/3.4.3/../../../libboost_date_time-gcc.so, may conflict with libstdc++.so.6
>
> Looks to me that there is a mismatch in the environment -- you are compiling
> boost with one version of libstdc++ and then linking against another.
>
> > What's the problem here?! (Linking in general seems in Boost not so
> > easy, and thus it would be good to have a bit more documentation on
> > this. For example in program_options I couldn't find any hint how to
> > compile it.)
> >
> > Hope someone can shed light on these issues (as I said, for all what
> > I can see, there seems to be a serious problem with program_options).
>
> Have you read this?
>
> http://www.boost.org/more/getting_started.html#Build_Install
>

yes, I read it, but the main question seems to me:

What happens if Boost was already installed on the system?
Is some form of "uninstall" necessary? (seems not to be the case?!)

Could this be the problem here?!

To be on the safe side, I've built Boost again, but exactly the same problem:
Always the linker warnings, and every program crashes (so it had nothing to do
with the program_options library; fortunately it always crashes immediately, so
the problem is always visible). Below I've copied the relevant build commands and
other information.

Thanks for your help!

Oliver

----------------------------------------------------------------------------------------

Compiler versions:

kullmann_at_csltok:/usr/local/lib> g++ -v
Lese Spezifikationen von /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
Konfiguriert mit: /h/21/GemeinsameBasis/GCC/gcc-3.4.3/configure --enable-threads=posix --enable-languages=c,c++,f77,objc,java,ada --enable-shared
Thread-Modell: posix
gcc-Version 3.4.3
kullmann_at_csltok:/usr/local/lib> gcc -v
Lese Spezifikationen von /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/specs
Konfiguriert mit: /h/21/GemeinsameBasis/GCC/gcc-3.4.3/configure --enable-threads=posix --enable-languages=c,c++,f77,objc,java,ada --enable-shared
Thread-Modell: posix
gcc-Version 3.4.3

-------------------------------

Building Boost:

kullmann_at_csltok:~/C++> tar -xzf boost_1_32_0.tar.gz
kullmann_at_csltok:~/C++/boost_1_32_0/tools/build/jam_src> ./build.sh
kullmann_at_csltok:~/C++/boost_1_32_0> su
csltok:/home/kullmann/C++/boost_1_32_0 # tools/build/jam_src/bin.linuxx86/bjam "-sTOOLS=gcc" install

-------------------------------

As an example, the date_time link-libraries before the build:

kullmann_at_csltok:/usr/local/lib> ls -l libboost_date_time-gcc*
-rw-r--r-- 1 kullmann users 26592 2004-09-17 07:30 libboost_date_time-gcc-1_31.a
lrwxrwxrwx 1 kullmann users 37 2004-09-17 07:41 libboost_date_time-gcc-1_31.so -> libboost_date_time-gcc-1_31.so.1.31.0
-rwxr-xr-x 1 kullmann users 19500 2004-09-17 07:30 libboost_date_time-gcc-1_31.so.1.31.0
-rw-r--r-- 2 root root 94536 2004-12-03 02:51 libboost_date_time-gcc-1_32.a
lrwxrwxrwx 1 root root 37 2004-12-03 02:51 libboost_date_time-gcc-1_32.so -> libboost_date_time-gcc-1_32.so.1.32.0
-rwxr-xr-x 2 root root 57732 2004-12-03 02:51 libboost_date_time-gcc-1_32.so.1.32.0
-rw-r--r-- 2 root root 94536 2004-12-03 02:51 libboost_date_time-gcc.a
-rw-r--r-- 1 kullmann users 198072 2004-09-17 07:30 libboost_date_time-gcc-d-1_31.a
lrwxrwxrwx 1 kullmann users 39 2004-09-17 07:41 libboost_date_time-gcc-d-1_31.so -> libboost_date_time-gcc-d-1_31.so.1.31.0
-rwxr-xr-x 1 kullmann users 167296 2004-09-17 07:30 libboost_date_time-gcc-d-1_31.so.1.31.0
-rw-r--r-- 2 root root 437712 2004-12-03 02:51 libboost_date_time-gcc-d-1_32.a
lrwxrwxrwx 1 root root 39 2004-12-03 02:51 libboost_date_time-gcc-d-1_32.so -> libboost_date_time-gcc-d-1_32.so.1.32.0
-rwxr-xr-x 2 root root 364163 2004-12-03 02:51 libboost_date_time-gcc-d-1_32.so.1.32.0
-rw-r--r-- 2 root root 437712 2004-12-03 02:51 libboost_date_time-gcc-d.a
-rwxr-xr-x 2 root root 364163 2004-12-03 02:51 libboost_date_time-gcc-d.so
-rw-r--r-- 1 kullmann users 26592 2004-09-17 07:30 libboost_date_time-gcc-mt-1_31.a
lrwxrwxrwx 1 kullmann users 40 2004-09-17 07:41 libboost_date_time-gcc-mt-1_31.so -> libboost_date_time-gcc-mt-1_31.so.1.31.0
-rwxr-xr-x 1 kullmann users 19524 2004-09-17 07:30 libboost_date_time-gcc-mt-1_31.so.1.31.0
-rw-r--r-- 2 root root 94520 2004-12-03 02:51 libboost_date_time-gcc-mt-1_32.a
lrwxrwxrwx 1 root root 40 2004-12-03 02:51 libboost_date_time-gcc-mt-1_32.so -> libboost_date_time-gcc-mt-1_32.so.1.32.0
-rwxr-xr-x 2 root root 58004 2004-12-03 02:51 libboost_date_time-gcc-mt-1_32.so.1.32.0
-rw-r--r-- 2 root root 94520 2004-12-03 02:51 libboost_date_time-gcc-mt.a
-rw-r--r-- 1 kullmann users 201546 2004-09-17 07:30 libboost_date_time-gcc-mt-d-1_31.a
lrwxrwxrwx 1 kullmann users 42 2004-09-17 07:41 libboost_date_time-gcc-mt-d-1_31.so -> libboost_date_time-gcc-mt-d-1_31.so.1.31.0
-rwxr-xr-x 1 kullmann users 169794 2004-09-17 07:30 libboost_date_time-gcc-mt-d-1_31.so.1.31.0
-rw-r--r-- 2 root root 441216 2004-12-03 02:51 libboost_date_time-gcc-mt-d-1_32.a
lrwxrwxrwx 1 root root 42 2004-12-03 02:51 libboost_date_time-gcc-mt-d-1_32.so -> libboost_date_time-gcc-mt-d-1_32.so.1.32.0
-rwxr-xr-x 2 root root 370109 2004-12-03 02:51 libboost_date_time-gcc-mt-d-1_32.so.1.32.0
-rw-r--r-- 2 root root 441216 2004-12-03 02:51 libboost_date_time-gcc-mt-d.a
-rwxr-xr-x 2 root root 370109 2004-12-03 02:51 libboost_date_time-gcc-mt-d.so
-rwxr-xr-x 2 root root 58004 2004-12-03 02:51 libboost_date_time-gcc-mt.so
-rwxr-xr-x 2 root root 57732 2004-12-03 02:51 libboost_date_time-gcc.so

---------------------------------

And after the build:

kullmann_at_csltok:/usr/local/lib> ls -l libboost_date_time-gcc*
-rw-r--r-- 1 kullmann users 26592 2004-09-17 07:30 libboost_date_time-gcc-1_31.a
lrwxrwxrwx 1 kullmann users 37 2004-09-17 07:41 libboost_date_time-gcc-1_31.so -> libboost_date_time-gcc-1_31.so.1.31.0
-rwxr-xr-x 1 kullmann users 19500 2004-09-17 07:30 libboost_date_time-gcc-1_31.so.1.31.0
-rw-r--r-- 2 root root 94536 2004-12-06 23:06 libboost_date_time-gcc-1_32.a
lrwxrwxrwx 1 root root 37 2004-12-06 23:06 libboost_date_time-gcc-1_32.so -> libboost_date_time-gcc-1_32.so.1.32.0
-rwxr-xr-x 2 root root 57732 2004-12-06 23:06 libboost_date_time-gcc-1_32.so.1.32.0
-rw-r--r-- 2 root root 94536 2004-12-06 23:06 libboost_date_time-gcc.a
-rw-r--r-- 1 kullmann users 198072 2004-09-17 07:30 libboost_date_time-gcc-d-1_31.a
lrwxrwxrwx 1 kullmann users 39 2004-09-17 07:41 libboost_date_time-gcc-d-1_31.so -> libboost_date_time-gcc-d-1_31.so.1.31.0
-rwxr-xr-x 1 kullmann users 167296 2004-09-17 07:30 libboost_date_time-gcc-d-1_31.so.1.31.0
-rw-r--r-- 2 root root 437712 2004-12-06 23:06 libboost_date_time-gcc-d-1_32.a
lrwxrwxrwx 1 root root 39 2004-12-06 23:06 libboost_date_time-gcc-d-1_32.so -> libboost_date_time-gcc-d-1_32.so.1.32.0
-rwxr-xr-x 2 root root 364163 2004-12-06 23:06 libboost_date_time-gcc-d-1_32.so.1.32.0
-rw-r--r-- 2 root root 437712 2004-12-06 23:06 libboost_date_time-gcc-d.a
-rwxr-xr-x 2 root root 364163 2004-12-06 23:06 libboost_date_time-gcc-d.so
-rw-r--r-- 1 kullmann users 26592 2004-09-17 07:30 libboost_date_time-gcc-mt-1_31.a
lrwxrwxrwx 1 kullmann users 40 2004-09-17 07:41 libboost_date_time-gcc-mt-1_31.so -> libboost_date_time-gcc-mt-1_31.so.1.31.0
-rwxr-xr-x 1 kullmann users 19524 2004-09-17 07:30 libboost_date_time-gcc-mt-1_31.so.1.31.0
-rw-r--r-- 2 root root 94520 2004-12-06 23:06 libboost_date_time-gcc-mt-1_32.a
lrwxrwxrwx 1 root root 40 2004-12-06 23:06 libboost_date_time-gcc-mt-1_32.so -> libboost_date_time-gcc-mt-1_32.so.1.32.0
-rwxr-xr-x 2 root root 58004 2004-12-06 23:06 libboost_date_time-gcc-mt-1_32.so.1.32.0
-rw-r--r-- 2 root root 94520 2004-12-06 23:06 libboost_date_time-gcc-mt.a
-rw-r--r-- 1 kullmann users 201546 2004-09-17 07:30 libboost_date_time-gcc-mt-d-1_31.a
lrwxrwxrwx 1 kullmann users 42 2004-09-17 07:41 libboost_date_time-gcc-mt-d-1_31.so -> libboost_date_time-gcc-mt-d-1_31.so.1.31.0
-rwxr-xr-x 1 kullmann users 169794 2004-09-17 07:30 libboost_date_time-gcc-mt-d-1_31.so.1.31.0
-rw-r--r-- 2 root root 441216 2004-12-06 23:06 libboost_date_time-gcc-mt-d-1_32.a
lrwxrwxrwx 1 root root 42 2004-12-06 23:06 libboost_date_time-gcc-mt-d-1_32.so -> libboost_date_time-gcc-mt-d-1_32.so.1.32.0
-rwxr-xr-x 2 root root 370109 2004-12-06 23:06 libboost_date_time-gcc-mt-d-1_32.so.1.32.0
-rw-r--r-- 2 root root 441216 2004-12-06 23:06 libboost_date_time-gcc-mt-d.a
-rwxr-xr-x 2 root root 370109 2004-12-06 23:06 libboost_date_time-gcc-mt-d.so
-rwxr-xr-x 2 root root 58004 2004-12-06 23:06 libboost_date_time-gcc-mt.so
-rwxr-xr-x 2 root root 57732 2004-12-06 23:06 libboost_date_time-gcc.so

----------------------------------

The linking warning:

g++ -c -o TimeHandling_Applications_DaysDifference.o TimeHandling_Applications_DaysDifference.cpp
g++ -o TimeHandling_Applications_DaysDifference TimeHandling_Applications_DaysDifference.o -lboost_date_time-gcc
/usr/bin/ld: warning: libstdc++.so.5, needed by /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.3/../../../libboost_date_time-gcc.so, may conflict with libstdc++.so.6

-----------------------------------

Crash not shown (doesn't seem to be informative).


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