Yup, that fixed it for me, just compiled a fresh moses and the server is compiled and working. Thanks a lot! It's great to see an open-source software with such an awesome community and support.
Best regards, Tamas On Wed, Nov 30, 2011 at 1:53 PM, Kenneth Heafield <[email protected]> wrote: > Fair enough. I've rewritten the test. Does it work now? This library > is harder to link against than SRILM. . . > > Kenneth > > On 11/30/11 12:19, Kádár Tamás (KTamas) wrote: >> Hi >> >> This is what I get: >> >> g++ -include xmlrpc-c/base.hpp -lxmlrpc_server_abyss++ -x c++ - >> <<<'int main() {}' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libxmlrpc_server_abyss++.so: >> undefined reference to `xmlrpc_c::registryPtr::get() const' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libxmlrpc_server_abyss++.so: >> undefined reference to `ServerSetKeepaliveMaxConn' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libxmlrpc_server_abyss++.so: >> undefined reference to `ServerRunConn' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libxmlrpc_server_abyss++.so: >> undefined reference to >> `girmem::autoObjectPtr::operator=(girmem::autoObjectPtr const&)' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libxmlrpc_server_abyss++.so: >> undefined reference to `ServerFree' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libxmlrpc_server_abyss++.so: >> undefined reference to `xmlrpc_c::registryPtr::registryPtr()' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libxmlrpc_server_abyss++.so: >> undefined reference to `xmlrpc_c::registry::c_registry() const' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libxmlrpc_server_abyss++.so: >> undefined reference to `ServerCreate' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libxmlrpc_server_abyss++.so: >> undefined reference to `xmlrpc_c::registryPtr::operator->() const' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libxmlrpc_server_abyss++.so: >> undefined reference to `girmem::autoObjectPtr::~autoObjectPtr()' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libxmlrpc_server_abyss++.so: >> undefined reference to `ServerRunOnce' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libxmlrpc_server_abyss++.so: >> undefined reference to `girerr::throwf(char const*, ...)' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libxmlrpc_server_abyss++.so: >> undefined reference to `ServerInit' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libxmlrpc_server_abyss++.so: >> undefined reference to `ServerSetKeepaliveTimeout' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libxmlrpc_server_abyss++.so: >> undefined reference to `ServerCreateNoAccept' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libxmlrpc_server_abyss++.so: >> undefined reference to `DateInit' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libxmlrpc_server_abyss++.so: >> undefined reference to `xmlrpc_server_abyss_set_handlers2' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libxmlrpc_server_abyss++.so: >> undefined reference to `girmem::autoObjectPtr::~autoObjectPtr()' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libxmlrpc_server_abyss++.so: >> undefined reference to `ServerSetTimeout' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libxmlrpc_server_abyss++.so: >> undefined reference to `ServerCreateSocket' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libxmlrpc_server_abyss++.so: >> undefined reference to `ServerSetAdvertise' >> /usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/libxmlrpc_server_abyss++.so: >> undefined reference to `ServerRun' >> collect2: ld returned 1 exit status >> >> However, I have these packages installed: >> >> libxmlrpc-c3, libxmlrpc-c3-dev, libxmlrpc-core-c3, libxmlrpc-core-c3-dev >> >> I also downloaded and compiled and installed the lastest xmlrpc-c from svn... >> >> KT >> >> >> On Wed, Nov 30, 2011 at 9:59 AM, Kenneth Heafield<[email protected]> >> wrote: >>> Hi, >>> >>> If xmlrpc-c is installed in standard paths including the abyss server >>> option, then the following command should return zero when run from bash: >>> >>> g++ -include xmlrpc-c/base.hpp -lxmlrpc_server_abyss++ -x c++ -<<<'int >>> main() {}' >>> >>> and server will be compiled automatically. Otherwise, it expects a path >>> as in --with-xmlrpc-c=/path/to/xmlrpc-c to which it will append to run: >>> >>> /path/to/xmlrpc-c/bin/xmlrpc-c-config c++2 abyss-server --libs >>> /path/to/xmlrpc-c/bin/xmlrpc-c-config c++2 abyss-server --cflags >>> >>> Expecting a path to the top-level directory of installation is >>> consistent with the behavior of other --with flags but different from >>> how autotools did it. This was documented in --help; I just committed a >>> change that performs more error checking. >>> >>> Also, the --install option is now dead (a no-op) and replaced with >>> --prefix by popular demand. Note that this installs in bin and lib >>> directories. >>> >>> Kenneth >>> >>> On 11/30/11 01:48, Kádár Tamás (KTamas) wrote: >>>> Hi >>>> >>>> Sorry for the newbie question, but I can't quite figure out how to >>>> build moses server under the new bjam building system. >>>> >>>> Right now I've built it with: >>>> >>>> ./bjam --with-irstlm=/usr/local/irstlm --with-xmlrpc-c -j2 >>>> --install=/usr/local --with-giza=/home/ubuntu/bin >>>> >>>> That compiles moses and most of the stuff, but not the server. >>>> >>>> Thanks and best regards, >>>> Tamas >>>> _______________________________________________ >>>> Moses-support mailing list >>>> [email protected] >>>> http://mailman.mit.edu/mailman/listinfo/moses-support >> _______________________________________________ >> Moses-support mailing list >> [email protected] >> http://mailman.mit.edu/mailman/listinfo/moses-support > > _______________________________________________ > Moses-support mailing list > [email protected] > http://mailman.mit.edu/mailman/listinfo/moses-support _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
