|
Namazu for hns による簡易全文検索 詳しくは 詳細指定/ヘルプを参照して下さい |
|||||||||||||||||||||||||||||||||||||||||||||||||
2022年04月27日(水) 旧暦 [n年日記] [更新:"2022/05/10 07:53:32"]#1 [pkgsrc] log1pl12:31 < mef> xen48# nm /usr/lib/libm.so |grep log1pl 12:31 < mef> xen48# nm /usr/lib/libm.so |grep log1p 12:31 < mef> 000000000001def0 T log1p 12:31 < mef> 0000000000018790 T log1pf 12:31 < mef> I'm looking for the symbol (function) log1pl 12:32 < mef> where is it ? 12:34 < mef> grep -r log1pl /usr/include/ /usr/pkg/include 12:34 < mef> may answer to my question 12:36 < mef> in /usr/include/math.h, there is a line, but not in /usr/lib/libm.so (?) 12:50 < mef> #ifdef notyet // missing log1pl __HAVE_LONG_DOUBLE 12:51 < mef> math/R-igraph (1.3.1) wants this log1pl ;-( 12:54 < mef> R-nimble-0.12.2 wants R-igraph (1.3.1) 00:51 < tnn> mef: I think you can just do #define log1pl(x) logl(1.0f+(x)) under #ifdef __NetBSD__ and ignore ieee epsilon semanticsmath/R-igraph)% patches/patch-src_vendor_plfit_hzeta.c:
$NetBSD: patch-src_vendor_plfit_hzeta.c,v 1.2 2022/05/03 00:24:20 mef Exp $
/* tweak the macro, not found in NetBSD as of 9.99.96 */
/* corrected by tnn. thanks */
--- src/vendor/plfit/hzeta.c.orig 2022-04-20 01:23:25.000000000 +0900
+++ src/vendor/plfit/hzeta.c 2022-04-29 00:33:15.125029161 +0900
@@ -64,6 +64,12 @@
#define M_LOG2E 1.44269504088896340735992468100 /* log_2 (e) */
#endif
+/* tweak the macro, not found in NetBSD as of 9.99.96 */
+#ifdef __NetBSD__
+#define log1pl(x) logl(1.0f+(x))
+#define expm1l(x) (expl(x) - 1.0f)
+#endif
+
/* imported from gsl_sf_result.h */
struct gsl_sf_result_struct {
( つっこみ )
#2 __sigaction_siginfo06:44 < mef> xen48@makoto 06:43:56/220427(..textproc/R-rmarkdown)% emacs /tmp/1 06:44 < mef> emacs: Undefined PLT symbol "__sigaction_siginfo" (symnum = 331 06:45 < mef> (emacs26, I've compiled on 9.99.93, but running on 9.99.82 ;-(, I'll update the latter) 06:45 < mef> Is that correct observation ?(cvs update as of 2022/04/10) on 9.99.93 host: h97@makoto 13:15:28/220426(..lib/libm)% nm /usr/lib/libc.so |grep sigaction_sigi 000000000019c052 T __sigaction_siginfo ( つっこみ )
|
最近の日記 2026年02月28日 ・my first script-fu 2026年01月29日 ・Die Fledermaus at New National theatre 2026/01/29 2025年12月25日 ・pbulk 11.99.3 (emacs30) 2025年11月22日 ・crash dump 2025年10月25日 ・recover from disk error | ||