2017年7月21日金曜日

PrimeNowを最速で注文するために調査したこと

PrimeNowのアプリをインストールしてCharlesでパケットを見る
→以下ドメインにリクエストを飛ばしていることがわかる
arcus-uswest.amazon.com アプリ開く度?
primenow.amazon.co.jp 主に商品情報などを取得
msh.amazon.co.jp カートに入れる際にリクエスト
fls-fe.amazon.co.jp 画像データなどを取得

2017年7月8日土曜日

lavabit/magmaをコンパイルする

The magma server daemon, is an encrypted email system with support for SMTP, POP, IMAP, HTTP and MOLTEN,. Additional support for DMTP and DMAP is currently in active development. 

エドワード・スノーデンも利用していたセキュアなメールプラットフォームmagmaを動かしてみます。

公式にも同様の手順がありますが、うまくコンパイルできなかったのでメモ
https://magmadaemon.org/

vagrantでも動かせるようですので、手っ取り早く試したい人はそちらを利用すると良いでしょう。今回は最小インストールしたCentOS7.3環境下でbuildします。

※依存ライブラリ等インストールが必要なので以下の文章すべて実行前に先読みしてください

githubからclone
git clone https://github.com/lavabit/magma
シンボリックリンクを作成
magma/dev/scripts/linkup.sh

# build.lib all
Starting at 10:35:06 PM on 07/07/2017
Finished googtap-extract at 10:35:06 PM on 07/07/2017
Finished zlib-extract at 10:35:06 PM on 07/07/2017
Finished gd-extract at 10:35:06 PM on 07/07/2017
Finished spf2-extract at 10:35:06 PM on 07/07/2017
Finished bzip2-extract at 10:35:06 PM on 07/07/2017
Finished dkim-extract at 10:35:06 PM on 07/07/2017
Finished jansson-extract at 10:35:07 PM on 07/07/2017
Finished checker-extract at 10:35:07 PM on 07/07/2017
Finished lzo-extract at 10:35:07 PM on 07/07/2017
Finished googtest-extract at 10:35:07 PM on 07/07/2017
Finished dspam-extract at 10:35:07 PM on 07/07/2017
Finished memcached-extract at 10:35:07 PM on 07/07/2017
Finished geoip-extract at 10:35:07 PM on 07/07/2017
Finished jpeg-extract at 10:35:07 PM on 07/07/2017
Finished tokyocabinet-extract at 10:35:07 PM on 07/07/2017
Finished png-extract at 10:35:07 PM on 07/07/2017
Finished freetype-extract at 10:35:07 PM on 07/07/2017
Finished curl-extract at 10:35:07 PM on 07/07/2017
Finished openssl-extract at 10:35:07 PM on 07/07/2017
Finished clamav-extract at 10:35:07 PM on 07/07/2017
Finished utf8proc-extract at 10:35:08 PM on 07/07/2017
Finished mysql-extract at 10:35:09 PM on 07/07/2017
Finished xml2-extract at 10:35:09 PM on 07/07/2017

Finished extract at 10:35:09 PM on 07/07/2017

Finished googtest-prep at 10:35:09 PM on 07/07/2017
Finished zlib-prep at 10:35:09 PM on 07/07/2017
Finished jpeg-prep at 10:35:09 PM on 07/07/2017
Finished dspam-prep at 10:35:09 PM on 07/07/2017
Finished utf8proc-prep at 10:35:09 PM on 07/07/2017
Finished freetype-prep at 10:35:09 PM on 07/07/2017
Finished bzip2-prep at 10:35:09 PM on 07/07/2017
Finished googtap-prep at 10:35:09 PM on 07/07/2017
Finished mysql-prep at 10:35:09 PM on 07/07/2017
Finished curl-prep at 10:35:09 PM on 07/07/2017
Finished memcached-prep at 10:35:09 PM on 07/07/2017
Finished lzo-prep at 10:35:09 PM on 07/07/2017
Finished png-prep at 10:35:09 PM on 07/07/2017
Finished geoip-prep at 10:35:09 PM on 07/07/2017
Finished xml2-prep at 10:35:09 PM on 07/07/2017
Finished tokyocabinet-prep at 10:35:09 PM on 07/07/2017
Finished dkim-prep at 10:35:09 PM on 07/07/2017
Finished openssl-prep at 10:35:10 PM on 07/07/2017
Finished checker-prep at 10:35:10 PM on 07/07/2017
Finished jansson-prep at 10:35:10 PM on 07/07/2017
Finished gd-prep at 10:35:10 PM on 07/07/2017
Finished spf2-prep at 10:35:10 PM on 07/07/2017
Finished clamav-prep at 10:35:10 PM on 07/07/2017
Finished prep at 10:35:10 PM on 07/07/2017
Finished zlib-build at 10:35:13 PM on 07/07/2017
openssl-build failed at 10:35:29 PM on 07/07/2017
build failed at 10:35:29 PM on 07/07/2017
all failed at 10:35:29 PM on 07/07/2017

依存関係インストール
yum install -y zlib-devel

