Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Aug 2021 17:37:15 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a845d74f33f9 - main - science/siconos: Fix run-time error 'Undefined symbol "ftime"'
Message-ID:  <202108121737.17CHbFjR058326@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a845d74f33f9d580da7d72d1c89c007d80c21e91

commit a845d74f33f9d580da7d72d1c89c007d80c21e91
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-08-12 17:10:13 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2021-08-12 17:37:12 +0000

    science/siconos: Fix run-time error 'Undefined symbol "ftime"'
    
    by adding define CLOCKTIME that changes the time function.
---
 science/siconos/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/science/siconos/Makefile b/science/siconos/Makefile
index 69175fd069b9..436e4f53a78b 100644
--- a/science/siconos/Makefile
+++ b/science/siconos/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	siconos
 DISTVERSION=	4.4.0.rc3
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	science
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -23,6 +23,8 @@ USE_LDCONFIG=	yes
 
 CMAKE_ARGS=	-DFREEBSD_PYTHON_VER=${PYTHON_VER}
 
+CFLAGS+=	-DCLOCKTIME -DCLOCKS_PER_SEC=128 # workaround for 'Undefined symbol "ftime"', see https://github.com/siconos/siconos/issues/411
+
 BINARY_ALIAS=	python3=${PYTHON_CMD}
 
 OPTIONS_DEFINE=		PYTHON



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