Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#15443 closed defect (fixed)

xmlrpc-c 1.06.11 build failure

Reported by: fahrennheit451@… Owned by: pguyot (Paul Guyot)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: blb@…
Port: xmlrpc-c

Description

i am trying to compile xmlrpc-c 1.06.11 on my macbook c2d running 10.5.2. the previous dependencies install correctly, but i get this when i run sudo port install xmlrpc-c:

RodieMacBook:~ rodie$ sudo port install xmlrpc-c
--->  Building xmlrpc-c with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.11" && make all " returned error 2
Command output: make -C include/ -f /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.11/./include/Makefile \
	    all 
make[1]: Nothing to be done for `all'.
make -C lib/ -f /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.11/./lib/Makefile \
	    all 
make -C util/ -f /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.11/lib/../lib/util/Makefile \
	    all 
make[2]: Nothing to be done for `all'.
make -C libutil/ -f /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.11/lib/../lib/libutil/Makefile \
	    all 
make[2]: Nothing to be done for `all'.
make -C abyss/ -f /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.11/lib/../lib/abyss/Makefile \
	    all 
make -C src/ -f /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.11/lib/abyss/../../lib/abyss/src/Makefile \
	    all 
make[3]: Nothing to be done for `all'.
make -C curl_transport/ -f /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.11/lib/../lib/curl_transport/Makefile \
	    all 
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.11/lib/curl_transport/../../libtool --mode=compile /usr/bin/gcc-4.0 -c -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.11/lib/curl_transport/../.. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.11/lib/curl_transport/../../include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.11/lib/curl_transport/../../lib/util/include -I/opt/local/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3   xmlrpc_curl_transport.c
/usr/bin/gcc-4.0 -c -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.11/lib/curl_transport/../.. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.11/lib/curl_transport/../../include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.11/lib/curl_transport/../../lib/util/include -I/opt/local/include -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 xmlrpc_curl_transport.c -o xmlrpc_curl_transport.o
xmlrpc_curl_transport.c:1217:69: error: macro "curl_easy_setopt" requires 3 arguments, but only 2 given
xmlrpc_curl_transport.c: In function 'setupCurlSession':
xmlrpc_curl_transport.c:1217: warning: statement with no effect
make[2]: *** [xmlrpc_curl_transport.lo] Error 1
make[1]: *** [curl_transport/all] Error 2
make: *** [lib/all] Error 2

Error: Status 1 encountered during processing.

i'm not sure why exactly it is failing...

Attachments (1)

xmlrpc-c.diff (777 bytes) - added by blb@… 11 years ago.
diff to Portfile

Download all attachments as: .zip

Change History (9)

comment:1 Changed 11 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to pguyot@…

Assigning to maintainer.

It looks like this is due to a change in the libcurl API. This means that (a) xmlrpc-c should have a dependency on curl, and (b) updating to the latest version should fix this problem.

comment:2 in reply to:  1 Changed 11 years ago by brian@…

Replying to jmr@macports.org:

Assigning to maintainer.

It looks like this is due to a change in the libcurl API. This means that (a) xmlrpc-c should have a dependency on curl, and (b) updating to the latest version should fix this problem.

I'd like to argue that your statement is at least partly incorrect:
I just installed macports and wanted to install xmlrpc-c. Curl was installed before xmlrpc-c due to another package depending on it, and still the same error as above is thrown when xmlrpc-c is being built.

A quick search on google reveals, that Gentoo and Debian have similar problems when installing xmlrpc-c against curl-7.18.1 (7.18.2 is the version macports installed)
http://bugs.gentoo.org/216139 provides a patch to solve this error (within xmlrpc-c NOT curl)
Line 1217 in lib/curl_transport/xmlrpc_curl_transport.c reads:

curl_easy_setopt(curlSessionP, CURLOPT_SSLENGINE_DEFAULT);

needing to be corrected to

curl_easy_setopt(curlSessionP, CURLOPT_SSLENGINE_DEFAULT,1);