[root@host-150-95-151-123 ~]# build.lib all

Starting at 10:37:57 PM on 07/07/2017

Finished jansson-extract at 10:37:57 PM on 07/07/2017
Finished spf2-extract at 10:37:57 PM on 07/07/2017
Finished zlib-extract at 10:37:57 PM on 07/07/2017
Finished bzip2-extract at 10:37:57 PM on 07/07/2017
Finished googtap-extract at 10:37:57 PM on 07/07/2017
Finished googtest-extract at 10:37:57 PM on 07/07/2017
Finished lzo-extract at 10:37:57 PM on 07/07/2017
Finished checker-extract at 10:37:57 PM on 07/07/2017
Finished jpeg-extract at 10:37:57 PM on 07/07/2017
Finished png-extract at 10:37:57 PM on 07/07/2017
Finished gd-extract at 10:37:57 PM on 07/07/2017
Finished dkim-extract at 10:37:57 PM on 07/07/2017
Finished geoip-extract at 10:37:57 PM on 07/07/2017
Finished tokyocabinet-extract at 10:37:57 PM on 07/07/2017
Finished memcached-extract at 10:37:57 PM on 07/07/2017
Finished dspam-extract at 10:37:57 PM on 07/07/2017
Finished freetype-extract at 10:37:57 PM on 07/07/2017
Finished curl-extract at 10:37:58 PM on 07/07/2017
Finished openssl-extract at 10:37:58 PM on 07/07/2017
Finished clamav-extract at 10:37:58 PM on 07/07/2017
Finished utf8proc-extract at 10:37:58 PM on 07/07/2017
Finished mysql-extract at 10:38:00 PM on 07/07/2017
Finished xml2-extract at 10:38:00 PM on 07/07/2017

Finished extract at 10:38:00 PM on 07/07/2017

Finished geoip-prep at 10:38:01 PM on 07/07/2017
Finished bzip2-prep at 10:38:01 PM on 07/07/2017
Finished jpeg-prep at 10:38:01 PM on 07/07/2017
Finished png-prep at 10:38:01 PM on 07/07/2017
Finished lzo-prep at 10:38:01 PM on 07/07/2017
Finished zlib-prep at 10:38:01 PM on 07/07/2017
Finished googtap-prep at 10:38:01 PM on 07/07/2017
Finished googtest-prep at 10:38:01 PM on 07/07/2017
Finished freetype-prep at 10:38:01 PM on 07/07/2017
Finished utf8proc-prep at 10:38:01 PM on 07/07/2017
Finished dspam-prep at 10:38:01 PM on 07/07/2017
Finished xml2-prep at 10:38:01 PM on 07/07/2017
Finished memcached-prep at 10:38:01 PM on 07/07/2017
Finished curl-prep at 10:38:01 PM on 07/07/2017
Finished dkim-prep at 10:38:01 PM on 07/07/2017
Finished checker-prep at 10:38:01 PM on 07/07/2017
Finished mysql-prep at 10:38:01 PM on 07/07/2017
Finished openssl-prep at 10:38:01 PM on 07/07/2017
Finished jansson-prep at 10:38:01 PM on 07/07/2017
Finished tokyocabinet-prep at 10:38:01 PM on 07/07/2017
Finished gd-prep at 10:38:01 PM on 07/07/2017
Finished spf2-prep at 10:38:01 PM on 07/07/2017
Finished clamav-prep at 10:38:01 PM on 07/07/2017

Finished prep at 10:38:01 PM on 07/07/2017

Finished zlib-build at 10:38:04 PM on 07/07/2017
Finished openssl-build at 10:41:31 PM on 07/07/2017
Finished mysql-build at 10:46:59 PM on 07/07/2017
Finished dspam-build at 10:47:13 PM on 07/07/2017
Finished curl-build at 10:48:09 PM on 07/07/2017
checker-build failed at 10:48:34 PM on 07/07/2017
build failed at 10:48:34 PM on 07/07/2017
all failed at 10:48:34 PM on 07/07/2017

また失敗してしまいました。

失敗する原因を探します
# ./magma/dev/scripts/builders/build.lib.sh checker-log
/root/magma/lib/sources/checker/missing: line 81: makeinfo: command not found

どうやらmakeinfoが使えないせいで失敗しているようです。
yum install texinfo
でインストール

単体テスト
# build.lib checker-build
Finished checker-build at 11:17:20 PM on 07/07/2017

成功したのでもう一度
# build.lib all

Starting at 11:18:14 PM on 07/07/2017

