You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Pål Skjager Løberg <pa...@fourc.eu> on 2016/01/21 13:51:56 UTC

Unresolved symbols in qpidd from DEB package

I have been using the packages from
https://launchpad.net/~mcpierce/+archive/ubuntu/qpid-testing and lately
https://launchpad.net/~qpid/+archive/ubuntu/released on the client side for
a while. Now I need a qpidd for testing locally, but I suspect there are
some dependency issues with the qpid-cpp package as /usr/sbin/qpidd is
giving me unresolved symbols:

  /usr/sbin/qpidd: symbol lookup error: /usr/sbin/qpidd: undefined symbol:
_ZN4qpid12create_valueISsEEPN5boost15program_options14value_semanticERT_RKSs

This seems to be related to libboost_program_options.so that I have in
1.54.0.

Package: libboost-program-options1.54.0
...
Version: 1.54.0-4ubuntu3.1

What would be the correct version to use here? There should probably be a
dependency in the DEB for this as well?

Thanks,

 -- Paul

Re: Unresolved symbols in qpidd from DEB package

Posted by Matt Broadstone <mb...@gmail.com>.
On Thu, Jan 21, 2016 at 9:13 AM, Pål Skjager Løberg <pa...@fourc.eu> wrote:

> Thanks Matt,
>
> it seems like that did the trick. Not sure what was the issue with the
> boost lib I had installed, but something was obviously fishy with it.
>
>
Glad to hear it!

There are upcoming releases for both proton (0.12) and qpidd (0.35). The
debian packaging is sort of "best effort" these days, but I'll try to get
involved with the redhat folks to clean up the repos when those releases
are made. I suspect the real issue here is that installing from the
"release" PPA is somehow incorrect vs the "testing", but again I'll check
that at release time.

Matt


> $ sudo apt-get install qpidd
> > Reading package lists... Done
> > Building dependency tree
> > Reading state information... Done
> > The following extra packages will be installed:
> >   libboost-program-options1.54.0 libqpid-proton4 libqpidbroker2
> > libqpidcommon2
> >   libqpidtypes1
> > The following NEW packages will be installed:
> >   libboost-program-options1.54.0 libqpid-proton4 libqpidbroker2
> > libqpidcommon2
> >   libqpidtypes1 qpidd
> > 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
> > Need to get 115 kB/2.311 kB of archives.
> > After this operation, 9.525 kB of additional disk space will be used.
> > Do you want to continue? [Y/n]
> > Get:1 http://no.archive.ubuntu.com/ubuntu/ trusty-updates/main
> > libboost-program-options1.54.0 amd64 1.54.0-4ubuntu3.1 [115 kB]
> > Fetched 115 kB in 0s (1.379 kB/s)
> > Preconfiguring packages ...
> > Selecting previously unselected package
> > libboost-program-options1.54.0:amd64.
> > (Reading database ... 349830 files and directories currently installed.)
> > Preparing to unpack
> > .../libboost-program-options1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
> > Unpacking libboost-program-options1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
> > Selecting previously unselected package libqpid-proton4:amd64.
> > Preparing to unpack .../libqpid-proton4_0.11.1-2trusty+qpid1_amd64.deb
> ...
> > Unpacking libqpid-proton4:amd64 (0.11.1-2trusty+qpid1) ...
> > Selecting previously unselected package libqpidtypes1:amd64.
> > Preparing to unpack .../libqpidtypes1_0.34-2trusty+qpid1_amd64.deb ...
> > Unpacking libqpidtypes1:amd64 (0.34-2trusty+qpid1) ...
> > Selecting previously unselected package libqpidcommon2:amd64.
> > Preparing to unpack .../libqpidcommon2_0.34-2trusty+qpid1_amd64.deb ...
> > Unpacking libqpidcommon2:amd64 (0.34-2trusty+qpid1) ...
> > Selecting previously unselected package libqpidbroker2:amd64.
> > Preparing to unpack .../libqpidbroker2_0.34-2trusty+qpid1_amd64.deb ...
> > Unpacking libqpidbroker2:amd64 (0.34-2trusty+qpid1) ...
> > Selecting previously unselected package qpidd.
> > Preparing to unpack .../qpidd_0.34-2trusty+qpid1_amd64.deb ...
> > Unpacking qpidd (0.34-2trusty+qpid1) ...
> > Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
> > Processing triggers for ureadahead (0.100.0-16) ...
> > Setting up libboost-program-options1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
> > Setting up libqpid-proton4:amd64 (0.11.1-2trusty+qpid1) ...
> > Setting up libqpidtypes1:amd64 (0.34-2trusty+qpid1) ...
> > Setting up libqpidcommon2:amd64 (0.34-2trusty+qpid1) ...
> > Setting up libqpidbroker2:amd64 (0.34-2trusty+qpid1) ...
> > Setting up qpidd (0.34-2trusty+qpid1) ...
>
>
>  -- Paul
>
>
> On 21 January 2016 at 14:51, Matt Broadstone <mb...@gmail.com> wrote:
>
> > On Thu, Jan 21, 2016 at 8:44 AM, Pål Skjager Løberg <pa...@fourc.eu>
> > wrote:
> > >
> > > Hi Matt,
> > >
> > > I'm on 14.04.3 LTS (trusty). Plenty of Boost packages installed:
> > >
> > > ii  libboost-atomic1.54.0:amd64
> > > 1.54.0-4ubuntu3.1
> > > ii  libboost-chrono1.54.0:amd64
> > > 1.54.0-4ubuntu3.1
> > > ii  libboost-date-time1.53.0:amd64
> > >  1.53.0-6+exp3ubuntu8
> > > ii  libboost-date-time1.54.0:amd64
> > >  1.54.0-4ubuntu3.1
> > > ii  libboost-filesystem1.54.0:amd64
> > > 1.54.0-4ubuntu3.1
> > > ii  libboost-locale1.54.0:amd64
> > > 1.54.0-4ubuntu3.1
> > > ii  libboost-log1.54.0
> > >  1.54.0-4ubuntu3.1
> > > ii  libboost-program-options1.54.0:amd64
> > >  1.54.0-4ubuntu3.1
> > > ii  libboost-python1.54.0:amd64
> > > 1.54.0-4ubuntu3.1
> > > ii  libboost-regex1.54.0:amd64
> > >  1.54.0-4ubuntu3.1
> > > ii  libboost-serialization1.54.0:amd64
> > >  1.54.0-4ubuntu3.1
> > > ii  libboost-system1.53.0:amd64
> > > 1.53.0-6+exp3ubuntu8
> > > ii  libboost-system1.54.0:amd64
> > > 1.54.0-4ubuntu3.1
> > > ii  libboost-thread1.54.0:amd64
> > > 1.54.0-4ubuntu3.1
> > >
> > > (I excluded the -dev packages as this seems to be a runtime issue).
> > >
> > > Gcc, g++, libstdc++ etc. is 4.8.4-2ubuntu1~14.04.
> > >
> > > Libc:
> > >
> > > ii  libc6:amd64                      2.19-0ubuntu6.6       amd64
> > >       Embedded GNU C Library: Shared libraries
> > > ii  libc6:i386                       2.19-0ubuntu6.6       i386
> > >      Embedded GNU C Library: Shared libraries
> > >
> > > ... Trying to thing what else might be relevant...
> > >
> > >
> > > I have also tried building the deb from source as well (apt-get source
> -b
> > > qpidd) but that failed after a while. Could be a Gcc version issue...
> > >
> > > /home/pallo/tmp/qpid-cpp-0.34/src/qpid/broker/amqp/Connection.cpp: In
> > > member function ‘void qpid::broker::amqp::Connection::open()’:
> > >
> /home/pallo/tmp/qpid-cpp-0.34/src/qpid/broker/amqp/Connection.cpp:362:56:
> > > error: deprecated conversion from string constant to ‘char*’
> > > [-Werror=write-strings]
> > >          pn_data_put_symbol(props, pn_bytes(7, "product"));
> > > ...
> > >
> > >
> > > Thanks,
> > >
> > >  -- Paul
> >
> >
> > Hmm, can you try the following:
> >
> >   * remove all of those pacakges
> >   * remove all extra PPA's related to qpid
> >   * add this ppa:  ppa:qpid/testing
> >  * apt-get install qpidd
> >
> > and see if that works? That would be the exact process we use, running on
> > trusty 14.04.3 in our images (I can verify that package works as of three
> > different images this morning alone).
> >
> > Matt
> >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > > On 21 January 2016 at 14:00, Matt Broadstone <mb...@gmail.com>
> wrote:
> > >
> > > > On Thu, Jan 21, 2016 at 7:51 AM, Pål Skjager Løberg <pa...@fourc.eu>
> > > > wrote:
> > > >
> > > > > I have been using the packages from
> > > > > https://launchpad.net/~mcpierce/+archive/ubuntu/qpid-testing and
> > lately
> > > > > https://launchpad.net/~qpid/+archive/ubuntu/released on the client
> > side
> > > > > for
> > > > > a while. Now I need a qpidd for testing locally, but I suspect
> there
> > are
> > > > > some dependency issues with the qpid-cpp package as /usr/sbin/qpidd
> > is
> > > > > giving me unresolved symbols:
> > > > >
> > > > >   /usr/sbin/qpidd: symbol lookup error: /usr/sbin/qpidd: undefined
> > > > symbol:
> > > > >
> > > > >
> > > >
> >
> >
> _ZN4qpid12create_valueISsEEPN5boost15program_options14value_semanticERT_RKSs
> > > > >
> > > > > This seems to be related to libboost_program_options.so that I have
> > in
> > > > > 1.54.0.
> > > > >
> > > > > Package: libboost-program-options1.54.0
> > > > > ...
> > > > > Version: 1.54.0-4ubuntu3.1
> > > > >
> > > > > What would be the correct version to use here? There should
> probably
> > be a
> > > > > dependency in the DEB for this as well?
> > > > >
> > > > > Thanks,
> > > > >
> > > > >  -- Paul
> > > > >
> > > >
> > > > Hi Paul,
> > > >
> > > > There actually is a dependency on that for the source package (found
> > here:
> > > >
> >
> https://github.com/mbroadst/debian-qpid-cpp/blob/trusty/debian/control#L9
> > > > ),
> > > > though I'm not sure it needs to be specified for the binary itself.
> We
> > use
> > > > this deb package in production and it works fine without a need to
> > modify
> > > > anything. From those systems I can see that boost program options is
> > > > installed:
> > > >
> > > > $ dpkg -l | grep boost
> > > > ii  libboost-program-options1.54.0:amd64 1.54.0-4ubuntu3.1
> > > >       amd64        program options library for C++
> > > >
> > > > Let's start here: what version of ubuntu are you using?
> > > >
> > > > Cheers,
> > > > Matt
> > > >
> >
>

