From blob84 at gmail.com Tue Feb 6 11:57:20 2018 From: blob84 at gmail.com (blob blob) Date: Tue Feb 6 11:58:38 2018 Subject: [odb-users] boost profile not found Message-ID: Hello I'm trying to compile the boost example, when I compile with odb i get: odb -v -d mysql --profile boost --generate-schema --generate-query --generate-session employee.hxx Profile search paths: /usr/include/c++/6 /usr/include/x86_64-linux-gnu/c++/6 /usr/include/c++/6/backward /usr/lib/gcc/x86_64-linux-gnu/6/include /usr/local/include /usr/lib/gcc/x86_64-linux-gnu/6/include-fixed /usr/include/x86_64-linux-gnu /usr/include odb: error: unable to locate options file for profile 'boost' From jnw at xs4all.nl Tue Feb 6 12:11:04 2018 From: jnw at xs4all.nl (Jeroen N. Witmond) Date: Tue Feb 6 12:12:23 2018 Subject: [odb-users] boost profile not found In-Reply-To: References: Message-ID: On 2018-02-06 17:57, blob blob wrote: > Hello I'm trying to compile the boost example, > when I compile with odb i get: > odb -v -d mysql --profile boost --generate-schema --generate-query > --generate-session employee.hxx > Profile search paths: > /usr/include/c++/6 > /usr/include/x86_64-linux-gnu/c++/6 > /usr/include/c++/6/backward > /usr/lib/gcc/x86_64-linux-gnu/6/include > /usr/local/include > /usr/lib/gcc/x86_64-linux-gnu/6/include-fixed > /usr/include/x86_64-linux-gnu > /usr/include > odb: error: unable to locate options file for profile 'boost' You did not specify which OS or distribution you use, but my guess is that you need to install the packages named something like libodb-boost and libodb-boost-dev. HTH. Jeroen. From blob84 at gmail.com Tue Feb 6 12:36:10 2018 From: blob84 at gmail.com (blob blob) Date: Tue Feb 6 12:37:28 2018 Subject: Fwd: [odb-users] boost profile not found In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: blob blob Date: 2018-02-06 18:32 GMT+01:00 Subject: Re: [odb-users] boost profile not found To: "Jeroen N. Witmond" Thank you for your interest. I am using debian 9 and libodb-boost and libodb-boost-dev are installed. 2018-02-06 18:11 GMT+01:00 Jeroen N. Witmond : > On 2018-02-06 17:57, blob blob wrote: > >> Hello I'm trying to compile the boost example, >> when I compile with odb i get: >> odb -v -d mysql --profile boost --generate-schema --generate-query >> --generate-session employee.hxx >> Profile search paths: >> /usr/include/c++/6 >> /usr/include/x86_64-linux-gnu/c++/6 >> /usr/include/c++/6/backward >> /usr/lib/gcc/x86_64-linux-gnu/6/include >> /usr/local/include >> /usr/lib/gcc/x86_64-linux-gnu/6/include-fixed >> /usr/include/x86_64-linux-gnu >> /usr/include >> odb: error: unable to locate options file for profile 'boost' >> > > You did not specify which OS or distribution you use, but my guess is that > you need to install the packages named something like libodb-boost and > libodb-boost-dev. > > HTH. > > Jeroen. > From mr-l-ik at yandex.ru Wed Feb 7 00:17:29 2018 From: mr-l-ik at yandex.ru (=?utf-8?B?0KHQsNCy0LjRhtC60LjQuSDQrtGA0LjQuQ==?=) Date: Wed Feb 7 00:18:51 2018 Subject: [odb-users] Problem with building odb compiler 2.4 with mingw-w64 for Windows x86_64 Message-ID: <913531517980649@web34o.yandex.ru> Hello, I am trying to compile odb compiler for x86_64 for windows with mingw-w64. We use gcc 4.8.3 for building our main project so I must try to use it first. I was trying to build gcc 4.8.3 with enable-plugin myself using nixman mingw build script from https://github.com/niXman/mingw-builds. I saw that there is such patch https://patchwork.ozlabs.org/patch/837713/ so I use binutils 2.30. After success building of mingw "gcc --version" show me --enable-plugin flag, but ./configure of odb still telling me that my gcc does not support plugin. So I get version with enable-plugin (I suppose) from https://sourceforge.net/projects/tumagcc/files/0.8a/gcc-474pre_483pre.7z. I was able to configure odb with that gcc build, but after make procedure I get static odb.a plugin and odb.exe can't use it. During make procedure I mentioned such warning: "undefined symbols not allowed in x86_64-w64-mingw32 shared libraries" Then I added -no-undefined to odb_la_LDFLAGS in /odb/Makefile.am and get heap of "undefined reference" mistakes such as: ... "undefined reference to `input_location'" "undefined reference to `cpp_get_callbacks(cpp_reader*)'" "undefined reference to `cpp_get_token(cpp_reader*)'" "undefined reference to `get_identifier(char const*)'" "undefined reference to `cpp_destroy(cpp_reader*)'" "undefined reference to `expand_location(unsigned int)'" "undefined reference to `cutl::compiler::cxx_indenter::keyword(cutl::compiler::cxx_indenter::keyword_type)'" "undefined reference to `__imp__ZTVN4cutl9container7no_nodeE'" ... I fix some cutl undefined reference by adding LIBCUTL_EXPORT in /odb/re.hxx, but I can't do anithing with: ... "undefined reference to `current_scope()'" "undefined reference to `tree_code_type'" "undefined reference to `current_scope()'" "undefined reference to `global_namespace'" ... I can provide full log of errors: https://yadi.sk/i/ulOVXzpy3SAGoP My questions are: May be there is prebuild version of odb compiler for x86_64 windows somewhere? Could you please help me some way to build gcc of any version with enable-plugin as mentioned in https://patchwork.ozlabs.org/patch/837713/? And is it even possible to build odb compiler with gcc 4.8.3 (or any kind) mingw-w64 for x86_64 windows? :) P.S.: I have to change "struct stat st" on "struct __stat64 st" in /configure/ltmain.sh. I suppose it relate to mingw gcc features. From blob84 at gmail.com Wed Feb 7 04:07:18 2018 From: blob84 at gmail.com (blob blob) Date: Wed Feb 7 04:08:38 2018 Subject: Fwd: [odb-users] boost profile not found In-Reply-To: References: Message-ID: I have compiled with odb without the profile boost : *odb -v -d mysql -I /usr/include/boost and it compiles --generate-schema --generate-query --generate-session employee.hxx* but when I compile with g++ the employess-odb.cxx file I get these errors: *employee-odb.cxx: In static member function ?static void odb::access::object_traits_impl::employees_traits::init(odb::access::object_traits_impl::employees_traits::value_type&, const odb::access::object_traits_impl::employees_traits::data_image_type&, odb::database*)?:* *employee-odb.cxx:134:23: error: no matching function for call to ?odb::mysql::value_traits::set_value(odb::access::object_traits::id_type&, const buffer&, const long unsigned int&, const my_bool&)?* * i.value_null);* 2018-02-06 18:36 GMT+01:00 blob blob : > > ---------- Forwarded message ---------- > From: blob blob > Date: 2018-02-06 18:32 GMT+01:00 > Subject: Re: [odb-users] boost profile not found > To: "Jeroen N. Witmond" > > > Thank you for your interest. > I am using debian 9 and libodb-boost and libodb-boost-dev are installed. > > > 2018-02-06 18:11 GMT+01:00 Jeroen N. Witmond : > >> On 2018-02-06 17:57, blob blob wrote: >> >>> Hello I'm trying to compile the boost example, >>> when I compile with odb i get: >>> odb -v -d mysql --profile boost --generate-schema --generate-query >>> --generate-session employee.hxx >>> Profile search paths: >>> /usr/include/c++/6 >>> /usr/include/x86_64-linux-gnu/c++/6 >>> /usr/include/c++/6/backward >>> /usr/lib/gcc/x86_64-linux-gnu/6/include >>> /usr/local/include >>> /usr/lib/gcc/x86_64-linux-gnu/6/include-fixed >>> /usr/include/x86_64-linux-gnu >>> /usr/include >>> odb: error: unable to locate options file for profile 'boost' >>> >> >> You did not specify which OS or distribution you use, but my guess is >> that you need to install the packages named something like libodb-boost and >> libodb-boost-dev. >> >> HTH. >> >> Jeroen. >> > > > From boris at codesynthesis.com Fri Feb 9 08:44:03 2018 From: boris at codesynthesis.com (Boris Kolpackov) Date: Fri Feb 9 08:45:23 2018 Subject: Fwd: [odb-users] boost profile not found In-Reply-To: References: Message-ID: blob blob writes: > I am using debian 9 and libodb-boost and libodb-boost-dev are installed. > > > Profile search paths: > > /usr/include/c++/6 > > /usr/include/x86_64-linux-gnu/c++/6 > > /usr/include/c++/6/backward > > /usr/lib/gcc/x86_64-linux-gnu/6/include > > /usr/local/include > > /usr/lib/gcc/x86_64-linux-gnu/6/include-fixed > > /usr/include/x86_64-linux-gnu > > /usr/include Check if there is the odb/boost.options subdirectory/file in any of these locations. If there isn't and you have installed libodb-boost from the Debian -dev package, then this package is broken. In fact, I just checked, and it is indeed broken: https://packages.debian.org/stretch/amd64/libodb-boost-dev/filelist There should be /usr/include/odb/boost.options. I suggest that you file a bug report with the package maintainer. Boris From boris at codesynthesis.com Fri Feb 9 08:58:51 2018 From: boris at codesynthesis.com (Boris Kolpackov) Date: Fri Feb 9 09:00:11 2018 Subject: [odb-users] Problem with building odb compiler 2.4 with mingw-w64 for Windows x86_64 In-Reply-To: <913531517980649@web34o.yandex.ru> References: <913531517980649@web34o.yandex.ru> Message-ID: ???????? ???? writes: > I am trying to compile odb compiler for x86_64 for windows with mingw-w64. > > [...] > > My questions are: > > May be there is prebuild version of odb compiler for x86_64 windows > somewhere? There is a 32-bit (i686) version that should be perfectly usable on 64-bit Windows: https://codesynthesis.com/products/odb/download.xhtml > And is it even possible to build odb compiler with gcc 4.8.3 (or any > kind) mingw-w64 for x86_64 windows? :) We've actually implemented "proper" GCC plugin support for Windows[1], it has been merged, and will be available in the upcoming GCC 8.1.0 release. We've also back-ported the patch to GCC 7.2.0 and our build2-mingw distribution[2] includes the build of GCC with plugins enabled. We've also implemented initial support for building ODB as a dynamic plugin for Windows using the build2 build system. It is still a bit rough around the edges, but usable. So if you would like to build ODB yourself, let me know and I will give you some pointers (it will have to be the current master, however). [1] https://gcc.gnu.org/ml/gcc-patches/2017-11/msg01040.html [2] https://stage.build2.org/0/ Boris From mr-l-ik at yandex.ru Sun Feb 11 21:02:07 2018 From: mr-l-ik at yandex.ru (=?utf-8?B?0KHQsNCy0LjRhtC60LjQuSDQrtGA0LjQuQ==?=) Date: Sun Feb 11 21:03:43 2018 Subject: [odb-users] Problem with building odb compiler 2.4 with mingw-w64 for Windows x86_64 In-Reply-To: References: <913531517980649@web34o.yandex.ru> Message-ID: <184231518400927@web60g.yandex.ru> Thank you for your answer! I will return to building our project soon, so I will try to use your build2-mingw distribution[1]. As soon as new questions have appear I will ask you. [1] https://stage.build2.org/0/ Yury 09.02.2018, 16:58, "Boris Kolpackov" : > ???????? ???? writes: > >> ?I am trying to compile odb compiler for x86_64 for windows with mingw-w64. >> >> ?[...] >> >> ?My questions are: >> >> ?May be there is prebuild version of odb compiler for x86_64 windows >> ?somewhere? > > There is a 32-bit (i686) version that should be perfectly usable on > 64-bit Windows: > > https://codesynthesis.com/products/odb/download.xhtml > >> ?And is it even possible to build odb compiler with gcc 4.8.3 (or any >> ?kind) mingw-w64 for x86_64 windows? :) > > We've actually implemented "proper" GCC plugin support for Windows[1], > it has been merged, and will be available in the upcoming GCC 8.1.0 > release. We've also back-ported the patch to GCC 7.2.0 and our > build2-mingw distribution[2] includes the build of GCC with plugins > enabled. > > We've also implemented initial support for building ODB as a dynamic > plugin for Windows using the build2 build system. It is still a bit > rough around the edges, but usable. So if you would like to build > ODB yourself, let me know and I will give you some pointers (it will > have to be the current master, however). > > [1] https://gcc.gnu.org/ml/gcc-patches/2017-11/msg01040.html > [2] https://stage.build2.org/0/ > > Boris From lazarevri at gmail.com Mon Feb 12 06:53:31 2018 From: lazarevri at gmail.com (=?UTF-8?B?0KDQvtC80LDQvSDQm9Cw0LfQsNGA0LXQsg==?=) Date: Mon Feb 12 07:41:41 2018 Subject: [odb-users] ODB doesn't generate classes when glibc version >= 2.26 Message-ID: I have glibc 2.26 and ODB doesnt generate classes for working with database. roman@RomanUB:~/Eclipse-Projects/MyPr/src/Model$ odb -d mssql --generate-query CallTask.h In file included from /usr/lib/odb/x86_64-linux-gnu/include/c++/4.9.3/cwchar:44:0, from /usr/lib/odb/x86_64-linux-gnu/include/c++/4.9.3/bits/postypes.h:40, from /usr/lib/odb/x86_64-linux-gnu/include/c++/4.9.3/bits/char_traits.h:40, from /usr/lib/odb/x86_64-linux-gnu/include/c++/4.9.3/string:40, from :7: /usr/lib/odb/x86_64-linux-gnu/lib/gcc/x86_64-linux-gnu/4.9.3/include-fixed/wchar.h:175:22: fatal error: xlocale.h: No such file or directory # include ^ compilation terminated. Does anyone have a workaround? From timo at rothenpieler.org Mon Feb 12 10:15:56 2018 From: timo at rothenpieler.org (Timo Rothenpieler) Date: Mon Feb 12 10:17:34 2018 Subject: [odb-users] ODB doesn't generate classes when glibc version >= 2.26 In-Reply-To: References: Message-ID: <84cd86cf-2def-660a-4f41-f8334f3590f3@rothenpieler.org> Am 12.02.2018 um 12:53 schrieb ????? ???????: > I have glibc 2.26 and ODB doesnt generate classes for working with > database. > > roman@RomanUB:~/Eclipse-Projects/MyPr/src/Model$ odb -d mssql > --generate-query CallTask.h > In file included from > /usr/lib/odb/x86_64-linux-gnu/include/c++/4.9.3/cwchar:44:0, > from > /usr/lib/odb/x86_64-linux-gnu/include/c++/4.9.3/bits/postypes.h:40, > from > /usr/lib/odb/x86_64-linux-gnu/include/c++/4.9.3/bits/char_traits.h:40, > from > /usr/lib/odb/x86_64-linux-gnu/include/c++/4.9.3/string:40, > from :7: > /usr/lib/odb/x86_64-linux-gnu/lib/gcc/x86_64-linux-gnu/4.9.3/include-fixed/wchar.h:175:22: > fatal error: xlocale.h: No such file or directory > # include > ^ > compilation terminated. > > Does anyone have a workaround? > If I remember the change in glibc correctly, you can just remove/comment out the include for xlocale.h, and things should work as-is. Stuff was moved to stdlib.h and xlocale.h was dropped. Alternatively create an empty xlocale.h somewhere in your include path. If that causes errors, fill the empty xlocale.h with an include for stdlib.h, but that should normally already be included elsewhere. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3994 bytes Desc: S/MIME Cryptographic Signature Url : https://codesynthesis.com/pipermail/odb-users/attachments/20180212/4c6cb9a7/smime.bin From davejohansen at gmail.com Mon Feb 12 10:28:45 2018 From: davejohansen at gmail.com (Dave Johansen) Date: Mon Feb 12 10:30:24 2018 Subject: [odb-users] libcutl FTBFS with Boost 1.66 Message-ID: https://bugzilla.redhat.com/show_bug.cgi?id=1540742 From boris at codesynthesis.com Thu Feb 15 07:27:45 2018 From: boris at codesynthesis.com (Boris Kolpackov) Date: Thu Feb 15 07:29:24 2018 Subject: [odb-users] libcutl FTBFS with Boost 1.66 In-Reply-To: References: Message-ID: Dave Johansen writes: > https://bugzilla.redhat.com/show_bug.cgi?id=1540742 Thanks for the heads-up, I've added a comment to the report. > Without any maintainer response for almost 2 weeks [...] Is there any way to add my email to the "maintainer" list so that I get automatically notified about issues like this? Thanks, Boris From davejohansen at gmail.com Thu Feb 15 12:51:57 2018 From: davejohansen at gmail.com (Dave Johansen) Date: Thu Feb 15 12:53:47 2018 Subject: [odb-users] libcutl FTBFS with Boost 1.66 In-Reply-To: References: Message-ID: On Thu, Feb 15, 2018 at 5:27 AM, Boris Kolpackov wrote: > Dave Johansen writes: > > > https://bugzilla.redhat.com/show_bug.cgi?id=1540742 > > Thanks for the heads-up, I've added a comment to the report. > Thanks. > > Without any maintainer response for almost 2 weeks [...] > > Is there any way to add my email to the "maintainer" list so > that I get automatically notified about issues like this? > https://fedoraproject.org/wiki/Using_the_package_database#How_do_I_sign_up_for_a_package.3F From javier.gutierrez at web.de Mon Feb 26 12:21:38 2018 From: javier.gutierrez at web.de (Javier Gutierrez) Date: Mon Feb 26 12:24:08 2018 Subject: [odb-users] UNIONS Message-ID: <3629f5da-b149-0c3f-819b-e3cf0468d1eb@web.de> Hello there again, Here another question, I would like to know if odb-orm supports UNIONS, I could not find any information anywhere regarding this. In case it's not supported do you offer any alternative ? Thanks a lot in advance, Javier From boris at codesynthesis.com Tue Feb 27 03:03:43 2018 From: boris at codesynthesis.com (Boris Kolpackov) Date: Tue Feb 27 03:06:00 2018 Subject: [odb-users] UNIONS In-Reply-To: <3629f5da-b149-0c3f-819b-e3cf0468d1eb@web.de> References: <3629f5da-b149-0c3f-819b-e3cf0468d1eb@web.de> Message-ID: Javier Gutierrez writes: > Here another question, I would like to know if odb-orm supports UNIONS, I > could not find any information anywhere regarding this. In case it's not > supported do you offer any alternative ? You should be able to handle SQL UNION using a native view (Section 10.6 in the manual). Boris