Finished googtap-extract at 11:18:15 PM on 07/07/2017
Finished bzip2-extract at 11:18:15 PM on 07/07/2017
Finished tokyocabinet-extract at 11:18:15 PM on 07/07/2017
Finished checker-extract at 11:18:15 PM on 07/07/2017
Finished gd-extract at 11:18:15 PM on 07/07/2017
Finished jpeg-extract at 11:18:15 PM on 07/07/2017
Finished geoip-extract at 11:18:15 PM on 07/07/2017
Finished dspam-extract at 11:18:15 PM on 07/07/2017
Finished spf2-extract at 11:18:15 PM on 07/07/2017
Finished lzo-extract at 11:18:15 PM on 07/07/2017
Finished jansson-extract at 11:18:15 PM on 07/07/2017
Finished zlib-extract at 11:18:15 PM on 07/07/2017
Finished googtest-extract at 11:18:15 PM on 07/07/2017
Finished dkim-extract at 11:18:15 PM on 07/07/2017
Finished png-extract at 11:18:15 PM on 07/07/2017
Finished memcached-extract at 11:18:15 PM on 07/07/2017
Finished freetype-extract at 11:18:15 PM on 07/07/2017
Finished curl-extract at 11:18:15 PM on 07/07/2017
Finished openssl-extract at 11:18:16 PM on 07/07/2017
Finished clamav-extract at 11:18:16 PM on 07/07/2017
Finished utf8proc-extract at 11:18:16 PM on 07/07/2017
Finished mysql-extract at 11:18:17 PM on 07/07/2017
Finished xml2-extract at 11:18:19 PM on 07/07/2017

Finished extract at 11:18:19 PM on 07/07/2017

Finished bzip2-prep at 11:18:19 PM on 07/07/2017
Finished freetype-prep at 11:18:19 PM on 07/07/2017
Finished jpeg-prep at 11:18:19 PM on 07/07/2017
Finished googtap-prep at 11:18:19 PM on 07/07/2017
Finished curl-prep at 11:18:19 PM on 07/07/2017
Finished png-prep at 11:18:19 PM on 07/07/2017
Finished mysql-prep at 11:18:19 PM on 07/07/2017
Finished dkim-prep at 11:18:19 PM on 07/07/2017
Finished openssl-prep at 11:18:19 PM on 07/07/2017
Finished checker-prep at 11:18:19 PM on 07/07/2017
Finished lzo-prep at 11:18:19 PM on 07/07/2017
Finished memcached-prep at 11:18:19 PM on 07/07/2017
Finished dspam-prep at 11:18:19 PM on 07/07/2017
Finished zlib-prep at 11:18:19 PM on 07/07/2017
Finished googtest-prep at 11:18:19 PM on 07/07/2017
Finished jansson-prep at 11:18:19 PM on 07/07/2017
Finished xml2-prep at 11:18:19 PM on 07/07/2017
Finished tokyocabinet-prep at 11:18:19 PM on 07/07/2017
Finished geoip-prep at 11:18:19 PM on 07/07/2017
Finished utf8proc-prep at 11:18:19 PM on 07/07/2017
Finished spf2-prep at 11:18:19 PM on 07/07/2017
Finished gd-prep at 11:18:19 PM on 07/07/2017
Finished clamav-prep at 11:18:19 PM on 07/07/2017

Finished prep at 11:18:19 PM on 07/07/2017

Finished zlib-build at 11:18:22 PM on 07/07/2017
Finished openssl-build at 11:21:43 PM on 07/07/2017
Finished mysql-build at 11:27:07 PM on 07/07/2017
Finished dspam-build at 11:27:22 PM on 07/07/2017
Finished curl-build at 11:28:20 PM on 07/07/2017
Finished checker-build at 11:28:47 PM on 07/07/2017
Finished png-build at 11:28:53 PM on 07/07/2017
Finished lzo-build at 11:29:09 PM on 07/07/2017
Finished jpeg-build at 11:29:16 PM on 07/07/2017
Finished spf2-build at 11:29:31 PM on 07/07/2017
Finished xml2-build at 11:29:51 PM on 07/07/2017
Finished dkim-build at 11:30:05 PM on 07/07/2017
Finished bzip2-build at 11:30:09 PM on 07/07/2017
Finished geoip-build at 11:30:21 PM on 07/07/2017
Finished jansson-build at 11:30:28 PM on 07/07/2017
Finished utf8proc-build at 11:30:28 PM on 07/07/2017
Finished freetype-build at 11:30:37 PM on 07/07/2017
Finished memcached-build at 11:35:01 PM on 07/07/2017
Finished tokyocabinet-build at 11:35:11 PM on 07/07/2017
Finished gd-build at 11:35:30 PM on 07/07/2017
Finished clamav-build at 11:36:32 PM on 07/07/2017
Finished googtest-build at 11:36:50 PM on 07/07/2017
Finished googtap-build at 11:36:50 PM on 07/07/2017

Finished build at 11:36:50 PM on 07/07/2017


Creating the shared object...

Finished creating the shared object at 11:37:03 PM on 07/07/2017



Checking the shared object... magmad.so loaded...

Fixing the permissions for the DIME, DKIM and TLS keys in the magma sandbox...

