Project

General

Profile

Actions

Bug #4669

open

Error build from source github

Added by Cesar Augusto Gonzalez Jimenez almost 9 years ago. Updated almost 9 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
01/13/2016
Due date:
% Done:

0%

Estimated time:

Description

[ 92%] Building CXX object test/CMakeFiles/test.postgres.dir/test.o

[ 94%] Building CXX object test/CMakeFiles/test.postgres.dir/dbo/DboTest.o

/home/aurigadl/Documentos/wt/test/dbo/DboTest.C: In member function 'void dbo_test26::test_method()':

/home/aurigadl/Documentos/wt/test/dbo/DboTest.C:2381:76: error: no matching function for call to 'ref(dbo_test26::test_method()::CheckExpected&)'

model->dataChanged().connect(boost::bind(boost::ref(checkExpected),

^

/home/aurigadl/Documentos/wt/test/dbo/DboTest.C:2381:76: note: candidate is:

In file included from /usr/include/boost/mpl/aux_/unwrap.hpp:18:0,

from /usr/include/boost/mpl/for_each.hpp:25,

from /usr/include/boost/test/unit_test_suite_impl.hpp:29,

from /usr/include/boost/test/unit_test_suite.hpp:19,

from /usr/include/boost/test/unit_test.hpp:20,

from /home/aurigadl/Documentos/wt/test/dbo/DboTest.C:6:

/usr/include/boost/ref.hpp:64:63: note: template const boost::reference_wrapper boost::ref(T&)

template inline reference_wrapper BOOST_REF_CONST ref(T & t)

^

/usr/include/boost/ref.hpp:64:63: note: template argument deduction/substitution failed:

/home/aurigadl/Documentos/wt/test/dbo/DboTest.C: In substitution of 'template const boost::reference_wrapper boost::ref(T&) [with T = dbo_test26::test_method()::CheckExpected]':

/home/aurigadl/Documentos/wt/test/dbo/DboTest.C:2381:76: required from here

/home/aurigadl/Documentos/wt/test/dbo/DboTest.C:2381:76: error: template argument for 'template const boost::reference_wrapper boost::ref(T&)' uses local type 'dbo_test26::test_method()::CheckExpected'

model->dataChanged().connect(boost::bind(boost::ref(checkExpected),

^

/home/aurigadl/Documentos/wt/test/dbo/DboTest.C:2381:76: error: trying to instantiate 'template const boost::reference_wrapper boost::ref(T&)'

make[2]: * [test/CMakeFiles/test.postgres.dir/dbo/DboTest.o] Error 1

make[1]: * [test/CMakeFiles/test.postgres.dir/all] Error 2

make: * [all] Error 2


Files

error-wt-3.3.5.txt (2.59 KB) error-wt-3.3.5.txt Patrick Wolf, 01/28/2016 11:15 PM
Actions #1

Updated by Patrick Wolf almost 9 years ago

Same compilation error from the website Download page's provided archive:

[ 67%] Built target wtdbopostgres

Scanning dependencies of target test.postgres

[ 67%] Building CXX object test/CMakeFiles/test.postgres.dir/dbo/DboTest.o

~/wt-3.3.5/test/dbo/DboTest.C: In member function 'void dbo_test26::test_method()':

~/wt-3.3.5/test/dbo/DboTest.C:2381:76: *error: no matching function for call to 'ref(dbo_test26::test_method()::CheckExpected&)'

model->dataChanged().connect(boost::bind(boost::ref(checkExpected),*

^

~/wt-3.3.5/test/dbo/DboTest.C:2381:76: note: candidate is:

In file included from /usr/include/boost/mpl/aux_/unwrap.hpp:18:0,

from /usr/include/boost/mpl/for_each.hpp:25,

from /usr/include/boost/test/unit_test_suite_impl.hpp:29,

from /usr/include/boost/test/unit_test_suite.hpp:19,

from /usr/include/boost/test/unit_test.hpp:20,

from ~/wt-3.3.5/test/dbo/DboTest.C:6:

/usr/include/boost/ref.hpp:64:63: note: template const boost::reference_wrapper boost::ref(T&)

template inline reference_wrapper BOOST_REF_CONST ref(T & t)

^

/usr/include/boost/ref.hpp:64:63: note: template argument deduction/substitution failed:

~/wt-3.3.5/test/dbo/DboTest.C: In substitution of 'template const boost::reference_wrapper boost::ref(T&) [with T = dbo_test26::test_method()::CheckExpected]':

~/wt-3.3.5/test/dbo/DboTest.C:2381:76: required from here

~/wt-3.3.5/test/dbo/DboTest.C:2381:76: error: template argument for 'template const boost::reference_wrapper boost::ref(T&)' uses local type 'dbo_test26::test_method()::CheckExpected'

model->dataChanged().connect(boost::bind(boost::ref(checkExpected),

^

~/wt-3.3.5/test/dbo/DboTest.C:2381:76: error: trying to instantiate 'template const boost::reference_wrapper boost::ref(T&)'

make[2]: * [test/CMakeFiles/test.postgres.dir/dbo/DboTest.o] Error 1

make[1]: * [test/CMakeFiles/test.postgres.dir/all] Error 2

make: * [all] Error 2

Actions #2

Updated by Cesar Augusto Gonzalez Jimenez almost 9 years ago

I compiled change some option like

file: CMakeCache.txt

//Build PostgreSQL backend for Wt::Dbo

ENABLE_POSTGRES:BOOL=OFF

Those options that have problems when build the proyect.

Actions #3

Updated by Patrick Wolf almost 9 years ago

Right! It built without errors when disabling postgreSQL and enabling sqlite3. But what if you want to use postgreSQL as the backend database?

Actions #4

Updated by Patrick Wolf almost 9 years ago

Same building error when enabling MySQL as the backend database.

ENABLE_MYSQL:BOOL=ON

Actions #5

Updated by Koen Deforche almost 9 years ago

  • Status changed from New to Feedback

Could you check if you can work around this by enabling C++11 while building Wt?

Actions #6

Updated by Cesar Augusto Gonzalez Jimenez almost 9 years ago

I changed line 574 in file CMakeCache.txt with this

//C mode to compile Wt in (leave empty for your compiler's default,

// or set to -std=c+11, -std=c+0x, ...)

WT_CPP_11_MODE:STRING=-std=c++11

It compiled all right.. thanks.

Actions #7

Updated by Patrick Wolf almost 9 years ago

Yes! When enabling C++11 as a work-around, it compiles alright for me as well with:

WT_CPP_11_MODE:STRING=-std=c++0x

Actions #8

Updated by Patrick Wolf almost 9 years ago

I wonder whether this is a bug or a misconfiguration regarding latest release 3.3.5.

I have succeeded in compiling without any error with the flag -std=c++0x for the boost library so that I can use PostgreSQL as the backend database instead of default sqlite3.

However I cannot run the example wt-homepage. I get the error in the attached file. With release 3.3.4, it could run.

Configuration:

Ubuntu 14.04.3 LTS

Apache 2

fcgi

A directory ${RUNDIR} is created and specified in the wt_config.xml file.

drwxr-xr-x 2 www-data root 260 janv. 28 21:25 wt

In the meantime the example hello.wt is working fine with the same settings and build as for Home.wt.

Actions #9

Updated by Patrick Wolf almost 9 years ago

My apologies. It turns out that I did not notice that line 8 of the log stack trace provided it is mentioned « exception: unable to open database file ». This is due to a misconfiguration. Do not consider this as an issue any more.

Actions

Also available in: Atom PDF