Re: Unresolved symbols in qpidd from DEB package

Posted by Pål Skjager Løberg <pa...@fourc.eu>.
Thanks Matt,

it seems like that did the trick. Not sure what was the issue with the
boost lib I had installed, but something was obviously fishy with it.

$ sudo apt-get install qpidd
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following extra packages will be installed:
>   libboost-program-options1.54.0 libqpid-proton4 libqpidbroker2
> libqpidcommon2
>   libqpidtypes1
> The following NEW packages will be installed:
>   libboost-program-options1.54.0 libqpid-proton4 libqpidbroker2
> libqpidcommon2
>   libqpidtypes1 qpidd
> 0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
> Need to get 115 kB/2.311 kB of archives.
> After this operation, 9.525 kB of additional disk space will be used.
> Do you want to continue? [Y/n]
> Get:1 http://no.archive.ubuntu.com/ubuntu/ trusty-updates/main
> libboost-program-options1.54.0 amd64 1.54.0-4ubuntu3.1 [115 kB]
> Fetched 115 kB in 0s (1.379 kB/s)
> Preconfiguring packages ...
> Selecting previously unselected package
> libboost-program-options1.54.0:amd64.
> (Reading database ... 349830 files and directories currently installed.)
> Preparing to unpack
> .../libboost-program-options1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
> Unpacking libboost-program-options1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
> Selecting previously unselected package libqpid-proton4:amd64.
> Preparing to unpack .../libqpid-proton4_0.11.1-2trusty+qpid1_amd64.deb ...
> Unpacking libqpid-proton4:amd64 (0.11.1-2trusty+qpid1) ...
> Selecting previously unselected package libqpidtypes1:amd64.
> Preparing to unpack .../libqpidtypes1_0.34-2trusty+qpid1_amd64.deb ...
> Unpacking libqpidtypes1:amd64 (0.34-2trusty+qpid1) ...
> Selecting previously unselected package libqpidcommon2:amd64.
> Preparing to unpack .../libqpidcommon2_0.34-2trusty+qpid1_amd64.deb ...
> Unpacking libqpidcommon2:amd64 (0.34-2trusty+qpid1) ...
> Selecting previously unselected package libqpidbroker2:amd64.
> Preparing to unpack .../libqpidbroker2_0.34-2trusty+qpid1_amd64.deb ...
> Unpacking libqpidbroker2:amd64 (0.34-2trusty+qpid1) ...
> Selecting previously unselected package qpidd.
> Preparing to unpack .../qpidd_0.34-2trusty+qpid1_amd64.deb ...
> Unpacking qpidd (0.34-2trusty+qpid1) ...
> Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
> Processing triggers for ureadahead (0.100.0-16) ...
> Setting up libboost-program-options1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
> Setting up libqpid-proton4:amd64 (0.11.1-2trusty+qpid1) ...
> Setting up libqpidtypes1:amd64 (0.34-2trusty+qpid1) ...
> Setting up libqpidcommon2:amd64 (0.34-2trusty+qpid1) ...
> Setting up libqpidbroker2:amd64 (0.34-2trusty+qpid1) ...
> Setting up qpidd (0.34-2trusty+qpid1) ...


 -- Paul