Finished googtap-check at 11:37:04 PM on 07/07/2017
Finished gd-check at 11:37:04 PM on 07/07/2017
Finished zlib-check at 11:37:04 PM on 07/07/2017
Finished freetype-check at 11:37:04 PM on 07/07/2017
Finished bzip2-check at 11:37:05 PM on 07/07/2017
Finished spf2-check at 11:37:05 PM on 07/07/2017
Finished dspam-check at 11:37:06 PM on 07/07/2017
Finished geoip-check at 11:37:07 PM on 07/07/2017
Finished jpeg-check at 11:37:08 PM on 07/07/2017
Finished utf8proc-check at 11:37:11 PM on 07/07/2017
Finished jansson-check at 11:37:44 PM on 07/07/2017


googtest-check failed at 11:38:21 PM on 07/07/2017


Finished xml2-check at 11:38:50 PM on 07/07/2017
Finished clamav-check at 11:38:53 PM on 07/07/2017
Finished tokyocabinet-check at 11:39:57 PM on 07/07/2017
Finished dkim-check at 11:40:36 PM on 07/07/2017
Finished memcached-check at 11:40:43 PM on 07/07/2017
Finished curl-check at 11:41:05 PM on 07/07/2017
Finished openssl-check at 11:41:22 PM on 07/07/2017
Finished png-check at 11:41:51 PM on 07/07/2017
Finished checker-check at 11:43:22 PM on 07/07/2017
Finished lzo-check at 11:43:55 PM on 07/07/2017
Finished mysql-check at 11:46:50 PM on 07/07/2017


check failed at 11:46:50 PM on 07/07/2017



Finished at 11:46:50 PM on 07/07/2017

googletestを入れます
yum install gtest gtest-devel

ログを見ます
 dev/scripts/builders/build.lib.sh googtest-log
============================================================================
Testsuite summary for Google C++ Testing Framework 1.7.0
============================================================================
# TOTAL: 4
# PASS:  4
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
make[2]: Leaving directory `/root/magma/lib/sources/googtest'
make[1]: Leaving directory `/root/magma/lib/sources/googtest'
/root/magma/dev/scripts/builders/build.lib.sh: line 1521: cmake: command not found

cmakeを入れます
# yum install cmake

# build.lib all

Starting at 01:12:10 AM on 07/08/2017

Finished googtap-extract at 01:12:10 AM on 07/08/2017
Finished jansson-extract at 01:12:10 AM on 07/08/2017
Finished geoip-extract at 01:12:11 AM on 07/08/2017
Finished bzip2-extract at 01:12:11 AM on 07/08/2017
Finished googtest-extract at 01:12:11 AM on 07/08/2017
Finished checker-extract at 01:12:11 AM on 07/08/2017
Finished lzo-extract at 01:12:11 AM on 07/08/2017
Finished zlib-extract at 01:12:11 AM on 07/08/2017
Finished tokyocabinet-extract at 01:12:11 AM on 07/08/2017
Finished jpeg-extract at 01:12:11 AM on 07/08/2017
Finished memcached-extract at 01:12:11 AM on 07/08/2017
Finished dspam-extract at 01:12:11 AM on 07/08/2017
Finished spf2-extract at 01:12:11 AM on 07/08/2017
Finished gd-extract at 01:12:11 AM on 07/08/2017
Finished png-extract at 01:12:11 AM on 07/08/2017
Finished dkim-extract at 01:12:11 AM on 07/08/2017
Finished freetype-extract at 01:12:11 AM on 07/08/2017
Finished curl-extract at 01:12:11 AM on 07/08/2017
Finished openssl-extract at 01:12:11 AM on 07/08/2017
Finished clamav-extract at 01:12:12 AM on 07/08/2017
Finished utf8proc-extract at 01:12:12 AM on 07/08/2017
Finished mysql-extract at 01:12:13 AM on 07/08/2017
Finished xml2-extract at 01:12:14 AM on 07/08/2017

Finished extract at 01:12:14 AM on 07/08/2017

Finished freetype-prep at 01:12:15 AM on 07/08/2017
Finished zlib-prep at 01:12:15 AM on 07/08/2017
Finished lzo-prep at 01:12:15 AM on 07/08/2017
Finished utf8proc-prep at 01:12:15 AM on 07/08/2017
Finished googtap-prep at 01:12:15 AM on 07/08/2017
Finished geoip-prep at 01:12:15 AM on 07/08/2017
Finished png-prep at 01:12:15 AM on 07/08/2017
Finished googtest-prep at 01:12:15 AM on 07/08/2017
Finished jpeg-prep at 01:12:15 AM on 07/08/2017
Finished curl-prep at 01:12:15 AM on 07/08/2017
Finished checker-prep at 01:12:15 AM on 07/08/2017
Finished dkim-prep at 01:12:15 AM on 07/08/2017
Finished mysql-prep at 01:12:15 AM on 07/08/2017
Finished bzip2-prep at 01:12:15 AM on 07/08/2017
Finished xml2-prep at 01:12:15 AM on 07/08/2017
Finished dspam-prep at 01:12:15 AM on 07/08/2017
Finished memcached-prep at 01:12:15 AM on 07/08/2017
Finished spf2-prep at 01:12:15 AM on 07/08/2017
Finished openssl-prep at 01:12:15 AM on 07/08/2017
Finished tokyocabinet-prep at 01:12:15 AM on 07/08/2017
Finished jansson-prep at 01:12:15 AM on 07/08/2017
Finished gd-prep at 01:12:15 AM on 07/08/2017
Finished clamav-prep at 01:12:15 AM on 07/08/2017

Finished prep at 01:12:15 AM on 07/08/2017

Finished zlib-build at 01:12:18 AM on 07/08/2017
Finished openssl-build at 01:15:33 AM on 07/08/2017
Finished mysql-build at 01:20:57 AM on 07/08/2017
Finished dspam-build at 01:21:11 AM on 07/08/2017
Finished curl-build at 01:22:07 AM on 07/08/2017
Finished checker-build at 01:22:33 AM on 07/08/2017
Finished png-build at 01:22:38 AM on 07/08/2017
Finished lzo-build at 01:22:54 AM on 07/08/2017
Finished jpeg-build at 01:23:01 AM on 07/08/2017
Finished spf2-build at 01:23:15 AM on 07/08/2017
Finished xml2-build at 01:23:36 AM on 07/08/2017
Finished dkim-build at 01:23:50 AM on 07/08/2017
Finished bzip2-build at 01:23:53 AM on 07/08/2017
Finished geoip-build at 01:24:06 AM on 07/08/2017
Finished jansson-build at 01:24:13 AM on 07/08/2017
Finished utf8proc-build at 01:24:13 AM on 07/08/2017
Finished freetype-build at 01:24:21 AM on 07/08/2017
Finished memcached-build at 01:28:44 AM on 07/08/2017
Finished tokyocabinet-build at 01:28:55 AM on 07/08/2017
Finished gd-build at 01:29:13 AM on 07/08/2017
Finished clamav-build at 01:30:14 AM on 07/08/2017
Finished googtest-build at 01:30:32 AM on 07/08/2017
Finished googtap-build at 01:30:32 AM on 07/08/2017

Finished build at 01:30:32 AM on 07/08/2017


Creating the shared object...

Finished creating the shared object at 01:30:40 AM on 07/08/2017



Checking the shared object... magmad.so loaded...

Fixing the permissions for the DIME, DKIM and TLS keys in the magma sandbox...

Finished googtap-check at 01:30:40 AM on 07/08/2017
Finished gd-check at 01:30:41 AM on 07/08/2017
Finished freetype-check at 01:30:41 AM on 07/08/2017
Finished zlib-check at 01:30:41 AM on 07/08/2017
Finished bzip2-check at 01:30:41 AM on 07/08/2017
Finished spf2-check at 01:30:42 AM on 07/08/2017
Finished dspam-check at 01:30:43 AM on 07/08/2017
Finished geoip-check at 01:30:44 AM on 07/08/2017
Finished jpeg-check at 01:30:44 AM on 07/08/2017
Finished utf8proc-check at 01:30:49 AM on 07/08/2017
Finished jansson-check at 01:31:27 AM on 07/08/2017
Finished googtest-check at 01:32:23 AM on 07/08/2017
Finished xml2-check at 01:32:24 AM on 07/08/2017
Finished clamav-check at 01:32:31 AM on 07/08/2017
Finished tokyocabinet-check at 01:33:33 AM on 07/08/2017
Finished dkim-check at 01:34:15 AM on 07/08/2017
Finished memcached-check at 01:34:15 AM on 07/08/2017
Finished curl-check at 01:34:46 AM on 07/08/2017
Finished openssl-check at 01:34:59 AM on 07/08/2017
Finished png-check at 01:35:28 AM on 07/08/2017
Finished checker-check at 01:36:57 AM on 07/08/2017
Finished lzo-check at 01:37:32 AM on 07/08/2017
Finished mysql-check at 01:40:32 AM on 07/08/2017

Finished check at 01:40:32 AM on 07/08/2017


Finished at 01:40:32 AM on 07/08/2017

成功しました。

