Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Sep 2019 15:22:06 +0000 (UTC)
From:      Piotr Kubaj <pkubaj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r512511 - in head/net/ulxmlrpcpp: . files
Message-ID:  <201909211522.x8LFM6D8051578@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkubaj
Date: Sat Sep 21 15:22:06 2019
New Revision: 512511
URL: https://svnweb.freebsd.org/changeset/ports/512511

Log:
  net/ulxmlrpcpp: fix build on GCC architectures
  
  Use new GCC because of:
  ulxr_value.cpp:895: error: 'snprintf' is not a member of 'std'
  
  Also add include cstring because of:
  ulxr_ssl_connection.cpp: In function 'int ulxr::password_cb(char*, int, int, void*)':
  ulxr_ssl_connection.cpp:63:3: error: 'strcpy' was not declared in this scope
  
  63 |   strcpy(buf, pass.c_str());
     |   ^~~~~~
  
  Approved by:	linimon (mentor)
  Differential Revision:	https://reviews.freebsd.org/D21720

Modified:
  head/net/ulxmlrpcpp/Makefile
  head/net/ulxmlrpcpp/files/patch-ulxmlrpcpp__contrib__ssl_connection.cpp
  head/net/ulxmlrpcpp/files/patch-ulxmlrpcpp__ulxr_ssl_connection.cpp

Modified: head/net/ulxmlrpcpp/Makefile
==============================================================================
--- head/net/ulxmlrpcpp/Makefile	Sat Sep 21 15:21:11 2019	(r512510)
+++ head/net/ulxmlrpcpp/Makefile	Sat Sep 21 15:22:06 2019	(r512511)
@@ -15,7 +15,7 @@ LIB_DEPENDS=	libexpat.so:textproc/expat2
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
-USES=		tar:bzip2 pathfix iconv libtool ssl
+USES=		compiler:c++11-lang tar:bzip2 pathfix iconv libtool ssl
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	PTHREAD_LIBS="-lpthread"
 INSTALL_TARGET=	install-strip

Modified: head/net/ulxmlrpcpp/files/patch-ulxmlrpcpp__contrib__ssl_connection.cpp
==============================================================================
--- head/net/ulxmlrpcpp/files/patch-ulxmlrpcpp__contrib__ssl_connection.cpp	Sat Sep 21 15:21:11 2019	(r512510)
+++ head/net/ulxmlrpcpp/files/patch-ulxmlrpcpp__contrib__ssl_connection.cpp	Sat Sep 21 15:22:06 2019	(r512511)
@@ -1,6 +1,14 @@
---- ulxmlrpcpp/contrib/ssl_connection.cpp.orig
+--- ulxmlrpcpp/contrib/ssl_connection.cpp.orig	2009-08-12 14:37:53 UTC
 +++ ulxmlrpcpp/contrib/ssl_connection.cpp
-@@ -227,7 +227,11 @@
+@@ -40,6 +40,7 @@
+ //STL
+ #include <deque>
+ #include <iostream>
++#include <cstring>
+ 
+ #include <errno.h>
+ 
+@@ -227,7 +228,11 @@ ULXR_API_IMPL(void) SSLConnection::initializeCTX()
  	if (ssl_ctx != 0)
      	    SSL_CTX_free(ssl_ctx);
  

Modified: head/net/ulxmlrpcpp/files/patch-ulxmlrpcpp__ulxr_ssl_connection.cpp
==============================================================================
--- head/net/ulxmlrpcpp/files/patch-ulxmlrpcpp__ulxr_ssl_connection.cpp	Sat Sep 21 15:21:11 2019	(r512510)
+++ head/net/ulxmlrpcpp/files/patch-ulxmlrpcpp__ulxr_ssl_connection.cpp	Sat Sep 21 15:22:06 2019	(r512511)
@@ -1,6 +1,14 @@
---- ulxmlrpcpp/ulxr_ssl_connection.cpp.orig
+--- ulxmlrpcpp/ulxr_ssl_connection.cpp.orig	2009-08-12 14:38:22 UTC
 +++ ulxmlrpcpp/ulxr_ssl_connection.cpp
-@@ -95,7 +95,11 @@
+@@ -40,6 +40,7 @@
+ #include <openssl/err.h>
+ #include <ulxmlrpcpp/ulxr_ssl_connection.h>
+ #include <ulxmlrpcpp/ulxr_except.h>
++#include <cstring>
+ 
+ 
+ static int s_server_session_id_context      = 1;
+@@ -95,7 +96,11 @@ ULXR_API_IMPL(void)
  ULXR_API_IMPL(void) SSLConnection::initializeCTX()
  {
    ULXR_TRACE(ULXR_PCHAR("initializeCTX"));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909211522.x8LFM6D8051578>