[odb-users] Issue on OSX 10.10 (Yosemite)

Adnan RIHAN axel50397 at gmail.com
Tue Nov 25 03:38:11 EST 2014


Hi David,
On 25 novembre 2014 at 09:09:00, David Sarrut (david.sarrut at creatis.insa-lyon.fr) wrote:

I installed the brew packages. The only thing I did, in addition to brew install, is brew link --overwrite libodb, probably because of previously installed version.
If you’ve previously installed libodb via brew packages, next packages requiring an already installed one don’t reinstall them. So to be sure, what you can do is: brew reinstall <package1> [<package2> ...]

it compiles without problem. However, I had trouble at run time. A seg fault occur after I open a db:

db_ = new odb::sqlite::database(filename);
odb::connection_ptr c(db_->connection());
c->execute("PRAGMA foreign_keys=ON;");
This is strange because I have standard compilation options. When you compile libodb yourself (BTW, can you provide me your configure and compilation command line, and the compiler you’re using please) do you have the same issues?

If I comment the two last lines, no seg fault, but this error : 
Assertion failed: (dynamic_cast<transaction_impl*> (&b.implementation ()) != 0), function current, file transaction.cxx, line 23.
Concerning runtime errors, I’ll let codesynthesis answer that ;)

Did you run the tests or examples to check if it’s from the compilation options or from your code?

-- 
Cordialement, Adnan RIHAN.
Directeur-Gérant de Eolis-Software, société de services informatiques.

GPG: 5675-62BA (https://keybase.io/max13/key.asc)
-> Si vous n'utilisez pas GPG mais souhaitez quand même m’envoyer un e-mail chiffré: (https://encrypt.to/0x567562BA).


More information about the odb-users mailing list