On 21 January 2016 at 14:51, Matt Broadstone <mb...@gmail.com> wrote:

> On Thu, Jan 21, 2016 at 8:44 AM, Pål Skjager Løberg <pa...@fourc.eu>
> wrote:
> >
> > Hi Matt,
> >
> > I'm on 14.04.3 LTS (trusty). Plenty of Boost packages installed:
> >
> > ii  libboost-atomic1.54.0:amd64
> > 1.54.0-4ubuntu3.1
> > ii  libboost-chrono1.54.0:amd64
> > 1.54.0-4ubuntu3.1
> > ii  libboost-date-time1.53.0:amd64
> >  1.53.0-6+exp3ubuntu8
> > ii  libboost-date-time1.54.0:amd64
> >  1.54.0-4ubuntu3.1
> > ii  libboost-filesystem1.54.0:amd64
> > 1.54.0-4ubuntu3.1
> > ii  libboost-locale1.54.0:amd64
> > 1.54.0-4ubuntu3.1
> > ii  libboost-log1.54.0
> >  1.54.0-4ubuntu3.1
> > ii  libboost-program-options1.54.0:amd64
> >  1.54.0-4ubuntu3.1
> > ii  libboost-python1.54.0:amd64
> > 1.54.0-4ubuntu3.1
> > ii  libboost-regex1.54.0:amd64
> >  1.54.0-4ubuntu3.1
> > ii  libboost-serialization1.54.0:amd64
> >  1.54.0-4ubuntu3.1
> > ii  libboost-system1.53.0:amd64
> > 1.53.0-6+exp3ubuntu8
> > ii  libboost-system1.54.0:amd64
> > 1.54.0-4ubuntu3.1
> > ii  libboost-thread1.54.0:amd64
> > 1.54.0-4ubuntu3.1
> >
> > (I excluded the -dev packages as this seems to be a runtime issue).
> >
> > Gcc, g++, libstdc++ etc. is 4.8.4-2ubuntu1~14.04.
> >
> > Libc:
> >
> > ii  libc6:amd64                      2.19-0ubuntu6.6       amd64
> >       Embedded GNU C Library: Shared libraries
> > ii  libc6:i386                       2.19-0ubuntu6.6       i386
> >      Embedded GNU C Library: Shared libraries
> >
> > ... Trying to thing what else might be relevant...
> >
> >
> > I have also tried building the deb from source as well (apt-get source -b
> > qpidd) but that failed after a while. Could be a Gcc version issue...
> >
> > /home/pallo/tmp/qpid-cpp-0.34/src/qpid/broker/amqp/Connection.cpp: In
> > member function ‘void qpid::broker::amqp::Connection::open()’:
> > /home/pallo/tmp/qpid-cpp-0.34/src/qpid/broker/amqp/Connection.cpp:362:56:
> > error: deprecated conversion from string constant to ‘char*’
> > [-Werror=write-strings]
> >          pn_data_put_symbol(props, pn_bytes(7, "product"));
> > ...
> >
> >
> > Thanks,
> >
> >  -- Paul
>
>
> Hmm, can you try the following:
>
>   * remove all of those pacakges
>   * remove all extra PPA's related to qpid
>   * add this ppa:  ppa:qpid/testing
>  * apt-get install qpidd
>
> and see if that works? That would be the exact process we use, running on
> trusty 14.04.3 in our images (I can verify that package works as of three
> different images this morning alone).
>
> Matt
>
>
> >
> >
> >
> >
> >
> >
> > On 21 January 2016 at 14:00, Matt Broadstone <mb...@gmail.com> wrote:
> >
> > > On Thu, Jan 21, 2016 at 7:51 AM, Pål Skjager Løberg <pa...@fourc.eu>
> > > wrote:
> > >
> > > > I have been using the packages from
> > > > https://launchpad.net/~mcpierce/+archive/ubuntu/qpid-testing and
> lately
> > > > https://launchpad.net/~qpid/+archive/ubuntu/released on the client
> side
> > > > for
> > > > a while. Now I need a qpidd for testing locally, but I suspect there
> are
> > > > some dependency issues with the qpid-cpp package as /usr/sbin/qpidd
> is
> > > > giving me unresolved symbols:
> > > >
> > > >   /usr/sbin/qpidd: symbol lookup error: /usr/sbin/qpidd: undefined
> > > symbol:
> > > >
> > > >
> > >
>
> _ZN4qpid12create_valueISsEEPN5boost15program_options14value_semanticERT_RKSs
> > > >
> > > > This seems to be related to libboost_program_options.so that I have
> in
> > > > 1.54.0.
> > > >
> > > > Package: libboost-program-options1.54.0
> > > > ...
> > > > Version: 1.54.0-4ubuntu3.1
> > > >
> > > > What would be the correct version to use here? There should probably
> be a
> > > > dependency in the DEB for this as well?
> > > >
> > > > Thanks,
> > > >
> > > >  -- Paul
> > > >
> > >
> > > Hi Paul,
> > >
> > > There actually is a dependency on that for the source package (found
> here:
> > >
> https://github.com/mbroadst/debian-qpid-cpp/blob/trusty/debian/control#L9
> > > ),
> > > though I'm not sure it needs to be specified for the binary itself. We
> use
> > > this deb package in production and it works fine without a need to
> modify
> > > anything. From those systems I can see that boost program options is
> > > installed:
> > >
> > > $ dpkg -l | grep boost
> > > ii  libboost-program-options1.54.0:amd64 1.54.0-4ubuntu3.1
> > >       amd64        program options library for C++
> > >
> > > Let's start here: what version of ubuntu are you using?
> > >
> > > Cheers,
> > > Matt
> > >
>

