Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xmlrpc-c build error #42

Open
a0s opened this issue Jan 3, 2017 · 6 comments
Open

xmlrpc-c build error #42

a0s opened this issue Jan 3, 2017 · 6 comments

Comments

@a0s
Copy link

a0s commented Jan 3, 2017

I try to start it on DO but some error was raised

gcc -c -o xmlrpc_libxml2.o -DNDEBUG -pthread -Wall -W -Wno-uninitialized -Wundef -Wimplicit -Wno-unknown-pragmas -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3  -Iblddir -Iblddir/include -Isrcdir/include -Isrcdir/lib/util/include  -I/usr/include/libxml2   xmlrpc_libxml2.c
xmlrpc_libxml2.c: In function 'xml_init':
xmlrpc_libxml2.c:61:29: warning: unused parameter 'envP' [-Wunused-parameter]
 xml_init(xmlrpc_env * const envP) {
                             ^
xmlrpc_libxml2.c: At top level:
xmlrpc_libxml2.c:430:20: error: unknown type name 'xmlParserCtx'
 removeDocSizeLimit(xmlParserCtx * const parserP ATTR_UNUSED) {
                    ^
xmlrpc_libxml2.c:455:14: error: unknown type name 'xmlParserCtx'
              xmlParserCtx ** const parserPP) {
              ^
xmlrpc_libxml2.c: In function 'xml_parse':
xmlrpc_libxml2.c:491:5: warning: implicit declaration of function 'createParser' [-Wimplicit-function-declaration]
     createParser(envP, &context, &parserP);
     ^
/usr/local/src/xmlrpc-c/common.mk:336: recipe for target 'xmlrpc_libxml2.o' failed
make[1]: *** [xmlrpc_libxml2.o] Error 1
make[1]: Leaving directory '/usr/local/src/xmlrpc-c/src'
/usr/local/src/xmlrpc-c/common.mk:375: recipe for target 'src/all' failed
make: *** [src/all] Error 2
The command '/bin/sh -c build_deps="automake build-essential ca-certificates libc-ares-dev libcppunit-dev libtool";     build_deps="${build_deps} libssl-dev libxml2-dev libncurses5-dev pkg-config subversion wget";     set -x &&     apt-get update && apt-get install -q -y --no-install-recommends ${build_deps} &&     wget http://curl.haxx.se/download/curl-7.39.0.tar.gz &&     tar xzvfp curl-7.39.0.tar.gz &&     cd curl-7.39.0 &&     ./configure --enable-ares --enable-tls-srp --enable-gnu-tls --with-zlib --with-ssl &&     make &&     make install &&     cd .. &&     rm -rf curl-* &&     ldconfig &&     svn --trust-server-cert checkout https://svn.code.sf.net/p/xmlrpc-c/code/stable/ xmlrpc-c &&     cd xmlrpc-c &&     ./configure --enable-libxml2-backend --disable-abyss-server --disable-cgi-server &&     make &&     make install &&     cd .. &&     rm -rf xmlrpc-c &&     ldconfig &&     wget -O libtorrent-$VER_LIBTORRENT.tar.gz https://github.com/rakshasa/libtorrent/archive/$VER_LIBTORRENT.tar.gz &&     tar xzf libtorrent-$VER_LIBTORRENT.tar.gz &&     cd libtorrent-$VER_LIBTORRENT &&     ./autogen.sh &&     ./configure --with-posix-fallocate &&     make &&     make install &&     cd .. &&     rm -rf libtorrent-* &&     ldconfig &&     wget -O rtorrent-$VER_RTORRENT.tar.gz https://github.com/rakshasa/rtorrent/archive/$VER_RTORRENT.tar.gz &&     tar xzf rtorrent-$VER_RTORRENT.tar.gz &&     cd rtorrent-$VER_RTORRENT &&     ./autogen.sh &&     ./configure --with-xmlrpc-c --with-ncurses &&     make &&     make install &&     cd .. &&     rm -rf rtorrent-* &&     ldconfig &&     mkdir -p /usr/share/nginx/html &&     cd /usr/share/nginx/html &&     mkdir rutorrent &&     curl -L -O https://github.com/Novik/ruTorrent/archive/master.tar.gz &&     tar xzvf master.tar.gz -C rutorrent --strip-components 1 &&     rm -rf *.tar.gz &&     apt-get purge -y --auto-remove ${build_deps} &&     apt-get autoremove -y' returned a non-zero code: 2

docker -v
Docker version 1.12.1, build 23cf638
cat /etc/issue
Ubuntu 16.04.1 LTS \n \l
uname -a
Linux proxy 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:59:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

a0s added a commit to a0s/docktorrent that referenced this issue Jan 3, 2017
@Kagu-chan
Copy link

Still dont work.

+ make
make: *** No targets specified and no makefile found.  Stop.
The command '/bin/sh -c build_deps="automake build-essential ca-certificates libc-ares-dev libcppunit-dev libtool";     build_deps="${build_deps} libssl-dev libxml2-dev libncurses5-dev pkg-config subversion wget";     set -x &&     apt-get update && apt-get install -q -y --no-install-recommends ${build_deps} &&     wget http://curl.haxx.se/download/curl-7.39.0.tar.gz &&     tar xzvfp curl-7.39.0.tar.gz &&     cd curl-7.39.0 &&     ./configure --enable-ares --enable-tls-srp --enable-gnu-tls --with-zlib --with-ssl &&     make &&     make install &&     cd .. &&     rm -rf curl-* &&     ldconfig &&     apt-get -y install libxmlrpc-core-c3 libxmlrpc-core-c3-dev &&     make &&     make install &&     cd .. &&     rm -rf xmlrpc-c &&     ldconfig &&     wget -O libtorrent-$VER_LIBTORRENT.tar.gz https://github.com/rakshasa/libtorrent/archive/$VER_LIBTORRENT.tar.gz &&     tar xzf libtorrent-$VER_LIBTORRENT.tar.gz &&     cd libtorrent-$VER_LIBTORRENT &&     ./autogen.sh &&     ./configure --with-posix-fallocate &&     make &&     make install &&     cd .. &&     rm -rf libtorrent-* &&     ldconfig &&     wget -O rtorrent-$VER_RTORRENT.tar.gz https://github.com/rakshasa/rtorrent/archive/$VER_RTORRENT.tar.gz &&     tar xzf rtorrent-$VER_RTORRENT.tar.gz &&     cd rtorrent-$VER_RTORRENT &&     ./autogen.sh &&     ./configure --with-xmlrpc-c --with-ncurses &&     make &&     make install &&     cd .. &&     rm -rf rtorrent-* &&     ldconfig &&     mkdir -p /usr/share/nginx/html &&     cd /usr/share/nginx/html &&     mkdir rutorrent &&     curl -L -O https://github.com/Novik/ruTorrent/archive/master.tar.gz &&     tar xzvf master.tar.gz -C rutorrent --strip-components 1 &&     rm -rf *.tar.gz &&     apt-get purge -y --auto-remove ${build_deps} &&     apt-get autoremove -y' returned a non-zero code: 2
-    svn --trust-server-cert checkout https://svn.code.sf.net/p/xmlrpc-c/code/stable/ xmlrpc-c && \
-    cd xmlrpc-c && \
-    ./configure --enable-libxml2-backend --disable-abyss-server --disable-cgi-server && \
+    #svn --trust-server-cert checkout https://svn.code.sf.net/p/xmlrpc-c/code/stable/ xmlrpc-c && \
+    #cd xmlrpc-c && \
+    #./configure --enable-libxml2-backend --disable-abyss-server --disable-cgi-server && \
+    apt-get -y install libxmlrpc-core-c3 libxmlrpc-core-c3-dev && \

@DmitryZakharov
Copy link

./configure --disable-libwww-client --disable-wininet-client --disable-abyss-server --disable-cgi-server

that one will do , just built a new one locally

@rrouene
Copy link

rrouene commented Jan 19, 2017

I replaced https://svn.code.sf.net/p/xmlrpc-c/code/stable/ by https://svn.code.sf.net/p/xmlrpc-c/code/super_stable/ in Dockerfile. It works.

@derinsh0
Copy link

derinsh0 commented Dec 6, 2019

I tried super stable build, but I still get an error :/

(xmlrpc_libxml2.c:52:22: error: field 'cdata' has incomplete type
xmlrpc_mem_block cdata; /* char /
^
xmlrpc_libxml2.c:53:22: error: field 'children' has incomplete type
xmlrpc_mem_block children; /
xml_element* /
^
xmlrpc_libxml2.c: In function 'xml_init':
xmlrpc_libxml2.c:62:29: warning: unused parameter 'envP' [-Wunused-parameter]
xml_init(xmlrpc_env * const envP) {
^
xmlrpc_libxml2.c: In function 'xmlElementNew':
xmlrpc_libxml2.c:124:5: warning: implicit declaration of function 'XMLRPC_TYPED_MEM_BLOCK_INIT' [-Wimplicit-function-declaration]
XMLRPC_TYPED_MEM_BLOCK_INIT(char, envP, &retval->cdata, 0);
^
xmlrpc_libxml2.c:124:33: error: expected expression before 'char'
XMLRPC_TYPED_MEM_BLOCK_INIT(char, envP, &retval->cdata, 0);
^
xmlrpc_libxml2.c:129:33: error: expected expression before 'xml_element'
XMLRPC_TYPED_MEM_BLOCK_INIT(xml_element , envP, &retval->children, 0);
^
xmlrpc_libxml2.c: At top level:
xmlrpc_libxml2.c:431:20: error: unknown type name 'xmlParserCtx'
removeDocSizeLimit(xmlParserCtx * const parserP ATTR_UNUSED) {
^
xmlrpc_libxml2.c:456:14: error: unknown type name 'xmlParserCtx'
xmlParserCtx ** const parserPP) {
^
xmlrpc_libxml2.c: In function 'xml_parse':
xmlrpc_libxml2.c:496:5: warning: implicit declaration of function 'createParser' [-Wimplicit-function-declaration]
createParser(envP, &context, &parserP);
^
xmlrpc_libxml2.c: In function 'xml_element_cdata_size':
xmlrpc_libxml2.c:202:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
xmlrpc_libxml2.c: In function 'xml_element_cdata':
xmlrpc_libxml2.c:210:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
xmlrpc_libxml2.c: In function 'xml_element_children_size':
xmlrpc_libxml2.c:218:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
xmlrpc_libxml2.c: In function 'xml_element_children':
xmlrpc_libxml2.c:226:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[1]: *** [xmlrpc_libxml2.o] Error 1
/usr/local/src/xmlrpc-c/common.mk:342: recipe for target 'xmlrpc_libxml2.o' failed
make[1]: Leaving directory '/usr/local/src/xmlrpc-c/src'
make: *** [src/all] Error 2
/usr/local/src/xmlrpc-c/common.mk:381: recipe for target 'src/all' failed
The command '/bin/sh -c build_deps="automake build-essential ca-certificates libc-ares-dev libcppunit-dev libtool"; build_deps="${build_deps} libssl-dev libxml2-dev libncurses5-dev pkg-config subversion wget"; set -x && apt-get update && apt-get install -q -y --no-install-recommends ${build_deps} && wget http://curl.haxx.se/download/curl-7.39.0.tar.gz && tar xzvfp curl-7.39.0.tar.gz && cd curl-7.39.0 && ./configure --enable-ares --enable-tls-srp --enable-gnu-tls --with-zlib --with-ssl && make && make install && cd .. && rm -rf curl-
&& ldconfig && svn --trust-server-cert checkout https://svn.code.sf.net/p/xmlrpc-c/code/super_stable/ xmlrpc-c && cd xmlrpc-c && ./configure --enable-libxml2-backend --disable-abyss-server --disable-cgi-server && make && make install && cd .. && rm -rf xmlrpc-c && ldconfig && wget -O libtorrent-$VER_LIBTORRENT.tar.gz https://github.com/rakshasa/libtorrent/archive/$VER_LIBTORRENT.tar.gz && tar xzf libtorrent-$VER_LIBTORRENT.tar.gz && cd libtorrent-$VER_LIBTORRENT && ./autogen.sh && ./configure --with-posix-fallocate && make && make install && cd .. && rm -rf libtorrent-
&& ldconfig && wget -O rtorrent-$VER_RTORRENT.tar.gz https://github.com/rakshasa/rtorrent/archive/$VER_RTORRENT.tar.gz && tar xzf rtorrent-$VER_RTORRENT.tar.gz && cd rtorrent-$VER_RTORRENT && ./autogen.sh && ./configure --with-xmlrpc-c --with-ncurses && make && make install && cd .. && rm -rf rtorrent-* && ldconfig && mkdir -p /usr/share/nginx/html && cd /usr/share/nginx/html && mkdir rutorrent && curl -L -O https://github.com/Novik/ruTorrent/archive/master.tar.gz && tar xzvf master.tar.gz -C rutorrent --strip-components 1 && rm -rf *.tar.gz && apt-get purge -y --auto-remove ${build_deps} && apt-get autoremove -y' returned a non-zero code: 2)

@angelfor3v3r
Copy link

I tried super stable build, but I still get an error :/

(xmlrpc_libxml2.c:52:22: error: field 'cdata' has incomplete type
...

Same here, the error is happening from inside xmlrpc_libxml2.c in xmlrpc-c code, did something happen during his updates?

@angelfor3v3r
Copy link

this build error was fixed in the latest version of xmlrpc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants