Bug 1350948 - odb compiler fails to load libodbc with undefined symbol: _Z21lookup_qualified_nameP9tree_nodeS0_bbb
Summary: odb compiler fails to load libodbc with undefined symbol: _Z21lookup_qualifie...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: odb
Version: 24
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Dave Johansen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-28 19:47 UTC by Serge Robyns
Modified: 2016-07-12 15:01 UTC (History)
2 users (show)

Fixed In Version: odb-2.4.0-14.fc24
Clone Of:
Environment:
Last Closed: 2016-07-12 15:01:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Serge Robyns 2016-06-28 19:47:16 UTC
Description of problem:
When invoking the odb compiler fails while trying to load "/usr/lib/gcc/x86_64-redhat-linux/6.1.1/plugin/odb.so".

Version-Release number of selected component (if applicable):
libodb.x86_64                        2.4.0-5.fc24


How reproducible:

Steps to Reproduce:
1. invoke odb with the following command "$ odb --std c++11 --profile boost/date-time --database sqlite --generate-query --generate-schema --schema-format sql --hxx-prologue '#include "My-traits.hxx"' some-class.h
"

Actual results:
cc1plus: error: cannot load plugin /usr/lib/gcc/x86_64-redhat-linux/6.1.1/plugin/odb.so
   /usr/lib/gcc/x86_64-redhat-linux/6.1.1/plugin/odb.so: undefined symbol: _Z21lookup_qualified_nameP9tree_nodeS0_bbb



Expected results:
odb compiles the some-class.h and generates the resulting c++ files.

Additional info:
n/a

Comment 1 Serge Robyns 2016-06-28 19:49:22 UTC
This is a regression maybe induced with the lastest c++ and co updates.

Comment 2 Dave Johansen 2016-06-29 04:20:35 UTC
2.4.0-13 is the current version in Fedora 24, so can you update and make sure you're still having this problem?

Comment 3 Serge Robyns 2016-06-29 08:59:34 UTC
There are no updates available in the update respos (non testing).
Are you sure this version has been "promoted"?

Comment 5 Serge Robyns 2016-06-29 19:44:06 UTC
Seems not to solve the issue.  the ODB package was already in the right version.

Below my latest attempt and DNF output.  FYI, I updated from F24 Beta when F24 went official a week or so ago.  The issue appeared this week after I've seen udaptes on gcc and libs.


[XXXX@fedora odb]$ dnf repolist
Last metadata expiration check: 7 days, 11:58:01 ago on Wed Jun 22 09:40:03 2016.
repo id                    repo name                                      status
*fedora                    Fedora 24 - x86_64                             49,709
fedora-cisco-openh264      Fedora 24 openh264 (From Cisco) - x86_64            7
*updates                   Fedora 24 - x86_64 - Updates                        0

[XXXXX@fedora odb]$ dnf list install odb
Last metadata expiration check: 7 days, 11:51:14 ago on Wed Jun 22 09:40:03 2016.
Installed Packages
odb.x86_64                         2.4.0-13.fc24                         @fedora

[XXXXX@fedora odb]$ odb --version
ODB object-relational mapping (ORM) compiler for C++ 2.4.0
Copyright (c) 2009-2015 Code Synthesis Tools CC
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[XXXX@fedora odb]$ odb --std c++11 --profile boost/date-time --database sqlite --generate-query --generate-schema --schema-format sql --hxx-prologue '#include "My-traits.hxx"' some-class.h
cc1plus: error: cannot load plugin /usr/lib/gcc/x86_64-redhat-linux/6.1.1/plugin/odb.so
   /usr/lib/gcc/x86_64-redhat-linux/6.1.1/plugin/odb.so: undefined symbol: _Z21lookup_qualified_nameP9tree_nodeS0_bbb

Comment 6 Serge Robyns 2016-07-05 12:16:02 UTC
Is there any update?
This issue is a blocker as I cannot generate new odb classes anymore.

Comment 7 Serge Robyns 2016-07-05 16:47:46 UTC
As I believed this "regression" was introduced after a gcc and set of libraries I gave rebuilding the RPM from the SRPM a chance.

And it did solve the issue.  Below the steps I used.

sudo dnf install rpmdevtools
dnf download --source odb
rpmdev-setuptree 
sudo dnf builddep odb
rpmbuild --rebuild odb-2.4.0-13.fc24.src.rpm 
sudo dnf reinstall ./odb-2.4.0-13.fc24.x86_64.rpm 
odb --std c++11 --profile boost/date-time --database sqlite --generate-query some-class.h

Comment 8 Dave Johansen 2016-07-05 16:50:24 UTC
Sorry for the delay. We're in the middle of a move and I've had very limited time for doing this sort of thing. I'll kick of a rebuild tonight.

Comment 9 Serge Robyns 2016-07-06 10:31:46 UTC
No worries, I've found my workaround.
Wondering how this one "escaped" from QA.

Comment 10 Fedora Update System 2016-07-08 16:12:22 UTC
odb-2.4.0-14.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-327e7d71a3

Comment 11 Fedora Update System 2016-07-10 15:57:46 UTC
odb-2.4.0-14.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-327e7d71a3

Comment 12 Serge Robyns 2016-07-11 08:52:03 UTC
Package (in testing) works fine.
Bug can be closed.

Comment 13 Dave Johansen 2016-07-11 15:59:15 UTC
The karma threshold has been reached and the update has been submitted to stable, so the bug will close automatically when that happens. Thanks for reporting this and helping to get it fixed.

Comment 14 Fedora Update System 2016-07-12 15:01:04 UTC
odb-2.4.0-14.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.