Re: Unresolved symbols in qpidd from DEB package

Posted by Matt Broadstone <mb...@gmail.com>.
On Thu, Jan 21, 2016 at 8:44 AM, Pål Skjager Løberg <pa...@fourc.eu> wrote:
>
> Hi Matt,
>
> I'm on 14.04.3 LTS (trusty). Plenty of Boost packages installed:
>
> ii  libboost-atomic1.54.0:amd64
> 1.54.0-4ubuntu3.1
> ii  libboost-chrono1.54.0:amd64
> 1.54.0-4ubuntu3.1
> ii  libboost-date-time1.53.0:amd64
>  1.53.0-6+exp3ubuntu8
> ii  libboost-date-time1.54.0:amd64
>  1.54.0-4ubuntu3.1
> ii  libboost-filesystem1.54.0:amd64
> 1.54.0-4ubuntu3.1
> ii  libboost-locale1.54.0:amd64
> 1.54.0-4ubuntu3.1
> ii  libboost-log1.54.0
>  1.54.0-4ubuntu3.1
> ii  libboost-program-options1.54.0:amd64
>  1.54.0-4ubuntu3.1
> ii  libboost-python1.54.0:amd64
> 1.54.0-4ubuntu3.1
> ii  libboost-regex1.54.0:amd64
>  1.54.0-4ubuntu3.1
> ii  libboost-serialization1.54.0:amd64
>  1.54.0-4ubuntu3.1
> ii  libboost-system1.53.0:amd64
> 1.53.0-6+exp3ubuntu8
> ii  libboost-system1.54.0:amd64
> 1.54.0-4ubuntu3.1
> ii  libboost-thread1.54.0:amd64
> 1.54.0-4ubuntu3.1
>
> (I excluded the -dev packages as this seems to be a runtime issue).
>
> Gcc, g++, libstdc++ etc. is 4.8.4-2ubuntu1~14.04.
>
> Libc:
>
> ii  libc6:amd64                      2.19-0ubuntu6.6       amd64
>       Embedded GNU C Library: Shared libraries
> ii  libc6:i386                       2.19-0ubuntu6.6       i386
>      Embedded GNU C Library: Shared libraries
>
> ... Trying to thing what else might be relevant...
>
>
> I have also tried building the deb from source as well (apt-get source -b
> qpidd) but that failed after a while. Could be a Gcc version issue...
>
> /home/pallo/tmp/qpid-cpp-0.34/src/qpid/broker/amqp/Connection.cpp: In
> member function ‘void qpid::broker::amqp::Connection::open()’:
> /home/pallo/tmp/qpid-cpp-0.34/src/qpid/broker/amqp/Connection.cpp:362:56:
> error: deprecated conversion from string constant to ‘char*’
> [-Werror=write-strings]
>          pn_data_put_symbol(props, pn_bytes(7, "product"));
> ...
>
>
> Thanks,
>
>  -- Paul


Hmm, can you try the following:

  * remove all of those pacakges
  * remove all extra PPA's related to qpid
  * add this ppa:  ppa:qpid/testing
 * apt-get install qpidd

and see if that works? That would be the exact process we use, running on
trusty 14.04.3 in our images (I can verify that package works as of three
different images this morning alone).

Matt


>
>
>
>
>
>
> On 21 January 2016 at 14:00, Matt Broadstone <mb...@gmail.com> wrote:
>
> > On Thu, Jan 21, 2016 at 7:51 AM, Pål Skjager Løberg <pa...@fourc.eu>
> > wrote:
> >
> > > I have been using the packages from
> > > https://launchpad.net/~mcpierce/+archive/ubuntu/qpid-testing and
lately
> > > https://launchpad.net/~qpid/+archive/ubuntu/released on the client
side
> > > for
> > > a while. Now I need a qpidd for testing locally, but I suspect there
are
> > > some dependency issues with the qpid-cpp package as /usr/sbin/qpidd is
> > > giving me unresolved symbols:
> > >
> > >   /usr/sbin/qpidd: symbol lookup error: /usr/sbin/qpidd: undefined
> > symbol:
> > >
> > >
> >
_ZN4qpid12create_valueISsEEPN5boost15program_options14value_semanticERT_RKSs
> > >
> > > This seems to be related to libboost_program_options.so that I have in
> > > 1.54.0.
> > >
> > > Package: libboost-program-options1.54.0
> > > ...
> > > Version: 1.54.0-4ubuntu3.1
> > >
> > > What would be the correct version to use here? There should probably
be a
> > > dependency in the DEB for this as well?
> > >
> > > Thanks,
> > >
> > >  -- Paul
> > >
> >
> > Hi Paul,
> >
> > There actually is a dependency on that for the source package (found
here:
> >
https://github.com/mbroadst/debian-qpid-cpp/blob/trusty/debian/control#L9
> > ),
> > though I'm not sure it needs to be specified for the binary itself. We
use
> > this deb package in production and it works fine without a need to
modify
> > anything. From those systems I can see that boost program options is
> > installed:
> >
> > $ dpkg -l | grep boost
> > ii  libboost-program-options1.54.0:amd64 1.54.0-4ubuntu3.1
> >       amd64        program options library for C++
> >
> > Let's start here: what version of ubuntu are you using?
> >
> > Cheers,
> > Matt
> >

