[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: weird issue in kalzium -- possible KDE buildsystem linking issue
From:       Benoit Jacob <jacob () math ! jussieu ! fr>
Date:       2007-08-29 18:04:29
Message-ID: 20070829195943.V2618 () cantor ! math ! jussieu ! fr
[Download RAW message or body]

Actually the problem is even worse than that, and not limited to global 
objects.

When we load molecules from files using OpenBabel, the Molecule object 
that OpenBabel gives us has corrupted data. The atoms look like they are 
aligned on a grid. Most likely, their coordinates, which are doubles, are 
casted to ints.

So it looks like, all the data the OpenBabel passes to us is corrupted by 
some kind of unwanted casting to type it.

The only data that's not getting corrupted is chars, so that agrees with 
the theory that the corruption consists in casting all the data to ints.

Do you have an idea? That looks very much like a linkage issue...

Thanks,
Benoit

On Wed, 29 Aug 2007, Benoit Jacob wrote:

> Hi all,
>
> in Kalzium we're reading chemical data from a global object named "etab"
> defined in an external C++ library, OpenBabel. It is defined in the source
> code of OpenBabel as
> 	OBElementTable etab;
>
> Since a few weeks, the data read from this object is corrupted. Most of
> the data that we read is just uninitialized values. Some data however
> remains valid.
>
> Nothing has changed in Kalzium and in OpenBabel in this respect. Other
> (non-KDE) programs using OpenBabel do run fine, including a simple test
> program that I wrote for this occasion.
>
> At least 3 Kalzium developers are experiencing this issue: Carsten
> Niehaus, Johannes Simon and myself.
>
> So my guess is that something has changed in the KDE buildsystem,
> affecting the linkage to global objects defined in external binary C++
> libraries.
>
> Does anyone have a clue what that might be?
>
> Thanks,
> Benoit
>
>>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
>
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic