Error building on mac osx


#1

Hello,
I am trying to install Scidb on Mac, and I am getting the following error during the make:

[ 72%] Built target json_lib
[ 72%] Built target bsdiff
[ 72%] Built target bs_tests
[ 72%] Built target util_lib
[ 72%] Built target catalog_lib
[ 72%] Built target scidb_msg_lib
[ 72%] Built target array_lib
[ 72%] Built target system_lib
[ 72%] Built target compression_lib
[ 72%] Built target delta_lib
[ 72%] Built target ops_lib
[ 72%] Built target scalar_proc_lib
[ 72%] Built target qproc_lib
[ 72%] Built target io_lib
[ 72%] Built target network_lib
Linking CXX executable …/bin/scidb
Undefined symbols for architecture x86_64:
“pqxx::internal::freemem_result_data(pqxx::internal::result_data*)”, referenced from:
pqxx::internal::PQAllocpqxx::internal::result_data::freemem()in libcatalog_lib.a(SystemCatalog.cpp.o)
pqxx::internal::PQAllocpqxx::internal::result_data::freemem()in libqproc_lib.a(Statistics.cpp.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [bin/scidb] Error 1
make[1]: *** [src/CMakeFiles/scidb.dir/all] Error 2
make: *** [all] Error 2

Any idea?
Thanks
DED


#2

Looks like it’s trying to find libpqxx… and not finding it…


#3

[quote=“dedcode”]Hello,
I am trying to install Scidb on Mac, and I am getting the following error during the make:

[ 72%] Built target json_lib
[ 72%] Built target bsdiff
[ 72%] Built target bs_tests
[ 72%] Built target util_lib
[ 72%] Built target catalog_lib
[ 72%] Built target scidb_msg_lib
[ 72%] Built target array_lib
[ 72%] Built target system_lib
[ 72%] Built target compression_lib
[ 72%] Built target delta_lib
[ 72%] Built target ops_lib
[ 72%] Built target scalar_proc_lib
[ 72%] Built target qproc_lib
[ 72%] Built target io_lib
[ 72%] Built target network_lib
Linking CXX executable …/bin/scidb
Undefined symbols for architecture x86_64:
“pqxx::internal::freemem_result_data(pqxx::internal::result_data*)”, referenced from:
pqxx::internal::PQAllocpqxx::internal::result_data::freemem()in libcatalog_lib.a(SystemCatalog.cpp.o)
pqxx::internal::PQAllocpqxx::internal::result_data::freemem()in libqproc_lib.a(Statistics.cpp.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [bin/scidb] Error 1
make[1]: *** [src/CMakeFiles/scidb.dir/all] Error 2
make: *** [all] Error 2

Any idea?
Thanks
DED[/quote]

Looks like you trying to link x86 library to x86_64 binary. You can check exactly with ‘file’ command. If so, may be rebuilding libpqxx with -arch flag can help.

I’m using macports for all dependencies and don’t have problems with building now.


#4

We have checks in CMakeLists.txt, I think such situations can not happen. It fail on configuring stage if some libraries missing.