[odb-users] odb 2.3.0 runtime error symbol not found on Mac OS X Yosemite

Paul-Sebastian Manole sebastian at minifarm.ro
Thu Jan 29 11:29:05 EST 2015


I’ve written several HomeBrew formulas for ODB available at https://github.com/brokenthorn/homebrew-default.
Everything compiles perfectly. The problem is that ODB can’t load odb.so because libgmp is compiled with stdlib libc++ but odb being compiled with GCC 4.9 expects libstdc++. Is it possible to compile/link ODB with GCC and libc++?

I’m using OS X Yosemite which might be the cause of this problem since Apple switched to libc++.

Here is the runtime error:

/usr/local/bin/odb --database pgsql --generate-schema --generate-query --generate-session cererearticol.h

cc1plus: error: cannot load plugin /usr/local/bin/../lib/odb/odb.so
dlopen(/usr/local/bin/../lib/odb/odb.so, 10): Symbol not found: __ZN4cutl2re11basic_regexIcE4initEPKSsb
Referenced from: /usr/local/bin/../lib/odb/odb.so
Expected in: flat namespace
in /usr/local/bin/../lib/odb/odb.so
make: *** [cererearticol-odb.cpp] Error 1

Paul-Sebastian Manole
Administrator baze de date
S.C. Mini-Farm S.R.L.
(0720) 231.791

More information about the odb-users mailing list