Re: Unresolved symbols in qpidd from DEB package

Posted by Pål Skjager Løberg <pa...@fourc.eu>.
Hi Matt,

I'm on 14.04.3 LTS (trusty). Plenty of Boost packages installed:

ii  libboost-atomic1.54.0:amd64
1.54.0-4ubuntu3.1
ii  libboost-chrono1.54.0:amd64
1.54.0-4ubuntu3.1
ii  libboost-date-time1.53.0:amd64
 1.53.0-6+exp3ubuntu8
ii  libboost-date-time1.54.0:amd64
 1.54.0-4ubuntu3.1
ii  libboost-filesystem1.54.0:amd64
1.54.0-4ubuntu3.1
ii  libboost-locale1.54.0:amd64
1.54.0-4ubuntu3.1
ii  libboost-log1.54.0
 1.54.0-4ubuntu3.1
ii  libboost-program-options1.54.0:amd64
 1.54.0-4ubuntu3.1
ii  libboost-python1.54.0:amd64
1.54.0-4ubuntu3.1
ii  libboost-regex1.54.0:amd64
 1.54.0-4ubuntu3.1
ii  libboost-serialization1.54.0:amd64
 1.54.0-4ubuntu3.1
ii  libboost-system1.53.0:amd64
1.53.0-6+exp3ubuntu8
ii  libboost-system1.54.0:amd64
1.54.0-4ubuntu3.1
ii  libboost-thread1.54.0:amd64
1.54.0-4ubuntu3.1

(I excluded the -dev packages as this seems to be a runtime issue).

Gcc, g++, libstdc++ etc. is 4.8.4-2ubuntu1~14.04.

Libc:

ii  libc6:amd64                      2.19-0ubuntu6.6       amd64
      Embedded GNU C Library: Shared libraries
ii  libc6:i386                       2.19-0ubuntu6.6       i386
     Embedded GNU C Library: Shared libraries

... Trying to thing what else might be relevant...


I have also tried building the deb from source as well (apt-get source -b
qpidd) but that failed after a while. Could be a Gcc version issue...

/home/pallo/tmp/qpid-cpp-0.34/src/qpid/broker/amqp/Connection.cpp: In
member function ‘void qpid::broker::amqp::Connection::open()’:
/home/pallo/tmp/qpid-cpp-0.34/src/qpid/broker/amqp/Connection.cpp:362:56:
error: deprecated conversion from string constant to ‘char*’
[-Werror=write-strings]
         pn_data_put_symbol(props, pn_bytes(7, "product"));
...


Thanks,

 -- Paul


On 21 January 2016 at 14:00, Matt Broadstone <mb...@gmail.com> wrote:

> On Thu, Jan 21, 2016 at 7:51 AM, Pål Skjager Løberg <pa...@fourc.eu>
> wrote:
>
> > I have been using the packages from
> > https://launchpad.net/~mcpierce/+archive/ubuntu/qpid-testing and lately
> > https://launchpad.net/~qpid/+archive/ubuntu/released on the client side
> > for
> > a while. Now I need a qpidd for testing locally, but I suspect there are
> > some dependency issues with the qpid-cpp package as /usr/sbin/qpidd is
> > giving me unresolved symbols:
> >
> >   /usr/sbin/qpidd: symbol lookup error: /usr/sbin/qpidd: undefined
> symbol:
> >
> >
> _ZN4qpid12create_valueISsEEPN5boost15program_options14value_semanticERT_RKSs
> >
> > This seems to be related to libboost_program_options.so that I have in
> > 1.54.0.
> >
> > Package: libboost-program-options1.54.0
> > ...
> > Version: 1.54.0-4ubuntu3.1
> >
> > What would be the correct version to use here? There should probably be a
> > dependency in the DEB for this as well?
> >
> > Thanks,
> >
> >  -- Paul
> >
>
> Hi Paul,
>
> There actually is a dependency on that for the source package (found here:
> https://github.com/mbroadst/debian-qpid-cpp/blob/trusty/debian/control#L9
> ),
> though I'm not sure it needs to be specified for the binary itself. We use
> this deb package in production and it works fine without a need to modify
> anything. From those systems I can see that boost program options is
> installed:
>
> $ dpkg -l | grep boost
> ii  libboost-program-options1.54.0:amd64 1.54.0-4ubuntu3.1
>       amd64        program options library for C++
>
> Let's start here: what version of ubuntu are you using?
>
> Cheers,
> Matt
>

