You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by nandanone <nj...@redhat.com> on 2018/01/18 14:54:12 UTC

Issue building qpid-proton on Fedora

Following the instructions to build the qpid-proton language bindings for
Python (  http://qpid.apache.org/proton/ and follow the link for Installing
Qpid Proton), I get the following error.


 make install
[  1%] Built target generated_c_files
[ 13%] Built target qpid-proton-core
[ 31%] Built target qpid-proton
[ 32%] Built target qpid-proton-proactor
[ 33%] Built target msgr-send
[ 34%] Built target msgr-recv
[ 36%] Built target reactor-recv
[ 37%] Built target reactor-send
[ 38%] Linking CXX shared library libqpid-proton-cpp.so
CMakeFiles/qpid-proton-cpp.dir/src/proactor_container_impl.cpp.o: In
function `std::thread::thread<void (proton::container::impl::*)(),
proton::container::impl*>(void (proton::container::impl::*&&)(),
proton::container::impl*&&)':
/usr/include/c++/7/thread:126: undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[2]: ***
[proton-c/bindings/cpp/CMakeFiles/qpid-proton-cpp.dir/build.make:1397:
proton-c/bindings/cpp/libqpid-proton-cpp.so.11.1.0] Error 1
make[1]: *** [CMakeFiles/Makefile2:1886:
proton-c/bindings/cpp/CMakeFiles/qpid-proton-cpp.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Anyone run into this? On Fedora 26. Looks like the compiler needs a -pthread
option. Not sure where to specify.

Any help or pointers greatly appreciated.

Regards,

Nandan Joshi



--
Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html

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


Re: Issue building qpid-proton on Fedora

Posted by nandanone <nj...@redhat.com>.
Thanks, all. The dnf install did the trick.

Nandan




--
Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html

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


Re: Issue building qpid-proton on Fedora

Posted by Gregor Berginc <gr...@gmail.com>.
Hi Nandan,

I haven’t tried this but a colleague of mine has updated RPM spec for qpid-proton 0.19. You should be able to use it to install system package on Fedora:

https://copr.fedorainfracloud.org/coprs/tadeboro/qpid-proton/

Note that this is unofficial until RPM gets updated but you can check the RPM spec to be sure that it just bumps the version:

https://github.com/xlab-si/rpm-qpid-proton/commit/dc484f9c18a1c78d620e1173c119414c546e18a9

I guess you can then install Python moudule via pip.

I hope this helps,
-Gregor

> On 19 Jan 2018, at 19:47, nandanone <nj...@redhat.com> wrote:
> 
> Andrew::
> 
> I downloaded the 0.19.0 distribution of qpid-proton from the apache site.
> The install instructions talk about building the distribution using
> cmake/make. This is why I was trying to build the distribution (with Perl,
> Ruby, PHP turned off). Is there a way to install the proton module and its
> dependencies without a build? Otherwise when I try to run the examples in
> the Python directory I get errors like
> 
> Traceback (most recent call last):
>  File "simple_send.py", line 23, in <module>
>    from proton import Message
> ImportError: No module named proton
> 
> I have set 
> echo $PYTHONPATH 
> /home/njoshi/Development/community/qpid-proton-0.19.0/
> 
> Thanks,
> 
> Nandan
> 
> 
> 
> 
> 
> 
> 
> --
> Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
> 

Re: Issue building qpid-proton on Fedora

Posted by nandanone <nj...@redhat.com>.
Andrew::

I downloaded the 0.19.0 distribution of qpid-proton from the apache site.
The install instructions talk about building the distribution using
cmake/make. This is why I was trying to build the distribution (with Perl,
Ruby, PHP turned off). Is there a way to install the proton module and its
dependencies without a build? Otherwise when I try to run the examples in
the Python directory I get errors like

Traceback (most recent call last):
  File "simple_send.py", line 23, in <module>
    from proton import Message
ImportError: No module named proton

I have set 
echo $PYTHONPATH 
/home/njoshi/Development/community/qpid-proton-0.19.0/

Thanks,

Nandan







--
Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f2158936.html

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


Re: Issue building qpid-proton on Fedora

Posted by Andrew Stitcher <as...@apache.org>.
On a hunch I discovered the problem you are having:

Reported as https://issues.apache.org/jira/browse/PROTON-1747 .

For you the workaround is to make sure you have the openssl dev package
installed - you will want that anyway to do encryption and maybe
authentication - you might also want to have cyrus-sasl installed for
more authentication options.

But really just use the premade packages!

Andrew

On Thu, 2018-01-18 at 07:54 -0700, nandanone wrote:
> Following the instructions to build the qpid-proton language bindings
> for
> Python (  http://qpid.apache.org/proton/ and follow the link for
> Installing
> Qpid Proton), I get the following error.
> 
> 
>  make install
> [  1%] Built target generated_c_files
> [ 13%] Built target qpid-proton-core
> [ 31%] Built target qpid-proton
> [ 32%] Built target qpid-proton-proactor
> [ 33%] Built target msgr-send
> [ 34%] Built target msgr-recv
> [ 36%] Built target reactor-recv
> [ 37%] Built target reactor-send
> [ 38%] Linking CXX shared library libqpid-proton-cpp.so
> CMakeFiles/qpid-proton-cpp.dir/src/proactor_container_impl.cpp.o: In
> function `std::thread::thread<void (proton::container::impl::*)(),
> proton::container::impl*>(void (proton::container::impl::*&&)(),
> proton::container::impl*&&)':
> /usr/include/c++/7/thread:126: undefined reference to
> `pthread_create'
> collect2: error: ld returned 1 exit status
> make[2]: ***
> [proton-c/bindings/cpp/CMakeFiles/qpid-proton-
> cpp.dir/build.make:1397:
> proton-c/bindings/cpp/libqpid-proton-cpp.so.11.1.0] Error 1
> make[1]: *** [CMakeFiles/Makefile2:1886:
> proton-c/bindings/cpp/CMakeFiles/qpid-proton-cpp.dir/all] Error 2
> make: *** [Makefile:141: all] Error 2
> 
> Anyone run into this? On Fedora 26. Looks like the compiler needs a
> -pthread
> option. Not sure where to specify.
> 
> Any help or pointers greatly appreciated.
> 
> Regards,
> 
> Nandan Joshi
> 
> 
> 
> --
> Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f21589
> 36.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
> 

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


Re: Issue building qpid-proton on Fedora

Posted by Andrew Stitcher <as...@apache.org>.
Incidentally you should be able to just use "dnf" to get the package
python-qpid-proton on F26 - I think the current package is 0.17 which
isn't the most recent, but should be updated soon.

Is there a specific reason you need to build from source?

Andrew

On Thu, 2018-01-18 at 17:50 -0500, Andrew Stitcher wrote:
> This is very puzzling: Fedora is a very common build platform for the
> Proton-c developers and F26 and F27 are both heavily used.
> 
> However, we've have had some problems like this before (but they
> should
> be fixed now) could you confirm the version of source code you are
> using.
> 
> It would also help to show the entire output of the initial CMake
> configuration phase to see what has been found on your system and
> what
> has not.
> 
> Thanks
> 
> Andrew
> 
> 
> On Thu, 2018-01-18 at 07:54 -0700, nandanone wrote:
> > Following the instructions to build the qpid-proton language
> > bindings
> > for
> > for
> > Python (  http://qpid.apache.org/proton/ and follow the link for
> > Installing
> > Qpid Proton), I get the following error.
> > 
> > 
> >  make install
> > [  1%] Built target generated_c_files
> > [ 13%] Built target qpid-proton-core
> > [ 31%] Built target qpid-proton
> > [ 32%] Built target qpid-proton-proactor
> > [ 33%] Built target msgr-send
> > [ 34%] Built target msgr-recv
> > [ 36%] Built target reactor-recv
> > [ 37%] Built target reactor-send
> > [ 38%] Linking CXX shared library libqpid-proton-cpp.so
> > CMakeFiles/qpid-proton-cpp.dir/src/proactor_container_impl.cpp.o:
> > In
> > function `std::thread::thread<void (proton::container::impl::*)(),
> > proton::container::impl*>(void (proton::container::impl::*&&)(),
> > proton::container::impl*&&)':
> > /usr/include/c++/7/thread:126: undefined reference to
> > `pthread_create'
> > collect2: error: ld returned 1 exit status
> > make[2]: ***
> > [proton-c/bindings/cpp/CMakeFiles/qpid-proton-
> > cpp.dir/build.make:1397:
> > proton-c/bindings/cpp/libqpid-proton-cpp.so.11.1.0] Error 1
> > make[1]: *** [CMakeFiles/Makefile2:1886:
> > proton-c/bindings/cpp/CMakeFiles/qpid-proton-cpp.dir/all] Error 2
> > make: *** [Makefile:141: all] Error 2
> > 
> > Anyone run into this? On Fedora 26. Looks like the compiler needs a
> > -pthread
> > option. Not sure where to specify.
> > 
> > Any help or pointers greatly appreciated.
> > 
> > Regards,
> > 
> > Nandan Joshi
> > 
> > 
> > 
> > --
> > Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f215
> > 89
> > 36.html
> > 
> > -----------------------------------------------------------------
> > ----
> > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> > For additional commands, e-mail: users-help@qpid.apache.org

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


Re: Issue building qpid-proton on Fedora

Posted by Andrew Stitcher <as...@apache.org>.
This is very puzzling: Fedora is a very common build platform for the
Proton-c developers and F26 and F27 are both heavily used.

However, we've have had some problems like this before (but they should
be fixed now) could you confirm the version of source code you are
using.

It would also help to show the entire output of the initial CMake
configuration phase to see what has been found on your system and what
has not.

Thanks

Andrew


On Thu, 2018-01-18 at 07:54 -0700, nandanone wrote:
> Following the instructions to build the qpid-proton language bindings
> for
> for
> Python (  http://qpid.apache.org/proton/ and follow the link for
> Installing
> Qpid Proton), I get the following error.
> 
> 
>  make install
> [  1%] Built target generated_c_files
> [ 13%] Built target qpid-proton-core
> [ 31%] Built target qpid-proton
> [ 32%] Built target qpid-proton-proactor
> [ 33%] Built target msgr-send
> [ 34%] Built target msgr-recv
> [ 36%] Built target reactor-recv
> [ 37%] Built target reactor-send
> [ 38%] Linking CXX shared library libqpid-proton-cpp.so
> CMakeFiles/qpid-proton-cpp.dir/src/proactor_container_impl.cpp.o: In
> function `std::thread::thread<void (proton::container::impl::*)(),
> proton::container::impl*>(void (proton::container::impl::*&&)(),
> proton::container::impl*&&)':
> /usr/include/c++/7/thread:126: undefined reference to
> `pthread_create'
> collect2: error: ld returned 1 exit status
> make[2]: ***
> [proton-c/bindings/cpp/CMakeFiles/qpid-proton-
> cpp.dir/build.make:1397:
> proton-c/bindings/cpp/libqpid-proton-cpp.so.11.1.0] Error 1
> make[1]: *** [CMakeFiles/Makefile2:1886:
> proton-c/bindings/cpp/CMakeFiles/qpid-proton-cpp.dir/all] Error 2
> make: *** [Makefile:141: all] Error 2
> 
> Anyone run into this? On Fedora 26. Looks like the compiler needs a
> -pthread
> option. Not sure where to specify.
> 
> Any help or pointers greatly appreciated.
> 
> Regards,
> 
> Nandan Joshi
> 
> 
> 
> --
> Sent from: http://qpid.2158936.n2.nabble.com/Apache-Qpid-users-f21589
> 36.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
> 

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