Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Sep 2020 21:17:34 +0000 (UTC)
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r549635 - in head/science/crf++: . files
Message-ID:  <202009222117.08MLHY1Z009985@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: 0mp
Date: Tue Sep 22 21:17:33 2020
New Revision: 549635
URL: https://svnweb.freebsd.org/changeset/ports/549635

Log:
  Fix compilation on i386
  
  The error was:
  
    In file included from lbfgs.cpp:29:
    ./common.h:216:18: error: class member cannot be redeclared
      string_buffer& operator<<(size_t _n)             { _UITOA(_n); }
                     ^
    ./common.h:214:18: note: previous definition is here
      string_buffer& operator<<(unsigned int _n)       { _UITOA(_n); }
                     ^

Added:
  head/science/crf++/files/
  head/science/crf++/files/patch-common.h   (contents, props changed)
Modified:
  head/science/crf++/Makefile

Modified: head/science/crf++/Makefile
==============================================================================
--- head/science/crf++/Makefile	Tue Sep 22 21:08:54 2020	(r549634)
+++ head/science/crf++/Makefile	Tue Sep 22 21:17:33 2020	(r549635)
@@ -5,6 +5,7 @@ PORTNAME=	crf++
 # 0.59 as defined in
 # https://github.com/taku910/crfpp/commit/d78526835e4cfcc4822156724edda8a3839327c2
 DISTVERSION=	0.59
+PORTREVISION=	1
 CATEGORIES=	science math
 PATCH_SITES=	https://patch-diff.githubusercontent.com/raw/taku910/crfpp/pull/:pr
 PATCHFILES=	15.patch:-p1:pr \

Added: head/science/crf++/files/patch-common.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/science/crf++/files/patch-common.h	Tue Sep 22 21:17:33 2020	(r549635)
@@ -0,0 +1,11 @@
+--- common.h.orig	2020-09-22 21:00:58 UTC
++++ common.h
+@@ -211,7 +211,7 @@ class string_buffer: public std::string {
+   string_buffer& operator<<(int _n)                { _ITOA(_n); }
+   string_buffer& operator<<(long int _n)           { _ITOA(_n); }
+   string_buffer& operator<<(unsigned short int _n) { _UITOA(_n); }
+-  string_buffer& operator<<(unsigned int _n)       { _UITOA(_n); }
++  // string_buffer& operator<<(unsigned int _n)       { _UITOA(_n); }
+   //  string_buffer& operator<<(unsigned long int _n)  { _UITOA(_n); }
+   string_buffer& operator<<(size_t _n)             { _UITOA(_n); }
+   string_buffer& operator<<(char _n) {



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