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

Paul-Sebastian Manole sebastian at minifarm.ro
Fri Jan 30 06:41:47 EST 2015


Hello again!

I have to say, I never thought I’d ever get odb 2.3.0 to work on Yosemite. Thanks again for your help! After recompiling libcult and odb, everything seems to work perfectly!

While it might not be serious, I do get a warning from homebrew after recompiling odb, saying "odb dependency gmp was built with a different C++ standard library (libc++ from clang). This may cause problems at runtime.”. I hope you guys might clear this up for me as well.

Here’s my brew log for odb installation:

nova:~ sebastian$ brew reinstall odb
==> Reinstalling odb
==> Downloading http://www.codesynthesis.com/download/odb/2.3/odb-2.3.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/odb-2.3.0.tar.gz
==> Downloading http://scm.codesynthesis.com/?p=odb/odb.git;a=patch;h=97281fd4454596834142fa43f83af38695b38e5b
Already downloaded: /Library/Caches/Homebrew/odb--patch-3542604d943aeea80cd4a26b366297eab9116c0e.git;a=patch;h=97281fd4454596834142fa43f83af38695b38e5b
==> Downloading http://scm.codesynthesis.com/?p=odb/odb.git;a=patch;h=4617f8f3b0c07a40d46bb04ab4b66e8446a8250b
Already downloaded: /Library/Caches/Homebrew/odb--patch-d47e879f8c52ebc985d1cff54a89ca2da5aee3ea.git;a=patch;h=4617f8f3b0c07a40d46bb04ab4b66e8446a8250b
==> Downloading http://scm.codesynthesis.com/?p=odb/odb.git;a=patch;h=4f54aea0a7a1735502c845524ae5d650eb630181
Already downloaded: /Library/Caches/Homebrew/odb--patch-8f957dc997cf5249cf102382bc02e02715c8daaa.git;a=patch;h=4f54aea0a7a1735502c845524ae5d650eb630181
==> Patching
patching file odb/gcc-fwd.hxx
patching file odb/gcc.hxx
patching file odb/parser.cxx
patching file odb/pragma.cxx
Hunk #2 succeeded at 2475 (offset -34 lines).
patching file odb/pragma.hxx
patching file odb/processor.cxx
Hunk #4 succeeded at 2581 (offset -40 lines).
Hunk #5 succeeded at 2671 (offset -40 lines).
patching file odb/pragma.hxx
patching file odb/processor.cxx
Warning: GCC short version 4.9
Warning: GCC plugin dir /usr/local/Cellar/gcc/4.9.2_1/lib/gcc/4.9/gcc/x86_64-apple-darwin14.0.0/4.9.2/plugin/include
Warning: Using gcc-4.9 compiler.
==> ./configure --prefix=/usr/local/Cellar/odb/2.3.0 --libexecdir=/usr/local/Cellar/odb/2.3.0/lib --with-options-file=/u
==> make install
Warning: odb dependency gmp was built with a different C++ standard
library (libc++ from clang). This may cause problems at runtime.
/usr/local/Cellar/odb/2.3.0: 20 files, 13M, built in 2.3 minutes

END LOG.

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

On 30 Jan 2015, at 13:35, Paul-Sebastian Manole <sebastian at minifarm.ro<mailto:sebastian at minifarm.ro>> wrote:

Thank you very much! It seems you were right. Libcutl was being built using clang/libc++ and odb using gcc/libstdc++.
My brew formulas were actually based on Adnan Rihan’s formulas for libcult and odb but I wanted to write formulas for all the available odb packages. It seems I missed the point where libcutl should have been built using the same standard library as odb since odb links against it.

Thanks to Adnan as well!

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

On 30 Jan 2015, at 12:08, Boris Kolpackov <boris at codesynthesis.com<mailto:boris at codesynthesis.com>> wrote:

Hi Paul-Sebastian,

Paul-Sebastian Manole <sebastian at minifarm.ro<mailto:sebastian at minifarm.ro>> writes:

I’m using OS X Yosemite which might be the cause of this problem

You would be surprised how many emails I've got in the past couple
months that start with a sentence like that...



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

This symbol is from the libcutl library on which the ODB compiler
depends. My guess would be that this library is built with a
different C++ runtime library (you can verify this with otool -L).

Also, Adnan Rihan has also created a Homebrew package for the ODB
compiler. His seems to work:

http://codesynthesis.com/pipermail/odb-users/2014-November/002209.html

Boris





More information about the odb-users mailing list