[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Ogon packaging for Debian (was: Re: Bug#906072: Ogon packages available (Linux RDP Server))



Hi Bernhard, hi Mike,

June 29, 2020 10:19 PM, "Bernhard Miklautz" <bernhard.miklautz@shacknet.at> wrote:

> If the external project is triggered either the library or the compiler
> wasn't found. This could be a missing build dependency or an error in
> the FindThrift cmake file.
> Any version of thrift that includes the fix for issue THRIFT-3420 should
> work.
> 
> Hope it's more clear now.

Thanks for pointing that out.

I just tried to remove the included thrift version (and add better dependencies: thrift-compiler libthrift-dev) but builds fail on all my available test platforms:

   Debian 10        (0.11.0)
   Debian Testing   (0.13.0)
   Debian Unstable  (0.13.0)
   Ubuntu 18.04     (0.9.1 - no -dev package)
   Ubuntu 20.04     (0.13.0)

For now I'd concentrate on fixing Debian 10 (as the shipped thrift version matches the one that gets downloaded if not available) - newer versions (0.13.0) complain about missing parameters on function call (maybe API changed?) and may require more source changes.

Debian 10 configure reports:

[  278s] -- THRIFT_HOME: 
[  278s] -- Thrift version: Thrift version 0.11.0
[  278s] -- Thrift library: /usr/lib/x86_64-linux-gnu/libthrift.a
[  278s] -- Boost version: 1.67.0

But compilation fails with:

[  418s] ./obj-x86_64-linux-gnu/session-manager/./session-manager/common/otsapi/OTSApiServer.cpp:125: undefined reference to `apache::thrift::transport::TSSLServerSocket::TSSLServerSocket(int, boost::shared_ptr<apache::thrift::transport::TSSLSocketFactory>)'
[  418s] /usr/bin/ld: ./obj-x86_64-linux-gnu/session-manager/./session-manager/common/otsapi/OTSApiServer.cpp:128: undefined reference to `apache::thrift::server::TThreadedServer::TThreadedServer(boost::shared_ptr<apache::thrift::TProcessor> const&, boost::shared_ptr<apache::thrift::transport::TServerTransport> const&, boost::shared_ptr<apache::thrift::transport::TTransportFactory> const&, boost::shared_ptr<apache::thrift::protocol::TProtocolFactory> const&, boost::shared_ptr<apache::thrift::concurrency::ThreadFactory> const&)'
[  418s] /usr/bin/ld: CMakeFiles/ogon-session-manager.dir/common/otsapi/OTSApiServer.cpp.o: in function `apache::thrift::transport::OgonSSLSocketFactory::createSocket()':
[  418s] ./obj-x86_64-linux-gnu/session-manager/./session-manager/common/otsapi/OgonServerSSL.h:42: undefined reference to `apache::thrift::transport::TSSLSocket::TSSLSocket(boost::shared_ptr<apache::thrift::transport::SSLContext>)'
[  418s] /usr/bin/ld: CMakeFiles/ogon-session-manager.dir/common/otsapi/OTSApiServer.cpp.o: in function `apache::thrift::transport::OgonSSLSocketFactory::createSocket(int)':
[  418s] ./obj-x86_64-linux-gnu/session-manager/./session-manager/common/otsapi/OgonServerSSL.h:52: undefined reference to `apache::thrift::transport::TSSLSocket::TSSLSocket(boost::shared_ptr<apache::thrift::transport::SSLContext>, int)'
[  418s] /usr/bin/ld: CMakeFiles/ogon-session-manager.dir/common/otsapi/OTSApiServer.cpp.o: in function `apache::thrift::transport::OgonSSLSocketFactory::createSocket(boost::shared_ptr<int>)':
[  418s] ./obj-x86_64-linux-gnu/session-manager/./session-manager/common/otsapi/OgonServerSSL.h:68: undefined reference to `apache::thrift::transport::TSSLSocket::TSSLSocket(boost::shared_ptr<apache::thrift::transport::SSLContext>, boost::shared_ptr<int>)'
[  418s] /usr/bin/ld: CMakeFiles/ogon-session-manager.dir/common/otsapi/OTSApiServer.cpp.o: in function `apache::thrift::transport::OgonSSLSocketFactory::createSocket(int, boost::shared_ptr<int>)':
[  418s] ./obj-x86_64-linux-gnu/session-manager/./session-manager/common/otsapi/OgonServerSSL.h:78: undefined reference to `apache::thrift::transport::TSSLSocket::TSSLSocket(boost::shared_ptr<apache::thrift::transport::SSLContext>, int, boost::shared_ptr<int>)'
[  418s] /usr/bin/ld: CMakeFiles/ogon-session-manager.dir/common/otsapi/OTSApiServer.cpp.o: in function `apache::thrift::transport::OgonSSLSocketFactory::createSocket(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int, boost::shared_ptr<int>)':
[  418s] ./obj-x86_64-linux-gnu/session-manager/./session-manager/common/otsapi/OgonServerSSL.h:90: undefined reference to `apache::thrift::transport::TSSLSocket::TSSLSocket(boost::shared_ptr<apache::thrift::transport::SSLContext>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, boost::shared_ptr<int>)'
[  418s] /usr/bin/ld: CMakeFiles/ogon-session-manager.dir/common/otsapi/OTSApiServer.cpp.o: in function `apache::thrift::transport::OgonSSLSocketFactory::createSocket(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, int)':
[  418s] ./obj-x86_64-linux-gnu/session-manager/./session-manager/common/otsapi/OgonServerSSL.h:63: undefined reference to `apache::thrift::transport::TSSLSocket::TSSLSocket(boost::shared_ptr<apache::thrift::transport::SSLContext>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int)'

Any ideas?

Bye,
  Marcel


Reply to: