[C++-sig] Boost.Python in SUSE 9.0 or SUSE 9.1?

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Thu Jun 24 16:42:41 CEST 2004


--- Chad Austin <caustin at gmail.com> wrote:
> Has anyone successfully used Boost.Python in SUSE 9.0 or SUSE 9.1?  In
> 9.0 I had to build and install boost 1.31 from source, but 9.1 comes
> with a boost 1.31 package.  Either way, merely #including
> <boost/python.hpp> causes an internal compiler error in a variety of
> places.  Note: SUSE 9.0 uses gcc 3.3.1 (+ SUSE-specific patches?) and
> SUSE 9.1 uses gcc 3.3.3 (+ patches again?).

I've used gcc 3.3.1 under Mandrake 9.2 and SunOS 5.9 without problems, but
didn't have the opportunity to try SUSE.

> If I build gcc 3.4.0 from
> source, Boost.Python compiles, but does not link do to
> incompatibilities in libstdc++.>

Does the link command fail, or is it a run-time failure (i.e. dlopen fails)?
If it is the latter you might have to update the LD_LIBRARY_PATH. This is what
I am using to activate gcc 3.4 in a new shell:

set path=(/usr/local_cci/gcc-3.4.0/bin $path)
if ( $?LD_LIBRARY_PATH ) then
  setenv LD_LIBRARY_PATH "/usr/local_cci/gcc-3.4.0/lib:${LD_LIBRARY_PATH}"
else
  setenv LD_LIBRARY_PATH "/usr/local_cci/gcc-3.4.0/lib"
endif

> I'm going to try Boost.Python from
> CVS before anything else, but I thought I'd ask if anyone else has had
> success or failure in this area.

The Boost 1.31 release has a subtle issue when compiling with gcc 3.4:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14528

If you run into this use Boost CVS. As of yesterday it was in fantastic shape.

Ralf



		
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail




More information about the Cplusplus-sig mailing list