leosac / access-control

Leosac Access Control - Open Source Physical Access Control System
https://leosac.com
GNU Affero General Public License v3.0
240 stars 40 forks source link

Build failure - db pragma xxxxx is not associated with a declaration #98

Closed knight-of-ni closed 6 years ago

knight-of-ni commented 6 years ago

I've been working through build issues with the develop branch, mostly missing package dependencies, when I came upon an issue I had not seen before.

The same build error was generated on two different Debian Stretch machines, one virtual amd64 and the other arm - raspi zero.

Relevant build output is shown below.

This might be relevant, but I'm not sure: https://www.codesynthesis.com/pipermail/odb-users/2016-December/003581.html

That was over a year ago. One would think the fix for that issue would have made its way into the debian repos by now.

I am very unfamiliar with odb, and could use some help troubleshooting this.

installed gcc and odb packages:

abauer@vDebian:~/build/leosac/build$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-18' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 6.3.0 20170516 (Debian 6.3.0-18) 

abauer@vDebian:~/build/leosac/build$ dpkg -l |grep odb
ii  libodb-2.4                           2.4.0-1+b1                     amd64        Common ODB Runtime Library
ii  libodb-boost-2.4                     2.4.0-1+b1                     amd64        Boost ODB runtime library
ii  libodb-boost-dev                     2.4.0-1+b1                     amd64        Boost ODB runtime library (development)
ii  libodb-dev                           2.4.0-1+b1                     amd64        Common ODB Runtime Library (development)
ii  libodb-mysql-2.4                     2.4.0-3                        amd64        ODB Runtime Library for MySQL
ii  libodb-mysql-dev                     2.4.0-3                        amd64        ODB Runtime Library for MySQL (development)
ii  libodb-pgsql-2.4                     2.4.0-1+b1                     amd64        ODB Runtime Library for PostgreSQL
ii  libodb-pgsql-dev                     2.4.0-1+b1                     amd64        ODB Runtime Library for PostgreSQL (development)
ii  libodb-qt-2.4                        2.4.0-2+b1                     amd64        Qt ODB runtime library
ii  libodb-qt-dev                        2.4.0-2+b1                     amd64        Qt ODB runtime library (development)
ii  libodb-sqlite-2.4                    2.4.0-1+b1                     amd64        ODB Runtime Library for SQLite
ii  libodb-sqlite-dev                    2.4.0-1+b1                     amd64        ODB Runtime Library for SQLite (development)
ii  odb                                  2.4.0-5+b1                     amd64        C++ Object-Relational Mapping (ORM)

Build output:

[  7%] Generating core-schema-sqlite.cxx, core-schema-pgsql.cxx
/home/abauer/build/leosac/src/core/auth/User.hpp:154:12: error: db pragma 'id' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/User.hpp:154:15: error: db pragma 'auto' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/User.hpp:160:12: error: db pragma 'unique' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/User.hpp:161:12: error: db pragma 'not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/User.hpp:162:12: error: db pragma 'type' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/User.hpp:162:12: error: db pragma 'type' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/User.hpp:165:12: error: db pragma 'type' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/User.hpp:165:12: error: db pragma 'type' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/User.hpp:172:12: error: db pragma 'value_not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/User.hpp:172:12: error: db pragma 'value_not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/User.hpp:172:27: error: db pragma 'inverse' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/User.hpp:175:12: error: db pragma 'not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/User.hpp:178:12: error: db pragma 'value_not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/User.hpp:178:12: error: db pragma 'value_not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/User.hpp:178:27: error: db pragma 'inverse' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/User.hpp:184:12: error: db pragma 'value_not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/User.hpp:184:12: error: db pragma 'value_not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/User.hpp:184:27: error: db pragma 'inverse' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/User.hpp:191:12: error: db pragma 'transient' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/User.hpp:194:12: error: db pragma 'version' is not associated with a declaration
/home/abauer/build/leosac/src/core/credentials/Credential.hpp:75:12: error: db pragma 'id' is not associated with a declaration
/home/abauer/build/leosac/src/core/credentials/Credential.hpp:75:15: error: db pragma 'auto' is not associated with a declaration
/home/abauer/build/leosac/src/core/credentials/Credential.hpp:86:12: error: db pragma 'value_not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/credentials/Credential.hpp:86:12: error: db pragma 'value_not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/credentials/Credential.hpp:86:27: error: db pragma 'inverse' is not associated with a declaration
/home/abauer/build/leosac/src/core/credentials/Credential.hpp:89:12: error: db pragma 'version' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Door.hpp:67:12: error: db pragma 'id' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Door.hpp:67:15: error: db pragma 'auto' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Door.hpp:77:12: error: db pragma 'unique' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Door.hpp:83:12: error: db pragma 'value_not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Door.hpp:83:12: error: db pragma 'value_not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Door.hpp:83:27: error: db pragma 'inverse' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Door.hpp:86:12: error: db pragma 'version' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/AccessPoint.hpp:62:12: error: db pragma 'id' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/AccessPoint.hpp:62:15: error: db pragma 'auto' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/AccessPoint.hpp:67:12: error: db pragma 'inverse' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/AccessPoint.hpp:79:12: error: db pragma 'value_not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/AccessPoint.hpp:79:12: error: db pragma 'value_not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/AccessPoint.hpp:82:12: error: db pragma 'version' is not associated with a declaration
/home/abauer/build/leosac/src/core/update/Update.hpp:65:12: error: db pragma 'id' is not associated with a declaration
/home/abauer/build/leosac/src/core/update/Update.hpp:65:15: error: db pragma 'auto' is not associated with a declaration
/home/abauer/build/leosac/src/core/update/Update.hpp:98:12: error: db pragma 'version' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/AccessPointUpdate.hpp:55:12: error: db pragma 'not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/AccessPointUpdate.hpp:56:12: error: db pragma 'inverse' is not associated with a declaration
/home/abauer/build/leosac/src/tools/Schedule.hpp:79:12: error: db pragma 'id' is not associated with a declaration
/home/abauer/build/leosac/src/tools/Schedule.hpp:79:15: error: db pragma 'auto' is not associated with a declaration
/home/abauer/build/leosac/src/tools/Schedule.hpp:82:12: error: db pragma 'id_column' is not associated with a declaration
/home/abauer/build/leosac/src/tools/Schedule.hpp:82:37: error: db pragma 'value_column' is not associated with a declaration
/home/abauer/build/leosac/src/tools/Schedule.hpp:82:37: error: db pragma 'value_column' is not associated with a declaration
/home/abauer/build/leosac/src/tools/Schedule.hpp:85:12: error: db pragma 'unique' is not associated with a declaration
/home/abauer/build/leosac/src/tools/Schedule.hpp:90:12: error: db pragma 'id_column' is not associated with a declaration
/home/abauer/build/leosac/src/tools/Schedule.hpp:90:37: error: db pragma 'value_column' is not associated with a declaration
/home/abauer/build/leosac/src/tools/Schedule.hpp:90:37: error: db pragma 'value_column' is not associated with a declaration
/home/abauer/build/leosac/src/tools/Schedule.hpp:93:12: error: db pragma 'version' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Token.hpp:99:12: error: db pragma 'id' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Token.hpp:100:12: error: db pragma 'type' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Token.hpp:100:12: error: db pragma 'type' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Token.hpp:106:12: error: db pragma 'not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Token.hpp:107:12: error: db pragma 'on_delete' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Token.hpp:110:12: error: db pragma 'not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Token.hpp:114:12: error: db pragma 'version' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Zone.hpp:100:12: error: db pragma 'id' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Zone.hpp:100:15: error: db pragma 'auto' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Zone.hpp:107:12: error: db pragma 'value_not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Zone.hpp:107:12: error: db pragma 'value_not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Zone.hpp:110:12: error: db pragma 'value_not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Zone.hpp:110:12: error: db pragma 'value_not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Zone.hpp:113:12: error: db pragma 'value_not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Zone.hpp:113:12: error: db pragma 'value_not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Zone.hpp:113:27: error: db pragma 'inverse' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Zone.hpp:116:12: error: db pragma 'version' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AuditEntry.hpp:96:12: error: db pragma 'id' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AuditEntry.hpp:96:15: error: db pragma 'auto' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AuditEntry.hpp:99:12: error: db pragma 'not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AuditEntry.hpp:102:12: error: db pragma 'value_not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AuditEntry.hpp:102:12: error: db pragma 'value_not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AuditEntry.hpp:106:12: error: db pragma 'inverse' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AuditEntry.hpp:109:12: error: db pragma 'not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AuditEntry.hpp:118:12: error: db pragma 'type' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AuditEntry.hpp:118:12: error: db pragma 'type' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AuditEntry.hpp:141:12: error: db pragma 'transient' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AuditEntry.hpp:148:12: error: db pragma 'transient' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AuditEntry.hpp:152:12: error: db pragma 'version' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AuditEntry.hpp:173:12: error: db pragma 'column' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/WSAPICall.hpp:73:12: error: db pragma 'not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/WSAPICall.hpp:79:12: error: db pragma 'not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/WSAPICall.hpp:85:12: error: db pragma 'not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/WSAPICall.hpp:91:12: error: db pragma 'not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/WSAPICall.hpp:98:12: error: db pragma 'not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/UserEvent.hpp:71:12: error: db pragma 'not_null' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/GroupEvent.hpp:69:12: error: db pragma 'on_delete' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/UserGroupMembershipEvent.hpp:63:12: error: db pragma 'on_delete' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/UserGroupMembershipEvent.hpp:66:12: error: db pragma 'on_delete' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/CredentialEvent.hpp:68:12: error: db pragma 'on_delete' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/ScheduleEvent.hpp:70:12: error: db pragma 'on_delete' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/DoorEvent.hpp:76:12: error: db pragma 'on_delete' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AccessPointEvent.hpp:69:12: error: db pragma 'on_delete' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/ZoneEvent.hpp:68:12: error: db pragma 'on_delete' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/Device.hpp:70:12: error: db pragma 'id' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/Device.hpp:80:12: error: db pragma 'unique' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/Device.hpp:93:12: error: db pragma 'version' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/User.hpp:41:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/User.hpp:41:19: error: db pragma 'optimistic' is not associated with a declaration
/home/abauer/build/leosac/src/core/credentials/Credential.hpp:36:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/core/credentials/Credential.hpp:36:19: error: db pragma 'polymorphic' is not associated with a declaration
/home/abauer/build/leosac/src/core/credentials/Credential.hpp:36:31: error: db pragma 'optimistic' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Door.hpp:34:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Door.hpp:34:19: error: db pragma 'optimistic' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/AccessPoint.hpp:29:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/AccessPoint.hpp:29:19: error: db pragma 'optimistic' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/AccessPoint.hpp:29:30: error: db pragma 'polymorphic' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AuditTracker.hpp:37:12: error: db pragma 'value' is not associated with a declaration
/home/abauer/build/leosac/src/core/update/Update.hpp:38:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/core/update/Update.hpp:38:19: error: db pragma 'polymorphic' is not associated with a declaration
/home/abauer/build/leosac/src/core/update/Update.hpp:38:31: error: db pragma 'optimistic' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/AccessPointUpdate.hpp:28:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/AccessPointUpdate.hpp:28:19: error: db pragma 'polymorphic' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/AccessPointUpdate.hpp:28:31: error: db pragma 'table' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/AccessPointUpdate.hpp:28:31: error: db pragma 'table' is not associated with a declaration
/home/abauer/build/leosac/src/tools/Schedule.hpp:40:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/tools/Schedule.hpp:40:19: error: db pragma 'optimistic' is not associated with a declaration
/home/abauer/build/leosac/src/tools/Uuid.hpp:34:12: error: db pragma 'value' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Token.hpp:41:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Token.hpp:41:19: error: db pragma 'optimistic' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Zone.hpp:59:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Zone.hpp:59:19: error: db pragma 'callback' is not associated with a declaration
/home/abauer/build/leosac/src/core/auth/Zone.hpp:59:49: error: db pragma 'optimistic' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AuditEntry.hpp:44:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AuditEntry.hpp:44:19: error: db pragma 'polymorphic' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AuditEntry.hpp:44:31: error: db pragma 'optimistic' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AuditEntry.hpp:44:42: error: db pragma 'callback' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AuditEntry.hpp:170:12: error: db pragma 'view' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AuditEntry.hpp:170:17: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/WSAPICall.hpp:32:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/WSAPICall.hpp:32:19: error: db pragma 'polymorphic' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/WSAPICall.hpp:32:31: error: db pragma 'callback' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/UserEvent.hpp:32:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/UserEvent.hpp:32:19: error: db pragma 'polymorphic' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/UserEvent.hpp:32:31: error: db pragma 'callback' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/GroupEvent.hpp:32:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/GroupEvent.hpp:32:19: error: db pragma 'polymorphic' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/GroupEvent.hpp:32:31: error: db pragma 'callback' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/UserGroupMembershipEvent.hpp:32:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/UserGroupMembershipEvent.hpp:32:19: error: db pragma 'polymorphic' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/UserGroupMembershipEvent.hpp:32:31: error: db pragma 'callback' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/CredentialEvent.hpp:34:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/CredentialEvent.hpp:34:19: error: db pragma 'polymorphic' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/CredentialEvent.hpp:34:31: error: db pragma 'callback' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/ScheduleEvent.hpp:33:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/ScheduleEvent.hpp:33:19: error: db pragma 'polymorphic' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/ScheduleEvent.hpp:33:31: error: db pragma 'callback' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/DoorEvent.hpp:32:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/DoorEvent.hpp:32:19: error: db pragma 'polymorphic' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/DoorEvent.hpp:32:31: error: db pragma 'callback' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AccessPointEvent.hpp:32:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AccessPointEvent.hpp:32:19: error: db pragma 'polymorphic' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/AccessPointEvent.hpp:32:31: error: db pragma 'callback' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/UpdateEvent.hpp:32:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/UpdateEvent.hpp:32:19: error: db pragma 'polymorphic' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/UpdateEvent.hpp:32:31: error: db pragma 'callback' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/ZoneEvent.hpp:32:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/ZoneEvent.hpp:32:19: error: db pragma 'polymorphic' is not associated with a declaration
/home/abauer/build/leosac/src/core/audit/ZoneEvent.hpp:32:31: error: db pragma 'callback' is not associated with a declaration
/home/abauer/build/leosac/src/core/credentials/RFIDCard.hpp:32:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/core/credentials/RFIDCard.hpp:32:19: error: db pragma 'polymorphic' is not associated with a declaration
/home/abauer/build/leosac/src/core/credentials/RFIDCard.hpp:32:31: error: db pragma 'optimistic' is not associated with a declaration
/home/abauer/build/leosac/src/core/credentials/PinCode.hpp:32:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/core/credentials/PinCode.hpp:32:19: error: db pragma 'polymorphic' is not associated with a declaration
/home/abauer/build/leosac/src/core/credentials/PinCode.hpp:32:31: error: db pragma 'optimistic' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/Device.hpp:42:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/Device.hpp:42:19: error: db pragma 'callback' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/Device.hpp:43:5: error: db pragma 'optimistic' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/Device.hpp:43:16: error: db pragma 'polymorphic' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/Device.hpp:43:28: error: db pragma 'table' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/Device.hpp:43:28: error: db pragma 'table' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/GPIO.hpp:40:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/GPIO.hpp:40:19: error: db pragma 'callback' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/GPIO.hpp:40:49: error: db pragma 'table' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/GPIO.hpp:40:49: error: db pragma 'table' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/RFIDReader.hpp:41:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/RFIDReader.hpp:41:19: error: db pragma 'callback' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/RFIDReader.hpp:41:49: error: db pragma 'table' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/RFIDReader.hpp:41:49: error: db pragma 'table' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/LED.hpp:35:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/LED.hpp:35:19: error: db pragma 'callback' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/LED.hpp:35:49: error: db pragma 'table' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/LED.hpp:35:49: error: db pragma 'table' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/Buzzer.hpp:41:12: error: db pragma 'object' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/Buzzer.hpp:41:19: error: db pragma 'callback' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/Buzzer.hpp:41:49: error: db pragma 'table' is not associated with a declaration
/home/abauer/build/leosac/src/hardware/Buzzer.hpp:41:49: error: db pragma 'table' is not associated with a declaration
src/db/CMakeFiles/leosac_db.dir/build.make:446: recipe for target 'src/db/core-schema-sqlite.cxx' failed
make[2]: *** [src/db/core-schema-sqlite.cxx] Error 1
CMakeFiles/Makefile2:284: recipe for target 'src/db/CMakeFiles/leosac_db.dir/all' failed
make[1]: *** [src/db/CMakeFiles/leosac_db.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
xaqq commented 6 years ago

Hello,

I was able to reproduce on a fresh Strech install. It seems the issue you mention is not resolved or has happened again.

I tried to build the ODB compiler myself using gcc-6 provided by raspbian, but it failed.

knight-of-ni commented 6 years ago

Thanks for the response. Odb failed to build on my end using gcc 6 as well. I forgot what the exact error was. I seem to recall odb was looking for some function call not (or perhaps no longer) in gcc 6.

Trying to build leosac with gcc 4.9 produced a different error. Something about time or date... googling revealed the issue was the compiler... so gcc 5 it is then...

Last night I managed to get the development branch to build, using Debian Jessie after I installed gcc-5, g++-5, and gcc-5-plugin-dev from debian unstable, but I also had to rebuild all the odb and boost libraries as well, since they depend on the version of gcc. It was not a pretty sight, but it did succeed.

Today I'm trying to build on Debian Stretch w/ the same gcc-5 packages.

xaqq commented 6 years ago

Hey,

Yes I confirm that I also had issue with stock gcc (4.9) and didn't manage to build. I'm glad you managed to build natively on Jessie. It's a start :D

Today I'm trying to build on Debian Stretch w/ the same gcc-5 packages.

Did it work? If you got develop to build on Stretch I'd be interested to see a mini guide so we can add it to the documentation as it would be really helpful to others.

knight-of-ni commented 6 years ago

Right now I'm experiencing more failure than success as I go through a learning curve. I stopped working on Stretch after I got a redeclaration error during the build, which I did not receive when performing the same steps on Jessie. I know that description is not very specific. I plan to come back to that.

In the meantime, I discovered the Docker scripts for this project. That is what I'm playing with right now. The documentation under /doc/guides describes a tool called leosaccli as the glue that ties all the Docker bits together. However, I cannot find leosaccli in the project. Is this another case of outdated documentation, or am I just not looking in the right place?

If I can work my way to the point where I can consistently build the develop branch, then I'd be glad to give back to this project. The (missing) cmake library checks and the documentation could definitely use some love. If you are looking for volunteers, that is something I can help with, once I get a better understanding of this project.

xaqq commented 6 years ago

Yes, the docker script are still experimental I would say. I've pushed the updated documentation on gh-pages now to reflect what was in the repository.

At http://www.leosac.com/doc_output/develop/html/d2/de2/page_guide_docker_cc.html you can find a partial guide for cross-compiling using the leosaccli tool. However documentation is incomplete.

The idea is:

(1): To build the cross_compile container you need some "cross-compile-resources": that's basically the tar version of required libraries. See https://github.com/leosac/bin-resources. So you would need to clone https://github.com/leosac/bin-resources from leosac root directory I believe, then run leosaccli dev docker build cross_compile.

If you are looking for volunteers, that is something I can help with, once I get a better understanding of this project.

Lots of things needs to be improved in this project, therefore contributions are always welcomed :D. Build system and doc being an important part of this.

xaqq commented 6 years ago

Hello,

I am pinging everyone who lately had trouble with installing/building/running leosac: @knnniggett @sirtoggle @fusionfoto

I cross-compiled the current develop and made a (pre) release. https://github.com/leosac/leosac/releases/tag/v0.7.0

I built it from a fresh x64vm using the leosac-cli and docker. I made a few commits along the way to (hack)fix issues.

I would be great if you could try to run it and provide feedback !

knight-of-ni commented 6 years ago

@xaqq Thank you for all the work you've put into this project. This project stands out with the number of features, support for industry standard wiegand readers, and ability to be expanded further through modules.

I have successfully built the 0.7.0 pre-release and have it running on a raspberry pi 2, following these instructions: https://leosac.github.io/leosac-doc/doc_output/develop/d2/de2/page_guide_docker_cc.html

I went ahead and created the container using leosaccli dev docker build cross_compile even though the instructions did not mention that. Is this step no longer required?

It looks like an old page fragment is present in the github.io site: https://leosac.github.io/leosac-doc/doc_output/develop/d9/d24/md_doc_guides_guide_full_cc.html

Not sure why that page exists since there is no corresponding source file under the doc subfolder.

knight-of-ni commented 6 years ago

UPDATE: Good news. Last night I was able to track down why the odb package in the debian repos triggers these error messages. Even better, it appears this exact issue has already been reported to the odb developers and fixed.

I've reported the issue to debian, and included a patch which fixes it: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=889664

This now makes it possible to, once again, build the latest leosac into a package w/o building anything from-source. There is still more work to be done to make this possible, but I did want to give the project developers a heads up that this is something I plan to work on. As a temporary measure, I'll build odb packages for amd64 & armhf and make them accessible.

xaqq commented 6 years ago

I went ahead and created the container using leosaccli dev docker build cross_compile even though the instructions did not mention that. Is this step no longer required?

This step is still required, might be a documentation / documentation generation issue. The whole cross-compile run through the this docker container so it is required to have it.

Regarding ODB packages issue, this is indeed good news ! Would be nice indeed to be able to build from the raspberry natively (even tho its slow). Thanks for researching this issue :)

knight-of-ni commented 6 years ago

Going to close this issue out since it falls into the category of "not our bug".

knight-of-ni commented 6 years ago

Good news! Debian patched the ODB package in their repo and the Debain bug report is now resolved: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=889664

I'm not sure how long this will take to trickle down to the Raspbian repos.