libpion stub outdated (duetto 0.9.1)?

Asked by Artem

I'm trying to compile the server example from http://leaningtech.com/duetto/examples/
Here is what I'm getting:

8<------->8
$ /opt/duetto/bin/clang++ -duetto-side=server -std=c++11 -O3 /opt/duetto/share/duetto/server_stub.cpp /opt/duetto/share/duetto/deserializer.cpp HelloServer.cpp -o HelloServer -lboost_system -lpion-net-4.0 -pthread -lpion-common -lboost_thread -lssl -lcrypto -llog4cpp
/opt/duetto/share/duetto/server_stub.cpp:21:10: fatal error: 'pion/net/HTTPServer.hpp' file not found
#include <pion/net/HTTPServer.hpp>
         ^
1 error generated.
/opt/duetto/share/duetto/deserializer.cpp:23:10: fatal error: 'server.h' file not found
#include "server.h"
         ^
1 error generated.
HelloServer.cpp:4:10: fatal error: 'server.h' file not found
#include "server.h"
         ^
1 error generated.
8<------->8

Looking in the libpion includes I see no 'pion/net/HTTPServer.hpp', rather there is a 'pion/http/server.hpp' (cf. http://packages.debian.org/jessie/amd64/libpion-dev/filelist).

$ dpkg -l | grep pion
ii libpion-5.0 5.0.4+dfsg-1 amd64 lightweight HTTP interface library - runtime files
ii libpion-dev 5.0.4+dfsg-1 amd64 lightweight HTTP interface library - development files
ii libpion-plugins 5.0.4+dfsg-1 amd64 lightweight HTTP interface library - plugins

$ dpkg -l | grep duetto
ii duetto-libcxx 0.9.1 amd64 A C++ compiler for the Web, C++ library implementation
ii duetto-libcxxabi 0.9.1 amd64 A C++ compiler for the Web, C++ ABI implementation
ii duetto-llvm-clang 0.9.1-1 amd64 A C++ compiler for the Web
ii duetto-newlib 0.9.1-1 amd64 A C++ compiler for the Web, C library implementation
ii duetto-utils 0.9.1 amd64 A C++ compiler for the Web, includes and tools

Is it the outdated libpion stubs in Duetto or am I doing something wrong?

Question information

Language:
English Edit question
Status:
Solved
For:
Cheerp Edit question
Assignee:
No assignee Edit question
Solved by:
Alessandro Pignotti
Solved:
Last query:
Last reply:
Revision history for this message
Alessandro Pignotti (a-pignotti) said :
#1

The issue is not with pion, but with duetto itself. The currently released packages do not include the header for server side support. The next point release (0.9.2) will include it. In the mean time you can grab it from github

https://github.com/leaningtech/duetto-utils/blob/master/include/server.h

Revision history for this message
Artem (artemciy) said :
#2

Alessandro,
thanks,
I've installed the "server.h" (wget https://raw.github.com/leaningtech/duetto-utils/master/include/server.h; cp server.h /opt/duetto/share/duetto/) and indeed it fixed the second error message, but the first error message remains:
  /opt/duetto/share/duetto/server_stub.cpp:21:10: fatal error: 'pion/net/HTTPServer.hpp' file not found
Do you have any further advice or should I wait for 0.9.2 for a working server example?

Revision history for this message
Best Alessandro Pignotti (a-pignotti) said :
#3

Try to install the libpion-net-dev package

Revision history for this message
Artem (artemciy) said :
#4

Thanks Alessandro Pignotti, that solved my question.

Revision history for this message
Artem (artemciy) said :
#5

Sorry, pressed the wrong button!
The problem isn't solved. : (

Here's the packages I have in Debian Jessie:
$ apt-cache search libpion
libpion-5.0 - lightweight HTTP interface library - runtime files
libpion-5.0-dbg - lightweight HTTP interface library - debug files
libpion-dev - lightweight HTTP interface library - development files
libpion-doc - lightweight HTTP interface library - documentation
libpion-plugins - lightweight HTTP interface library - plugins
libpion-plugins-dbg - lightweight HTTP interface library - plugins debug files

And here's what is installed:
$ dpkg -l | grep libpion
ii libpion-5.0 5.0.4+dfsg-1 amd64 lightweight HTTP interface library - runtime files
ii libpion-dev 5.0.4+dfsg-1 amd64 lightweight HTTP interface library - development files
ii libpion-plugins 5.0.4+dfsg-1 amd64 lightweight HTTP interface library - plugins

The only "-dev" package is libpion-dev and it's installed.

But as it is supposed to be a libpion installation problem I'll try to install libpion from source and come back to you.

Revision history for this message
Alessandro Pignotti (a-pignotti) said :
#6

I now see that debian ships pion 5, while ubuntu still ships pion 4. I will see if I can add another stub for pion 5 in the next release