#build.magma
# build.magma
Building src/magma.c
Building src/network/clients.c
Building src/network/read.c
Building src/network/connections.c
Building src/network/write.c
Building src/network/addresses.c
Building src/network/options.c
Building src/network/listeners.c
Building src/network/reverse.c
Building src/providers/symbols.c
Building src/providers/storage/tokyo.c
Building src/providers/storage/tank.c
Building src/providers/storage/data.c
Building src/providers/storage/tree.c
Building src/providers/dime/error_codes.c
Building src/providers/dime/dime_ctx.c
Building src/providers/dime/common/error.c
Building src/providers/dime/common/misc_pub.c
Building src/providers/dime/common/crypto.c
Building src/providers/dime/common/network_pub.c
Building src/providers/dime/common/misc.c
Building src/providers/dime/common/network.c
Building src/providers/dime/common/crypto_pub.c
Building src/providers/dime/dmessage/parser.c
Building src/providers/dime/dmessage/dmsg.c
Building src/providers/dime/signet/keys.c
Building src/providers/dime/signet/general.c
Building src/providers/dime/signet/signet.c
Building src/providers/dime/dmtp/commands.c
Building src/providers/dime/util/encrypt.c
Building src/providers/dime/util/encoding.c
Building src/providers/dime/ed25519/ed25519.c
Building src/providers/dime/sds/sds.c
Building src/providers/dime/signet-resolver/mrec.c
Building src/providers/dime/signet-resolver/ssl.c
Building src/providers/dime/signet-resolver/cache_pub.c
Building src/providers/dime/signet-resolver/dmtp_pub.c
Building src/providers/dime/signet-resolver/dns.c
Building src/providers/dime/signet-resolver/mrec_pub.c
Building src/providers/dime/signet-resolver/cache.c
Building src/providers/dime/signet-resolver/ssl_pub.c
Building src/providers/dime/signet-resolver/dmtp.c
Building src/providers/compress/zlib.c
Building src/providers/compress/lzo.c
Building src/providers/compress/bzip.c
Building src/providers/compress/engine.c
Building src/providers/compress/compress.c
Building src/providers/stacie/creation.c
Building src/providers/stacie/crypto.c
Building src/providers/stacie/passwords.c
Building src/providers/stacie/realms.c
Building src/providers/stacie/tokens.c
Building src/providers/deprecated/symmetric.c
Building src/providers/deprecated/cryptex.c
Building src/providers/deprecated/ecies.c
Building src/providers/deprecated/hmac.c
Building src/providers/deprecated/scramble.c
Building src/providers/database/results.c
Building src/providers/database/stmts.c
Building src/providers/database/query.c
Building src/providers/database/transaction.c
Building src/providers/database/mysql.c
Building src/providers/prime/prime.c
Building src/providers/prime/keys/users.c
Building src/providers/prime/keys/orgs.c
Building src/providers/prime/transposition/armored/pem.c
Building src/providers/prime/transposition/binary/fields.c
Building src/providers/prime/transposition/binary/headers.c
Building src/providers/prime/transposition/binary/objects.c
Building src/providers/prime/transposition/binary/unpack.c
Building src/providers/prime/transposition/binary/reader.c
Building src/providers/prime/cryptography/ed25519.c
Building src/providers/prime/cryptography/secp256k1.c
Building src/providers/prime/cryptography/aes.c
Building src/providers/prime/signets/users.c
Building src/providers/prime/signets/orgs.c
Building src/providers/prime/signets/requests.c
Building src/providers/prime/messages/messages.c
Building src/providers/prime/messages/parts/parts.c
Building src/providers/prime/messages/chunks/slots.c
Building src/providers/prime/messages/chunks/signature.c
Building src/providers/prime/messages/chunks/ephemeral.c
Building src/providers/prime/messages/chunks/chunks.c
Building src/providers/prime/messages/chunks/encrypted.c
Building src/providers/prime/messages/chunks/keks.c
Building src/providers/images/png.c
Building src/providers/images/gd.c
Building src/providers/images/jpeg.c
Building src/providers/images/freetype.c
Building src/providers/cryptography/ciphers.c
Building src/providers/cryptography/symmetric.c
Building src/providers/cryptography/cryptex.c
Building src/providers/cryptography/openssl.c
Building src/providers/cryptography/ecies.c
Building src/providers/cryptography/hmac.c
Building src/providers/cryptography/tls.c
Building src/providers/cryptography/parameters.c
Building src/providers/cryptography/hash.c
Building src/providers/cryptography/random.c
Building src/providers/cryptography/scramble.c
Building src/providers/cryptography/digest.c
Building src/providers/consumers/deserialization.c
Building src/providers/consumers/counters.c
Building src/providers/consumers/cache.c
Building src/providers/consumers/serialization.c
Building src/providers/checkers/dkim.c
Building src/providers/checkers/dspam.c
Building src/providers/checkers/clamav.c
Building src/providers/checkers/spf.c
Building src/providers/parsers/xml.c
Building src/providers/parsers/utf8.c
Building src/providers/parsers/json.c
Building src/web/teacher/datatier.c
Building src/web/teacher/teacher.c
Building src/web/statistics/datatier.c
Building src/web/statistics/statistics.c
Building src/web/contact/contact.c
Building src/web/contact/business.c
Building src/web/contact/abuse.c
Building src/web/register/captcha.c
Building src/web/register/sessions.c
Building src/web/register/datatier.c
Building src/web/register/business.c
Building src/web/register/abuse.c
Building src/web/register/register.c
Building src/web/json_api/helpers.c
Building src/web/json_api/json_api.c
Building src/web/json_api/endpoints.c
Building src/web/portal/endpoint.c
Building src/web/portal/contacts.c
Building src/web/portal/flags.c
Building src/web/portal/config.c
Building src/web/portal/folders.c
Building src/web/portal/mail.c
Building src/web/portal/parse.c
Building src/web/portal/messages.c
Building src/web/portal/portal.c
Building src/servers/pop/mailbox.c
Building src/servers/pop/sessions.c
Building src/servers/pop/pop.c
Building src/servers/pop/commands.c
Building src/servers/pop/parse.c
Building src/servers/smtp/checkers.c
Building src/servers/smtp/session.c
Building src/servers/smtp/relay.c
Building src/servers/smtp/datatier.c
Building src/servers/smtp/accept.c
Building src/servers/smtp/commands.c
Building src/servers/smtp/parse.c
Building src/servers/smtp/smtp.c
Building src/servers/smtp/transmit.c
Building src/servers/imap/flags.c
Building src/servers/imap/output.c
Building src/servers/imap/parse_address.c
Building src/servers/imap/folders.c
Building src/servers/imap/commands.c
Building src/servers/imap/sessions.c
Building src/servers/imap/fetch_response.c
Building src/servers/imap/parse.c
Building src/servers/imap/messages.c
Building src/servers/imap/range.c
Building src/servers/imap/search.c
Building src/servers/imap/imap.c
Building src/servers/imap/fetch.c
Building src/servers/dmtp/session.c
Building src/servers/dmtp/commands.c
Building src/servers/dmtp/parse.c
Building src/servers/dmtp/dmtp.c
Building src/servers/http/response.c
Building src/servers/http/errors.c
Building src/servers/http/data.c
Building src/servers/http/sessions.c
Building src/servers/http/parse.c
Building src/servers/http/content.c
Building src/servers/http/http.c
Building src/servers/molten/sessions.c
Building src/servers/molten/commands.c
Building src/servers/molten/molten.c
Building src/engine/status/build.c
Building src/engine/status/performance.c
Building src/engine/status/statistics.c
Building src/engine/status/status.c
Building src/engine/config/cache/cache.c
Building src/engine/config/servers/servers.c
Building src/engine/config/global/datatier.c
Building src/engine/config/global/global.c
Building src/engine/config/relay/relay.c
Building src/engine/controller/protocol.c
Building src/engine/controller/queue.c
Building src/engine/context/system.c
Building src/engine/context/sanity.c
Building src/engine/context/signal.c
Building src/engine/context/process.c
Building src/engine/context/args.c
Building src/engine/context/thread.c
Building src/engine/log/log.c
Building src/core/type.c
Building src/core/classify/ascii.c
Building src/core/encodings/zbase32.c
Building src/core/encodings/hex.c
Building src/core/encodings/qp.c
Building src/core/encodings/mappings.c
Building src/core/encodings/url.c
Building src/core/encodings/base64.c
Building src/core/buckets/pool.c
Building src/core/buckets/arrays.c
Building src/core/buckets/stacked.c
Building src/core/thread/keys.c
Building src/core/thread/rwlock.c
Building src/core/thread/mutex.c
Building src/core/thread/thread.c
Building src/core/host/host.c
Building src/core/host/tcp.c
Building src/core/host/spool.c
Building src/core/host/ip.c
Building src/core/host/errors.c
Building src/core/host/process.c
Building src/core/host/folder.c
Building src/core/host/signals.c
Building src/core/host/files.c
Building src/core/host/color.c
Building src/core/checksum/adler.c
Building src/core/checksum/crc.c
Building src/core/checksum/fletcher.c
Building src/core/checksum/murmur.c
Building src/core/indexes/hashed.c
Building src/core/indexes/cursors.c
Building src/core/indexes/inx.c
Building src/core/indexes/linked.c
Building src/core/strings/validate.c
Building src/core/strings/print.c
Building src/core/strings/opts.c
Building src/core/strings/info.c
Building src/core/strings/length.c
Building src/core/strings/replace.c
Building src/core/strings/multi.c
Building src/core/strings/nuller.c
Building src/core/strings/allocation.c
Building src/core/strings/shortcuts.c
Building src/core/strings/data.c
Building src/core/parsers/time.c
Building src/core/parsers/token.c
Building src/core/parsers/trim.c
Building src/core/parsers/line.c
Building src/core/parsers/bitwise.c
Building src/core/parsers/case.c
Building src/core/parsers/formats/nvp.c
Building src/core/parsers/numbers/numbers.c
Building src/core/parsers/numbers/clamp.c
Building src/core/parsers/numbers/digits.c
Building src/core/parsers/special/bracket.c
Building src/core/memory/align.c
Building src/core/memory/secure.c
Building src/core/memory/memory.c
Building src/core/memory/bitwise.c
Building src/core/compare/ends.c
Building src/core/compare/starts.c
Building src/core/compare/equal.c
Building src/core/compare/search.c
Building src/objects/serials.c
Building src/objects/objects.c
Building src/objects/locks.c
Building src/objects/meta/serials.c
Building src/objects/meta/references.c
Building src/objects/meta/indexes.c
Building src/objects/meta/crypto.c
Building src/objects/meta/datatier.c
Building src/objects/meta/locking.c
Building src/objects/meta/updaters.c
Building src/objects/meta/folders.c
Building src/objects/meta/alias.c
Building src/objects/meta/meta.c
Building src/objects/meta/alerts.c
Building src/objects/contacts/contacts.c
Building src/objects/contacts/datatier.c
Building src/objects/contacts/find.c
Building src/objects/config/datatier.c
Building src/objects/config/config.c
Building src/objects/sessions/sessions.c
Building src/objects/warehouse/warehouse.c
Building src/objects/warehouse/datatier.c
Building src/objects/warehouse/domains.c
Building src/objects/warehouse/patterns.c
Building src/objects/mail/signatures.c
Building src/objects/mail/mime.c
Building src/objects/mail/load_message.c
Building src/objects/mail/datatier.c
Building src/objects/mail/objects.c
Building src/objects/mail/cleanup.c
Building src/objects/mail/headers.c
Building src/objects/mail/parsing.c
Building src/objects/mail/remove_message.c
Building src/objects/mail/counters.c
Building src/objects/mail/store_message.c
Building src/objects/mail/cache.c
Building src/objects/mail/paths.c
Building src/objects/auth/username.c
Building src/objects/auth/datatier.c
Building src/objects/auth/auth.c
Building src/objects/auth/legacy.c
Building src/objects/auth/stacie.c
Building src/objects/folders/contacts.c
Building src/objects/folders/datatier.c
Building src/objects/folders/folders.c
Building src/objects/folders/find.c
Building src/objects/folders/messages.c
Building src/objects/messages/datatier.c
Building src/objects/messages/meta.c
Building src/objects/messages/messages.c
Constructing magmad

# build.check
Building check/magma/magma_check.c
In file included from check/magma/magma_check.c:8:0:
check/magma/magma_check.h:17:31: fatal error: valgrind/valgrind.h: No such file or directory
 #include <valgrind/valgrind.h>
                               ^
compilation terminated.
make: *** [.objs/check/magma/magma_check.o] Error 1

静的解析ツールvalgrindをインストール
#yum install valgrind valgrind-devel
# build.check
Building check/magma/magma_check.c
Building check/magma/sample_check.c
Building check/magma/network/network_check.c
Building check/magma/providers/virus_check.c
Building check/magma/providers/symmetric_check.c
Building check/magma/providers/dkim_check.c
Building check/magma/providers/dspam_check.c
Building check/magma/providers/ecies_check.c
Building check/magma/providers/tank_check.c
Building check/magma/providers/hmac_check.c
Building check/magma/providers/hash_check.c
Building check/magma/providers/rand_check.c
Building check/magma/providers/scramble_check.c
Building check/magma/providers/unicode_check.c
Building check/magma/providers/compress_check.c
Building check/magma/providers/provide_check.c
Building check/magma/config/config_check.c
Building check/magma/servers/pop/pop_check.c
Building check/magma/servers/pop/pop_check_network.c
Building check/magma/servers/smtp/accept_check.c
Building check/magma/servers/smtp/smtp_check.c
Building check/magma/servers/smtp/checkers_check.c
Building check/magma/servers/smtp/smtp_check_network.c
Building check/magma/servers/imap/imap_check_network.c
Building check/magma/servers/imap/imap_check.c
Building check/magma/servers/http/http_check_network.c
Building check/magma/servers/http/http_check.c
Building check/magma/servers/camel/camel_check.c
Building check/magma/servers/camel/camel_check_network.c
Building check/magma/prime/secp256k1_check.c
Building check/magma/prime/primitives_check.c
Building check/magma/prime/prime_check.c
Building check/magma/prime/stacie_check.c
Building check/magma/prime/signets_check.c
Building check/magma/prime/ed25519_check.c
Building check/magma/prime/keys_check.c
Building check/magma/data/data_check.c
Building check/magma/engine/engine_check.c
Building check/magma/mail/headers_check.c
Building check/magma/mail/load_check.c
Building check/magma/mail/mail_check.c
Building check/magma/mail/store_check.c
Building check/magma/core/zbase32_check.c
Building check/magma/core/string_check.c
Building check/magma/core/core_check.c
Building check/magma/core/system_check.c
Building check/magma/core/qp_check.c
Building check/magma/core/ip_check.c
Building check/magma/core/qsort_check.c
Building check/magma/core/checksum_check.c
Building check/magma/core/inx_check.c
Building check/magma/core/url_check.c
Building check/magma/core/base64_check.c
Building check/magma/core/clamp_check.c
Building check/magma/core/bitwise_check.c
Building check/magma/core/linked_check.c
Building check/magma/core/hashed_check.c
Building check/magma/core/nbo_check.c
Building check/magma/core/hex_check.c
Building check/magma/core/tree_check.c
Building check/magma/users/auth_check.c
Building check/magma/users/users_check.c
Building check/magma/objects/objects_check.c
Building check/magma/regression/regression_check_helpers.c
Building check/magma/regression/regression_check.c
Constructing magmad.check



ツイキャス新卒採用2019で遊んだ

https://saiyo2019.moi.st 内容はFizzBuzzチャレンジでした websocketでリクエスト送受信してポイントを稼いでハイスコアを競うゲーム ブロードキャスティングサービスはネットワークの超低遅延を要求されるので、そういうアレ saiyo2...