As suggested by the patch from gentoo I manually changed it after xmlrpc-c failed and this solved the problem instantly, and xmlrpc-c compiled fine.
Maybe macports can supply a patch for all others?

Here's the gentoo patch in raw text, seeing as I don't know how to commit it to the ports. Note that the line needs to be changed to 1217 (aswell as adapting the version), for xmlrpc-c 1.06.11!!

--- xmlrpc-c-1.06.09/lib/curl_transport/xmlrpc_curl_transport.c.orig	2008-04-06 18:34:12.000000000 +0200
+++ xmlrpc-c-1.06.09/lib/curl_transport/xmlrpc_curl_transport.c	2008-04-06 18:34:35.000000000 +0200
@@ -1214,7 +1214,7 @@
             curl_easy_setopt(curlSessionP, CURLOPT_SSLENGINE,
                              curlSetupP->sslEngine);
         if (curlSetupP->sslEngineDefault)
-            curl_easy_setopt(curlSessionP, CURLOPT_SSLENGINE_DEFAULT);
+            curl_easy_setopt(curlSessionP, CURLOPT_SSLENGINE_DEFAULT,1);
         if (curlSetupP->sslVersion != XMLRPC_SSLVERSION_DEFAULT)
             curl_easy_setopt(curlSessionP, CURLOPT_SSLVERSION,
                              curlSetupP->sslVersion);

regards,
-Brian

comment:3 Changed 11 years ago by blb@…

Cc: blb@… added

The latest version of xmlrpc-c, 1.06.30, fixes this. Attaching a patch to update the port.

Changed 11 years ago by blb@…

Attachment: xmlrpc-c.diff added

diff to Portfile

comment:4 Changed 11 years ago by pguyot (Paul Guyot)

Resolution: fixed
Status: newclosed

Thanks for the patch. Committed in r38634.

comment:5 Changed 10 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:6 Changed 10 years ago by mike@…

I'm getting the same error. Trying to build on Mac OS X Server 10.5.8, with all updates installed.

Last login: Sun Sep 13 20:23:03 on ttys000
mac:~ user$ sudo port install rtorrent-devel +xmlrpc
Password:
--->  Computing dependencies for rtorrent-devel
--->  Fetching pkgconfig
--->  Attempting to fetch pkg-config-0.23.tar.gz from http://www.vg.kernel.org/pub/mirrors/gentoo/source/distfiles/
--->  Verifying checksum(s) for pkgconfig
--->  Extracting pkgconfig
--->  Configuring pkgconfig
--->  Building pkgconfig
--->  Staging pkgconfig into destroot
--->  Installing pkgconfig @0.23_1
--->  Activating pkgconfig @0.23_1
--->  Cleaning pkgconfig
--->  Fetching zlib
--->  Attempting to fetch zlib-1.2.3.tar.bz2 from http://www.zlib.net/
--->  Verifying checksum(s) for zlib
--->  Extracting zlib
--->  Applying patches to zlib
--->  Configuring zlib
--->  Building zlib
--->  Staging zlib into destroot
--->  Installing zlib @1.2.3_3
--->  Activating zlib @1.2.3_3
--->  Cleaning zlib
--->  Fetching curl
--->  Attempting to fetch curl-7.19.6.tar.bz2 from http://curl.sourceforge.net/download/
--->  Verifying checksum(s) for curl
--->  Extracting curl
--->  Configuring curl
--->  Building curl
--->  Staging curl into destroot
--->  Installing curl @7.19.6_0
--->  Activating curl @7.19.6_0
--->  Cleaning curl
--->  Fetching libsigcxx2
--->  Attempting to fetch libsigc++-2.2.4.2.tar.bz2 from ftp://ftp.cse.buffalo.edu/pub/Gnome/sources/libsigc++/2.2/
--->  Verifying checksum(s) for libsigcxx2
--->  Extracting libsigcxx2
--->  Configuring libsigcxx2
--->  Building libsigcxx2
--->  Staging libsigcxx2 into destroot
--->  Installing libsigcxx2 @2.2.4.2_0
--->  Activating libsigcxx2 @2.2.4.2_0
--->  Cleaning libsigcxx2
--->  Fetching openssl
--->  Attempting to fetch openssl-0.9.8k.tar.gz from http://www.openssl.org/source/
--->  Verifying checksum(s) for openssl
--->  Extracting openssl
--->  Applying patches to openssl
--->  Configuring openssl
--->  Building openssl
--->  Staging openssl into destroot
--->  Installing openssl @0.9.8k_0+darwin
--->  Activating openssl @0.9.8k_0+darwin
--->  Cleaning openssl
--->  Fetching libtorrent-devel
--->  Attempting to fetch libtorrent-0.12.5.tar.gz from http://distfiles.macports.org/libtorrent-devel
--->  Verifying checksum(s) for libtorrent-devel
--->  Extracting libtorrent-devel
--->  Configuring libtorrent-devel
--->  Building libtorrent-devel
--->  Staging libtorrent-devel into destroot
--->  Installing libtorrent-devel @0.12.5_0
--->  Activating libtorrent-devel @0.12.5_0
--->  Cleaning libtorrent-devel
--->  Fetching ncursesw
--->  Attempting to fetch ncurses-5.7.tar.gz from http://mirrors.ibiblio.org/pub/mirrors/gnu/ftp/gnu/ncurses
--->  Verifying checksum(s) for ncursesw
--->  Extracting ncursesw
--->  Configuring ncursesw
--->  Building ncursesw
--->  Staging ncursesw into destroot
--->  Installing ncursesw @5.7_0
--->  Activating ncursesw @5.7_0
--->  Cleaning ncursesw
--->  Fetching ncurses
--->  Verifying checksum(s) for ncurses
--->  Extracting ncurses
--->  Configuring ncurses
--->  Building ncurses
--->  Staging ncurses into destroot
--->  Installing ncurses @5.7_0
--->  Activating ncurses @5.7_0
--->  Cleaning ncurses
--->  Fetching libwww
--->  Attempting to fetch w3c-libwww-5.4.0.tgz from http://www.w3.org/Library/Distribution/
--->  Attempting to fetch ltconfig13 from http://distfiles.macports.org/libwww
--->  Attempting to fetch ltmain13 from http://distfiles.macports.org/libwww
--->  Verifying checksum(s) for libwww
--->  Extracting libwww
--->  Applying patches to libwww
--->  Configuring libwww
--->  Building libwww
--->  Staging libwww into destroot
--->  Installing libwww @5.4.0_1
--->  Activating libwww @5.4.0_1
--->  Cleaning libwww
--->  Fetching xmlrpc-c
--->  Attempting to fetch xmlrpc-c-1.06.30.tgz from http://voxel.dl.sourceforge.net/xmlrpc-c
--->  Verifying checksum(s) for xmlrpc-c
--->  Extracting xmlrpc-c
--->  Configuring xmlrpc-c
--->  Building xmlrpc-c
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30" && /usr/bin/make -j2 all " returned error 2
Command output: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../libtool --mode=compile /usr/bin/gcc-4.0 -c -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/.. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/.. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../lib/util/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../lib/abyss/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../lib/wininet_transport -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../lib/curl_transport -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../lib/libwww_transport  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../lib/expat/xmlparse  -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3   xmlrpc_client.c
ranlib .libs/libxmlrpc_server_abyss.a
creating libxmlrpc_server_abyss.la
(cd .libs && rm -f libxmlrpc_server_abyss.la && ln -s ../libxmlrpc_server_abyss.la libxmlrpc_server_abyss.la)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../libtool --mode=link /usr/bin/gcc-4.0 -o libxmlrpc_server_cgi.la -version-info 9:15:6   -rpath /opt/local/lib -L.libs -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../lib/libutil/.libs  \
	  xmlrpc_server_cgi.lo -lxmlrpc_util -lxmlrpc_server -lxmlrpc
rm -fr .libs/libxmlrpc_server_cgi.la .libs/libxmlrpc_server_cgi.* .libs/libxmlrpc_server_cgi.*
ar cru .libs/libxmlrpc_server_cgi.a  xmlrpc_server_cgi.o 
/usr/bin/gcc-4.0 -c -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/.. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/.. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../lib/util/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../lib/abyss/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../lib/wininet_transport -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../lib/curl_transport -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../lib/libwww_transport -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../lib/expat/xmlparse -DNDEBUG -Wall -Wundef -Wimplicit -W -Winline -Wundef -Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes -fno-common -g -O3 xmlrpc_client.c -o xmlrpc_client.o
ranlib .libs/libxmlrpc_server_cgi.a
xmlrpc_client.c: In function 'xmlrpc_client_start_rpc':
xmlrpc_client.c:708: warning: 'callXmlP' may be used uninitialized in this function
xmlrpc_client.c:827: warning: 'callInfoP' may be used uninitialized in this function
xmlrpc_client.c: In function 'xmlrpc_client_create':
xmlrpc_client.c:290: warning: 'transportparmSize' may be used uninitialized in this function
xmlrpc_client.c:288: warning: 'transportName' may be used uninitialized in this function
creating libxmlrpc_server_cgi.la
xmlrpc_client.c: In function 'xmlrpc_client_call2':
xmlrpc_client.c:484: warning: 'callXmlP' may be used uninitialized in this function
(cd .libs && rm -f libxmlrpc_server_cgi.la && ln -s ../libxmlrpc_server_cgi.la libxmlrpc_server_cgi.la)
echo timestamp > xmlrpc_client.lo
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../libtool --mode=link /usr/bin/gcc-4.0 -o libxmlrpc_client.la -version-info 9:15:6   -rpath /opt/local/lib -L.libs -L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../lib/libutil/.libs  \
	  xmlrpc_client.lo xmlrpc_client_global.lo  /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../lib/curl_transport/xmlrpc_curl_transport.lo /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../lib/libwww_transport/xmlrpc_libwww_transport.lo \
	  -lxmlrpc_util -lxmlrpc  -L/opt/local/lib -lcurl -L/opt/local/lib -L/opt/local/lib -lz -L/opt/local/lib -lwwwxml -lxmltok -lxmlparse -lwwwzip -lwwwinit -lwwwapp -lwwwhtml -lwwwtelnet -lwwwnews -lwwwhttp -lwwwmime -lwwwgopher -lwwwftp -lwwwfile -lwwwdir -lwwwcache -lwwwstream -lwwwmux -lwwwtrans -lwwwcore -lwwwutils -lmd5 -ldl -lz -L/opt/local/lib -lssl -lcrypto -lz \

rm -fr .libs/libxmlrpc_client.la .libs/libxmlrpc_client.* .libs/libxmlrpc_client.*
ar cru .libs/libxmlrpc_client.a  xmlrpc_client.o xmlrpc_client_global.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../lib/curl_transport/xmlrpc_curl_transport.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_xmlrpc-c/work/xmlrpc-c-1.06.30/src/../lib/libwww_transport/xmlrpc_libwww_transport.o 
ranlib .libs/libxmlrpc_client.a
creating libxmlrpc_client.la
(cd .libs && rm -f libxmlrpc_client.la && ln -s ../libxmlrpc_client.la libxmlrpc_client.la)

Error: The following dependencies failed to build: xmlrpc-c
Error: Status 1 encountered during processing.
mac:~ user$ 

What am I doing wrong? Is this something I can easily fix?

I'm leaving the ticket as closed, since I don't know the protocol here - please feel free to reopen it, if that's what's appropriate.

Thank you!

comment:7 in reply to:  6 Changed 10 years ago by blb@…

Keywords: xmlrpc-c removed
Port: xmlrpc-c added

Replying to mike@…:

I'm leaving the ticket as closed, since I don't know the protocol here - please feel free to reopen it, if that's what's appropriate.

Thank you!

Definitely looks different, please open a new ticket (and attach debug output, from running sudo port -d ...).

comment:8 Changed 10 years ago by mike@…

Thank you for the help! While creating the new ticket, I tried again, but forgot to include the -d. I don't understand why, but it works now - strange.

Note: See TracTickets for help on using tickets.