hns - 日記自動生成システム - Version 2.19.9

先月 2019年10月 来月
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2019年10月26日() 旧暦 [n年日記] [更新:"2019/10/26 05:55:51"]

#1 [PC] Power Supply Antec EA-380D

Antec EA-380D という型番の PC 用電源が故障している
電源を入れると、一応入るが、しばらくすると切れてしまう。 特にふくれているような電解コンデンサ (Chemial Capaciter) は見えない。 一番大きな 220 uF 450V を外して測って見たが、一応 216 uF くらいあると なっている(低い電圧で測定)。


2019年10月21日(月) 旧暦 [n年日記] [更新:"2019/10/20 21:44:29"]

#1 [pkgsrc] perl parallel problem on adapta-gtk-theme-3.95.0.11nb2

cd ./gtk-2.0 && ./recolor-gtk2.sh
cd ./sass && /usr/pkg/bin/parallel --null --no-notice --line-buffer --jobs 100% ::: \
        "/usr/pkg/bin/sassc -M -t compact 3.20/gtk.scss ../gtk-3.20/gtk-contained.css" \
        "/usr/pkg/bin/sassc -M -t compact 3.20/gtk-dark.scss ../gtk-3.20/gtk-contained-dark.css" \
        "/usr/pkg/bin/sassc -M -t compact 3.20/gtk-eta.scss ../gtk-3.20-eta/gtk-contained.css" \
        "/usr/pkg/bin/sassc -M -t compact 3.20/gtk-dark-eta.scss ../gtk-3.20-eta/gtk-contained-dark.css" \
        "/usr/pkg/bin/sassc -M -t compact 3.22/gtk.scss ../gtk-3.22/gtk-contained.css" \
        "/usr/pkg/bin/sassc -M -t compact 3.22/gtk-dark.scss ../gtk-3.22/gtk-contained-dark.css" \
        "/usr/pkg/bin/sassc -M -t compact 3.22/gtk-eta.scss ../gtk-3.22-eta/gtk-contained.css" \
        "/usr/pkg/bin/sassc -M -t compact 3.22/gtk-dark-eta.scss ../gtk-3.22-eta/gtk-contained-dark.css" \
        "/usr/pkg/bin/sassc -M -t compact 3.24/gtk.scss ../gtk-3.24/gtk-contained.css" \
        "/usr/pkg/bin/sassc -M -t compact 3.24/gtk-dark.scss ../gtk-3.24/gtk-contained-dark.css" \
        "/usr/pkg/bin/sassc -M -t compact 3.24/gtk-eta.scss ../gtk-3.24-eta/gtk-contained.css" \
        "/usr/pkg/bin/sassc -M -t compact 3.24/gtk-dark-eta.scss ../gtk-3.24-eta/gtk-contained-dark.css"
parallel: Warning: Cannot figure out number of CPU cores. Using 1.
compound selectors may no longer be extended.
Consider `@extend ${compound.components.join(', ')}` instead.
See http://bit.ly/ExtendCompound for details.

sassc infinite loop ?:

load averages:  1.00,  1.00,  1.00;               up 8+14:12:55                                     06:39:20
36 processes: 33 sleeping, 3 on CPU
CPU states: 25.0% user,  0.0% nice,  0.2% system,  0.0% interrupt, 74.8% idle
Memory: 1234M Act, 5772K Inact, 31M Wired, 15M Exec, 184M File, 11G Free
Swap: 16G Total, 8420K Used, 16G Free

  PID USERNAME PRI NICE   SIZE   RES STATE      TIME   WCPU    CPU COMMAND
23377 makoto    25    0    40M   16M CPU/2    645:21 99.02% 99.02% sassc
    0 root       0    0     0K   21M CPU/3     70:03  0.00%  4.15% [system]
  229 root      85    0    38M   20M select/3   4:17  0.00%  0.00% amd
  338 root      85    0    30M   16M pause/2    0:48  0.00%  0.00% ntpd
  167 root      85    0    32M 2172K kqueue/3   0:45  0.00%  0.00% syslogd


2019年10月20日() 旧暦 [n年日記] [更新:"2019/10/20 12:05:27"]

#1 [pkgsrc] The number of success package by bulkbuild now over 20k

It is the first time when the number of success packages exceeds 20k










2019年10月19日() 旧暦 [n年日記] [更新:"2019/10/20 13:49:03"]

#1 [security] How to check the Validity of certificate

This is the example of port 993 (imaps) for imap4.example.com server to check the expiring date of the cert.pem (etc)
%  openssl x509 -text -noout -in <(openssl s_client -connect imap4.example.com:993 )  | grep -A3 Validity
depth=2 O = Digital Signature Trust Co., CN = DST Root CA X3
verify return:1
depth=1 C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3
verify return:1
depth=0 CN = imap4.example.com
verify return:1
        Validity
            Not Before: Oct  9 12:42:44 2019 GMT
            Not After : Jan  7 12:42:44 2020 GMT
        Subject: CN = imap4.example.com


2019年10月14日(月) 旧暦 [n年日記] [更新:"2019/10/14 11:44:36"]

#1 [pkgsrc] ham/gnuradio-core

gnuradio-core-3.7.13.5nb3/build.log
[ 50%] Linking CXX executable gnuradio-config-info
ld: ../lib/libgnuradio-runtime.so.3.7.13.5: undefined reference to `shm_open'
ld: ../lib/libgnuradio-runtime.so.3.7.13.5: undefined reference to `shm_unlink'
gmake[2]: ***
 [gnuradio-runtime/apps/CMakeFiles/gnuradio-config-info.dir/build.make:104:
 gnuradio-runtime/apps/gnuradio-config-info] Error 1

gmake[1]: *** [CMakeFiles/Makefile2:705:
  gnuradio-runtime/apps/CMakeFiles/gnuradio-config-info.dir/all] Error 2
tells orc is related
orc is updated recently. from 0.4.29 0.4.30

orc -> librt:

CF-SX3@makoto 13:44:22/191014(..pkg/lib)% ldd liborc-0.4.so.0.29.0      
liborc-0.4.so.0.29.0:
        -lm.0 => /usr/lib/libm.so.0
        -lc.12 => /usr/lib/libc.so.12
        -lrt.1 => /usr/lib/librt.so.1
        -lpthread.1 => /usr/lib/libpthread.so.1
CF-SX3@makoto 13:44:35/191014(..pkg/lib)% nm  /usr/lib/libpthread.so.1|grep shm_
CF-SX3@makoto 13:44:55/191014(..pkg/lib)% nm  /usr/lib/librt.so.1 |grep shm_
000000000000152e T shm_open
0000000000001578 T shm_unlink
CF-SX2@makoto 14:02:33/191014(..pkg/lib)% ldd liborc-0.4.so.0.30.0 
liborc-0.4.so.0.30.0:
        -lm.0 => /usr/lib/libm.so.0
        -lc.12 => /usr/lib/libc.so.12


2019年10月13日() 旧暦 [n年日記] [更新:"2019/10/20 11:57:11"]

#1 [pkgsrc] cyrus imapd and Let's Encrypt

openssl s_client -crlf -connect imap4.example.com:993:

BCF-SX2@makoto 16:00:55/191013(~)% openssl s_client -crlf -connect imap4.example.com:993
CONNECTED(00000005)
18446744073709551615:error:1408F10B:SSL routines:ssl3_get_record:
wrong version number:/usr/src/crypto/external/bsd/openssl/dist/ssl/record/ssl3_record.c:332:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 5 bytes and written 313 bytes
Verification: OK
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
Early data was not sent
Verify return code: 0 (ok)
---

openssl s_client -tls1 -connect imap4.example.com:993:

openssl s_client -tls1 -connect imap4.example.com:993
CONNECTED(00000005)
18446744073709551615:error:1408F10B:SSL routines:ssl3_get_record:
wrong version number:/usr/src/crypto/external/bsd/openssl/dist/ssl/record/ssl3_record.c:332:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 5 bytes and written 124 bytes
Verification: OK
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
    Protocol  : TLSv1
    Cipher    : 0000
    Session-ID: 
    Session-ID-ctx: 
    Master-Key: 
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    Start Time: 1571036057
    Timeout   : 7200 (sec)
    Verify return code: 0 (ok)
    Extended master secret: no
---

/usr/pkg/etc/imapd.conf:

tls_cert_file: /usr/pkg/etc/letsencrypt/live/imap4.example.com/fullchain.pem
tls_ca_file:   /usr/pkg/etc/letsencrypt/live/imap4.example.com/fullchain.pem
tls_key_file:  /usr/pkg/etc/letsencrypt/live/imap4.example.com/full+priv.pem

/usr/pkg/etc/letsencrypt/live:

imap4# cd /usr/pkg/etc/letsencrypt/live/imap4.example.com
       cat fullchain.pem privkey.pem > full+priv.pem
imap4# wc *pem
      31      33    1903 cert.pem
      27      29    1647 chain.pem
      86      94    5254 full+priv.pem
      58      62    3550 fullchain.pem
      28      32    1704 privkey.pem
     230     250   14058 total
Now I'm getting the last line as:
* OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE AUTH=LOGIN AUTH=PLAIN SASL-IR] imap4 Cyrus IMAP v2.4.16 server ready

pkg_info |grep cyrus:

imap4@root 16:46:02/191014(..pkg/etc)% pkg_info |grep cyrus
cyrus-sasl-2.1.25   Simple Authentication and Security Layer
cyrus-imapd-2.4.16nb1 Cyrus IMAP server
cyrus-saslauthd-2.1.25 Cyrus SASL plaintext authentication daemon


2019年10月05日() 旧暦 [n年日記] [更新:"2019/10/20 11:58:40"]

#1 [pkgsrc] lang/ghc on i386

gcc -o mkDerivedConstantsHdr -O
  -I/export/WRKOBJDIR/lang/ghc/work/ghc-6.4.2/ghc/includes
  -I/export/WRKOBJDIR/lang/ghc/work/ghc-6.4.2/libraries/base/include
  -I/export/WRKOBJDIR/lang/ghc/work/ghc-6.4.2/libraries/unix/include
  -I/export/WRKOBJDIR/lang/ghc/work/ghc-6.4.2/libraries/parsec/include
  -I/export/WRKOBJDIR/lang/ghc/work/ghc-6.4.2/libraries/readline/include
  mkDerivedConstants.o
ld: mkDerivedConstants.o: in function `__gmpn_add':
mkDerivedConstants.c:(.text+0xba): undefined reference to `__gmpn_add_n'
ld: mkDerivedConstants.o: in function `__gmpn_sub':
mkDerivedConstants.c:(.text+0x1f7): undefined reference to `__gmpn_sub_n'
ld: mkDerivedConstants.o: in function `deRefStablePtr':
mkDerivedConstants.c:(.text+0x287): undefined reference to `stable_ptr_table'
Makefile:119: recipe for target 'mkDerivedConstantsHdr' failed
gmake[3]: *** [mkDerivedConstantsHdr] Error 1
../mk/target.mk:1193: recipe for target 'boot' failed
gmake[2]: *** [boot] Error 1
gmake[2]: Leaving directory '/export/WRKOBJDIR/lang/ghc/work/ghc-6.4.2/ghc'
*** Error code 2

Stop.
make[1]: stopped in /export/CHROOT/usr/pkgsrc/lang/ghc
*** Error code 1



fat_entry.o:
00000000 T __gmpn_add_n
0000013c T __gmpn_add_n_init


localhost@makoto 10:52:46/191005(..lang/ghc)% grep -r fat_entry /export/WRKOBJDIR/lang/ghc/work/
Binary file /export/WRKOBJDIR/lang/ghc/work/.buildlink/lib/libgmp.a matches
localhost@makoto 10:53:33/191005(..lang/ghc)% 
  find  /export/WRKOBJDIR/lang/ghc/work/ -name  mkDerivedConstants\* 
/export/WRKOBJDIR/lang/ghc/work/ghc-6.8.3/includes/mkDerivedConstants.c
/export/WRKOBJDIR/lang/ghc/work/ghc-6.4.2/ghc/includes/mkDerivedConstants.c
/export/WRKOBJDIR/lang/ghc/work/ghc-6.4.2/ghc/includes/mkDerivedConstants.o