Re: Unresolved symbols in qpidd from DEB package

Posted by Matt Broadstone <mb...@gmail.com>.
On Thu, Jan 21, 2016 at 7:51 AM, Pål Skjager Løberg <pa...@fourc.eu> wrote:

> I have been using the packages from
> https://launchpad.net/~mcpierce/+archive/ubuntu/qpid-testing and lately
> https://launchpad.net/~qpid/+archive/ubuntu/released on the client side
> for
> a while. Now I need a qpidd for testing locally, but I suspect there are
> some dependency issues with the qpid-cpp package as /usr/sbin/qpidd is
> giving me unresolved symbols:
>
>   /usr/sbin/qpidd: symbol lookup error: /usr/sbin/qpidd: undefined symbol:
>
> _ZN4qpid12create_valueISsEEPN5boost15program_options14value_semanticERT_RKSs
>
> This seems to be related to libboost_program_options.so that I have in
> 1.54.0.
>
> Package: libboost-program-options1.54.0
> ...
> Version: 1.54.0-4ubuntu3.1
>
> What would be the correct version to use here? There should probably be a
> dependency in the DEB for this as well?
>
> Thanks,
>
>  -- Paul
>

Hi Paul,

There actually is a dependency on that for the source package (found here:
https://github.com/mbroadst/debian-qpid-cpp/blob/trusty/debian/control#L9),
though I'm not sure it needs to be specified for the binary itself. We use
this deb package in production and it works fine without a need to modify
anything. From those systems I can see that boost program options is
installed:

$ dpkg -l | grep boost
ii  libboost-program-options1.54.0:amd64 1.54.0-4ubuntu3.1
      amd64        program options library for C++

Let's start here: what version of ubuntu are you using?

Cheers,
Matt

Re: Unresolved symbols in qpidd from DEB package

Posted by Andrew Stitcher <as...@redhat.com>.
On Thu, 2016-01-21 at 13:51 +0100, Pål Skjager Løberg wrote:
> I have been using the packages from
> https://launchpad.net/~mcpierce/+archive/ubuntu/qpid-testing and late
> ly
> https://launchpad.net/~qpid/+archive/ubuntu/released on the client si
> de for
> a while. Now I need a qpidd for testing locally, but I suspect there
> are
> some dependency issues with the qpid-cpp package as /usr/sbin/qpidd
> is
> giving me unresolved symbols:
> 
>   /usr/sbin/qpidd: symbol lookup error: /usr/sbin/qpidd: undefined
> symbol:
> _ZN4qpid12create_valueISsEEPN5boost15program_options14value_semanticE
> RT_RKSs
> 
> This seems to be related to libboost_program_options.so that I have
> in
> 1.54.0.

Au contraire! This seems to have little to do with the version of
boost::program_options installed (afaict).

If you demangle the c++ symbol name you get (simplified for brevity):

boost::program_options::value_semantic*
qpid::create_value<std::string>(std::string&, std::string const&)

You can see from this that it is a symbol defined within qpid that is
missing - it merely returns a type from boost::program_options.

Having said that I didn't follow the rest of your conversation, but
whatever solved your problem wasn't what you think solved the problem!

If I had to, I'd guess that you had mismatched qpid libraries
installed.

Hope that dispels some voodoo.

Andrew


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org