in directory patch:

localhost@makoto 11:05:34/191005(..lang/ghc)% 
(cd /export/WRKOBJDIR/lang/ghc/work/; diff -up ghc-6.4.2/ghc/includes/Makefile{.orig,})
--- ghc-6.4.2/ghc/includes/Makefile.orig        2006-03-28 22:47:04.000000000 +0900
+++ ghc-6.4.2/ghc/includes/Makefile     2019-10-05 11:02:16.810677055 +0900
@@ -116,7 +116,7 @@ else
 mkDerivedConstants.c : $(H_CONFIG) $(H_PLATFORM)
 
 mkDerivedConstantsHdr : mkDerivedConstants.o
-       $(CC) -o $@ $(CC_OPTS) $(LD_OPTS) mkDerivedConstants.o
+       $(CC) -o $@ $(CC_OPTS) $(LD_OPTS) -L/usr/pkg/lib -lgmp mkDerivedConstants.o
 
 DerivedConstants.h : mkDerivedConstantsHdr
        ./mkDerivedConstantsHdr >$@

after in directory edit:

gcc -o mkDerivedConstantsHdr -O
 -I/export/WRKOBJDIR/lang/ghc/work/ghc-6.4.2/ghc/includes
 -I/export/WRKOBJDIR/lang/ghc/work/ghc-6.4.2/librar ies/base/include
 -I/export/WRKOBJDIR/lang/ghc/work/ghc-6.4.2/libraries/unix/include
 -I/export/WRKOBJDIR/lang/ghc/work/ghc-6.4.2/libraries/parsec/include
 -I/export/WRKOBJDIR/lang/ghc/work/ghc-6.4.2/libraries/readline/include
 -L/usr/pkg/lib -lgmp mkDerivedConstants.o
ld: mkDerivedConstants.o: in function `deRefStablePtr':
mkDerivedConstants.c:(.text+0x287): undefined reference to `stable_ptr_table'
Makefile:119: recipe for target 'mkDerivedConstantsHdr' failed
gmake[3]: *** [mkDerivedConstantsHdr] Error 1
../mk/target.mk:1193: recipe for target 'boot' failed
gmake[2]: *** [boot] Error 1
gmake[2]: Leaving directory '/export/WRKOBJDIR/lang/ghc/work/ghc-6.4.2/ghc'
*** Error code 2

git clone:

url = https://gitlab.haskell.org/ghc/ghc
*   5700479 [2013-02-19 14:46:21 +0000] Merge branch 'master' of darcs.haskell.org:/srv/darcs//ghc @Ian Lynagh
|\  
| * 767663b [2013-02-18 17:48:43 +1100] DPH: free top-level variables don't prevent encapsulation @Manuel M T Chakravarty
| * dca3a28 [2013-02-18 10:22:57 +0000] 
    declare stable_ptr_table (should fix via-C compilation) @Simon Marlow


* 354cefe [2006-03-24 13:26:13 +0000] mkDerivedConstants.c depends on ghcplatform.h 
   I think this missing dep is what broke my parallel build I used make -j2 
   with ghc-6.4.2.20060323 and got: @Duncan Coutts
86 2019-10-06 11:30 git checkout -f 5700479
localhost@makoto 11:30:32/191006(..git-work/ghc)% grep -r stable_ptr_table .
./includes/rts/Stable.h:extern DLL_IMPORT_RTS spEntry *stable_ptr_table;
./includes/rts/Stable.h:    return stable_ptr_table[(StgWord)sp].addr;


2019年10月02日(水) 旧暦 [n年日記] [更新:"2019/10/05 05:16:17"]

#1 [] battery

75D23L Atlas battery 7,060 円
2010/03 から 9 年間使ったらしい




最近の日記
2024年07月03日
kicad oddity
2024年05月08日
comparison on ./buildsh tools
2024年05月06日
py-setuptools (python 3.11.9)
make release took 1 hours and 10 min
qemu invocation for 10.99.10
2024年05月05日
Windows 10 version
serial connection
bc bench
2024年05月04日
Trial on 10.99.10
another version (later trial) to succeed
以上、8 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)