トップ 最新 追記

ヨタの日々

2001|08|09|10|11|12|
2002|01|02|03|04|05|06|07|08|09|10|11|12|
2003|01|02|03|04|05|06|07|08|09|10|11|12|
2004|01|02|03|04|05|06|07|08|09|10|11|12|
2005|01|02|03|04|05|06|07|08|09|10|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|11|12|
2011|01|02|03|04|05|06|07|08|09|10|11|12|
2012|01|02|03|04|05|06|07|08|09|10|11|12|
2013|01|02|03|04|05|06|07|08|09|10|11|12|
2014|01|02|03|04|05|06|07|08|09|10|11|12|
2015|01|02|03|04|05|06|07|08|09|10|11|12|
2016|01|02|03|04|05|06|07|08|09|10|11|12|
2017|01|02|03|04|05|06|07|08|09|10|11|12|
2018|01|02|03|04|05|06|07|08|09|10|11|12|
2019|01|02|03|04|05|06|07|08|09|10|11|12|
2020|01|02|03|04|05|06|07|08|09|10|11|12|
2021|01|02|03|04|05|06|07|08|09|10|11|12|
2022|01|02|03|04|05|06|07|08|09|10|11|12|
2023|01|02|03|04|05|06|07|08|12|
2024|01|02|03|

2012-02-01 :-(

_ 読書メーター

1月の読書メーター
読んだ本の数:5冊
読んだページ数:950ページ
ナイス数:11ナイス

メタプログラミングRubyメタプログラミングRuby
Rubyを駆使してメタプログラミング / 特異クラスと特異メソッドがさっぱり分かってない
読了日:01月29日 著者:Paolo Perrotta
君の会社は五年後あるか?  最も優秀な人材が興奮する組織とは (角川oneテーマ21)君の会社は五年後あるか? 最も優秀な人材が興奮する組織とは (角川oneテーマ21)
タイトルは釣り/「優秀な経営者が優秀な社員を雇って優秀な環境を作ればおk」まで読んだ
読了日:01月14日 著者:牧野 正幸
ドリフターズ 2巻 (ヤングキングコミックス)ドリフターズ 2巻 (ヤングキングコミックス)
こいつら普通の人間なんだよな....
読了日:01月03日 著者:平野 耕太
ドリフターズ 1巻 (ヤングキングコミックス)ドリフターズ 1巻 (ヤングキングコミックス)
信長が示した日本地図がどう見ても「バカ日本地図」でありがとう / このひとが書くキャラクターはホントに楽しそうに戦争するよね
読了日:01月03日 著者:平野 耕太
狼と香辛料〈17〉Epilogue (電撃文庫)狼と香辛料〈17〉Epilogue (電撃文庫)
大団円。やはりこういう終わり方がよい / エーブの「あいつはやはり...」(p.20)の一言に爆笑した。
読了日:01月02日 著者:支倉 凍砂

2012年1月の読書メーターまとめ詳細
読書メーター

_ 午前

0520 起床

0830 出勤

0900 テスト準備

_ 午後

1300 テスト準備

1700 退勤

_

2000 飯

2100 アニメ消化

_ [nmap][munin][NetBSD]nmap で munin ポートをスキャンできない問題

Re: PF configuration for munin

Ian から助言を貰った( DM で )。

結局 -p しないといけないらしい。

ポートの指定とスキャンの順序

Nmapには、これまでに述べたすべてのスキャン手法に加えて、どのポートをスキャンするかや、スキャンの順序をランダムにするか順序通りにするかなどを指定するためのオプションが用意されている。デフォルトでは、Nmapは、1024番(を含む)までの全ポートと、1025番以降のポートはスキャン対象のプロトコルに応じてnmap-servicesファイルに記載されたポートをスキャンする。

% sudo nmap -p 4949 mogu

Starting Nmap 5.21 ( http://nmap.org ) at 2012-02-01 19:27 JST
Nmap scan report for mogu (192.168.0.23)
Host is up (0.00022s latency).
rDNS record for 192.168.0.23: mogu.area51.gr.jp
PORT     STATE SERVICE
4949/tcp open  unknown
MAC Address: 00:0C:29:67:4E:FB (VMware)

Nmap done: 1 IP address (1 host up) scanned in 0.07 seconds

2012-02-02 :-(

_ 午前

0520 起床

0830 出勤

0900 テスト準備

_ 午後

1300 テスト準備

_

1700 残業アワー

2045 退勤

2230 飯。牛丼


2012-02-03 :-(

_ 午前

0520 起床

0830 出勤

0900 テスト

_ 午後

1300 テスト準備

_

1700 残業アワー || たんぽぽ開発しようかななんて。( ref. システムアーキテクチャディレクター(たんぽぽグループ)- 募集要項 - 株式会社ミクシィ キャリア採用 )

2100 退勤

2230 飯


2012-02-04 :-)

_ 午前

1030 起床 || 部屋掃除

1200 おひる。パン

_ 午後

1500 買い物

_

1700 読書

2000 飯。おでん


2012-02-05 :-)

_ 午前

0930 起床

1030 おひる。パン

_ 午後

1300 走る

1500 散歩

_

1800 hiki こもごも

2130 飯。ブリの照り焼き

_ 買い物

文教堂 溝の口

ナントカいうテレビ番組で「いま塩麹がブームなんです!」などと言っていたのでググるなどしていたら @O_Flow からツッコミを貰った。

@miwarin マンガの「おせん」で紹介されてましたね。茄子の漬物に使うという回で。O_Flow

ググったら 3 巻に書いてあるらしい。

おせん/きくち正太”塩麹のお漬物と鯵の干物” - おいしい本棚

ということでひとまず 3 巻まで買ってきた。きょうの料理などにレシピがあった

4063287092

4063287440

4063520021


2012-02-06 :-(

_ 午前

0520 起床

0830 出勤

0900 テスト

_ 午後

1300 テスト

_

1700 残業アワー || 刺し身にタンポポすぎる

2030 退勤

2200 飯。ブリの照り焼き

本日のツッコミ(全3件) [ツッコミを入れる]

_ かず母ちゃん [刺身にタンポポすぎる?4日のも読んだけど・・・まさかの〇職?!]

_ かず母ちゃん [3日の日記の間違えでしたm(__)m]

_ みわ [|ω・) 転職はまだです。単純作業のことであるますお >刺し身にタンポポ]


2012-02-07 :-(

_ 午前

0520 起床

0830 出勤

0900 テスト

_ 午後

1300 テスト

_

1700 残業アワー

2100 退勤

2230 飯。豚肉の味噌漬け

本日のツッコミ(全2件) [ツッコミを入れる]

_ かず母ちゃん [2月に入ってから残業が多いですね。。。疲れから体調崩さないように気を付けて下さいネ☆]

_ みわ [そろそろ落ち着くかなーといったところであるます。体力が落ちまくってるので疲労を溜めないようにせんと ('A`)]


2012-02-08 :-(

_ 午前

0520 起床

0830 出勤

0900 テスト

_ 午後

1300 テスト

1700 退勤

_

1930 クローズアップ現代

2000 ぐったり

2100 飯

_ [NetBSD][Amazon EC2]hubertf's NetBSD blog - Automatic building of Amazon EC2 images from NetBSD NetBSD で Amazon EC2 イメージを自動構築する方法

NetBSD/xen is available for some time now to work on Amazon's Xen-based Elastic Cloud Computing (EC2) platform, as previously announced in the NetBSD blog, and the NetBSD wiki has instructions on how to subscribe to Amazon, launching and rebuilding the "AMI" images.

以前 NetBSD ブログ でお伝えしたとおり、現在 NetBSD/xen は Amazon の Xen ベースの Elastic Cloud Computing (EC2) プラットフォームで少しの期間 利用可能です。NetBSD wiki では Amazon への申し込み方法と起動方法と AMI イメージの構築方法についての説明が書いてあります。

This work is continued by Jean-Yves Migeon, who is working on build scripts for Amazon EC2, so the "AMI" images can be provided easily, with the eventual goal to include them into the NetBSD build process by Jeff Rizzo, so EC2 images can be automatically generated easily, e.g. by NetBSD's build cluster.

この作業は Jean-Yves Migeon によって継続されており、build scripts for Amazon EC2 を作業しています。これにより AMI イメージはより簡単に提供できます。最終的には Jeff Rizzo により NetBSD ビルドプロセスに組み込むつもりですbuild process 。これで、たとえば NetBSD ビルドクラスタにより EC2 イメージは簡単に構築できます。


2012-02-09 :-(

_ 午前

0520 起床

0830 出勤

0900 テスト準備

_ 午後

1300 テスト準備

1700 退勤

_

1900 contrib/plugin を眺めるなど。machu さんのコード読みやすいなー

2130 飯。たらの南蛮焼き

携帯百景(ケイタイヒャッケイ)


2012-02-10 :-(

_ 午前

0520 起床

0830 出勤

0900 テスト準備

_ 午後

1300 テスト準備

1700 退勤

_

1900 rubyほげ

2130 飯。豚丼 豚バラ肉なんてもはや食えないので(脂が多い)ロース肉

携帯百景(ケイタイヒャッケイ)

本日のツッコミ(全2件) [ツッコミを入れる]

_ かず母ちゃん [相変わらず美味しそう(^^♪私も脂が多いのはもうダメだぁ~(>_<)考えたくはないけど・・・もうトシなんだろうか・・..]

_ みわ [豚バラとか鶏胸肉とかもう食えない ('A`) もうトシかもしれんね ('A`)]


2012-02-11 :-)

_ 午前

0930 起床

_ 午後

1500 試飲会

_

1800 髪切った

2000 飯。鍋

_ [NetBSD][翻訳]hubertf's NetBSD blog - NetBSD 5.1.2 released NetBSD 5.1.2 リリース

Soren Jacobsen from NetBSD's release engineering team announced on the NetBSD blog:

NetBSD リリースエンジニアリングチームの Soren Jacobsen が NetBSD blog で告知した

``On behalf of the NetBSD developers, I am pleased to announce that NetBSD 5.1.2 is now available for download. NetBSD 5.1.2 is the second critical/security update of the NetBSD 5.1 release branch. It represents a selected subset of fixes deemed critical for security or stability reasons. All users are encouraged to upgrade. For full details, please see the 5.1.2 release notes. To download 5.1.2, see http://www.NetBSD.org/mirrors/''

NetBSD 開発者に代わり、NetBSD 5.1.2 がダウンロードできるようになったことを喜ばしく思います。NetBSD 5.1.2 は NetBSD 5.1 からの 2 回目の重要事項/セキュリティのアップデートです。セキュリティや安定性から重要だと考えられ修正されたものの選択されたサブセットとなります。すべての利用者はアップグレードすることを勧めます。すべての詳細は 5.1.2 リリースノート を見てください。5.1.2 をダウンロードするには http://www.NetBSD.org/mirrors/' を見てください。

Among the changes are:

変更点

  • Fixes from ten Security Advisories: openssl, bind, kernel memory exhaustion, IPCOMP, dhclient, LZW, openpan
  • More security fixes for 3rd party Products: libtelnet, openssl, postfix, dhcpcd, xrdb, glob(3), openssh
  • Improvements of logging in wapbl(4)
  • Improved handling of ECN, NFS
  • Various minor updates and bugfixes
  • セキュリティ勧告の修正: openssl、bind、カーネルメモリ枯渇、IPCOMP、dhclient、LZW、openpan
  • さらにサードパーティ製品のセキュリティ修正: libtelnet, openssl, postfix, dhcpcd, xrdb, glob(3), openssh
  • wapbl(4) ログの改善
  • ECN, NFS の処理改善
  • いくつかのマイナーアップデートとバグ修正

Note that the NetBSD x.x.x releases only contain security and critical bug fixes over the last full release (5.0). The number is kept down to improve stability. More updates and changes are available on the NetBSD x.x releases and their related branches, e.g. netbsd-5. (see also)

なお、NetBSD x.x.x リリースは最新の完全リリース (5.0) についてセキュリティと重要事項についてバグを修正だけしたものです。安定性のため(バージョン)番号は抑えられます。さらなるアップデートと変更は、NetBSD x.x リリースと、たとえば netbsd-5 のようなブランチで利用できるようになります。(参照)


2012-02-12 :-)

_ 午前

0930 起床

1030 おひる。カルボナーラ

_ 午後

1400 走る

1500 散歩

IMG_9434

_

1900 ruby ほげ || tdiary/misc/plugin のコンソールでのデバッグ環境を整えるだけの難しいお仕事 ('A`) require 'tdiary' すればよいかと思ったらまだ足りないようだ || 続く

2130 飯。牛たん

携帯百景(ケイタイヒャッケイ)


2012-02-13 :-(

_ 午前

0520 起床

0830 出勤

0900 テスト準備

_ 午後

1300 テスト準備

_

1700 残業アワー

2100 退勤

2230 飯


2012-02-14 :-(

_ 午前

0520 起床

0830 出勤

0900 テスト準備

_ 午後

1300 テスト準備

_

1700 残業アワー

2100 退勤

2230 飯。豚肉を塩麹で

_ 観測できないものは存在しない

バレンタインは観測できなかったので存在しなかった。


2012-02-15 :-(

_ 午前

0520 起床

0830 出勤

0900 テスト準備

_ 午後

1300 テスト準備

1500 外出

1530 自社 || 打ち合わせ

1700 退勤

_

1900 rubyほげ

2030 飯

2230 rubyほげ

_ cygwin が死んだ

たぶん rebaseall すればいいんだけど

% bundle exec rake spec
/usr/local/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
/usr/local/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
/usr/local/bin/ruby.exe -S rspec spec/acceptance/append_comment_spec.rb spec/acceptance/append_diary_spec.rb spec/acceptance/bugfix/encoding_error_spec.rb                        spec/acceptance/save_conf_comment_spec.rb spec/acceptance/save_conf_default_spec.rb spec/acceptance/save_conf_dnsbl_spec.rb spec/acceptance/save_conf_fil                       ter_spec.rb spec/acceptance/save_conf_plugin_spec.rb spec/acceptance/save_conf_referer_spec.rb spec/acceptance/save_conf_security_spec.rb spec/acceptance/                       update_diary_spec.rb spec/acceptance/view_category_spec.rb spec/acceptance/view_comment_spec.rb spec/acceptance/view_diary_spec.rb spec/acceptance/view_re                       ferer_spec.rb spec/core/compatible_spec.rb spec/core/core_ext_spec.rb spec/core/style/emptdiary_style_spec.rb spec/core/style/etdiary_style_spec.rb spec/c                       ore/style/rd_style_spec.rb spec/core/style/tdiary_style_spec.rb spec/core/style/wiki_style_spec.rb spec/plugin/bq_spec.rb
      0 [main] ruby 5544 child_info_fork::abort: address space needed by 'etc.so' (0x340000) is already occupied
      0 [main] ruby 5924 child_info_fork::abort: address space needed by 'etc.so' (0x340000) is already occupied
      1 [main] ruby 2288 child_info_fork::abort: address space needed by 'etc.so' (0x340000) is already occupied
      1 [main] ruby 3412 child_info_fork::abort: address space needed by 'etc.so' (0x340000) is already occupied
      1 [main] ruby 2140 child_info_fork::abort: address space needed by 'etc.so' (0x340000) is already occupied
      0 [main] ruby 5308 child_info_fork::abort: address space needed by 'etc.so' (0x340000) is already occupied
/usr/local/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.

返ってこない

_ [ruby][bundle]bundle install --path ~/.bundle するといろいろ怒られる

% uname -a
NetBSD mogu.area51.gr.jp 5.99.58 NetBSD 5.99.58 (MYKERNEL) #0: Mon Dec 26 21:16:57 JST 2011  root@mogu.area51.gr.jp:/usr/obj/sys/arch/i386/compile/MYKERNEL i386
% ruby --version
ruby 1.9.2p180 (2011-02-18 revision 30909) [i386-netbsdelf]
% gem --version
1.3.7
% bundle install --path ~/.bundle
Fetching source index for http://rubygems.org/
Using rake (0.9.2.2)
Using addressable (2.2.6)
Using highline (1.6.11)
Using net-ssh (2.3.0)
Using net-scp (1.0.4)
Using net-sftp (2.0.5)
Using net-ssh-gateway (1.1.0)
Using capistrano (2.9.0)
Using capistrano_colors (0.5.5)
Using mime-types (1.17.2)
Using nokogiri (1.5.0)
Using rack (1.4.1)
Using rack-test (0.6.1)
Using ffi (1.0.11)
Using childprocess (0.3.0)
Using multi_json (1.0.4)
Using rubyzip (0.9.5)
Using selenium-webdriver (2.17.0)
Using xpath (0.1.4)
Using capybara (1.1.2)
Using net-http-digest_auth (1.2)
Using net-http-persistent (1.9)
Using webrobots (0.0.13)
Using mechanize (2.0.1)
Using capybara-mechanize (0.3.0.rc3)
Using coffee-script-source (1.2.0)
Using execjs (1.3.0)
Using coffee-script (2.2.0)
Using daemons (1.1.6)
Using diff-lcs (1.1.3)
Installing eventmachine (0.12.10) with native extensions /usr/pkg/lib/ruby/1.9/rubygems/installer.rb:496:in `rescue in block in build_extensions': E
RROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

/usr/pkg/bin/ruby19 extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... yes
checking for inotify_init() in sys/inotify.h... no
checking for __NR_inotify_init in sys/syscall.h... no
checking for writev() in sys/uio.h... yes
checking for rb_thread_check_ints()... yes
checking for rb_time_new()... yes
checking for sys/event.h... yes
checking for sys/queue.h... yes
checking for main() in -lssl... yes
checking for main() in -lcrypto... yes
checking for openssl/ssl.h... yes
checking for openssl/err.h... yes
creating Makefile

make
c++ -I. -I/usr/pkg/include/ruby-1.9/i386-netbsdelf -I/usr/pkg/include/ruby-1.9/ruby/backward -I/usr/pkg/include/ruby-1.9 -I. -DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DHAVE_TBR -DHAVE_WRITEV -DHAVE_WRITEV -DHAVE_RB_THREAD_CHECK_INTS -DHAVE_RB_TIME_NEW -DOS_UNIX -DHAVE_SYS_EVENT_H -DHAVE_SYS_QUEUE_H -DHAVE_KQUEUE -DHAVE_OPENSSL_SSL_H -DHAVE_OPENSSL_ERR_H -DWITH_SSL -DHAVE_MAKE_PAIR -I/usr/include   -fPIC -O2 -pthread -I/usr/include -fPIC -pipe -O2 -pthread -I/usr/include -obinder.o -c binder.cpp
c++ -I. -I/usr/pkg/include/ruby-1.9/i386-netbsdelf -I/usr/pkg/include/ruby-1.9/ruby/backward -I/usr/pkg/include/ruby-1.9 -I. -DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DHAVE_TBR -DHAVE_WRITEV -DHAVE_WRITEV -DHAVE_RB_THREAD_CHECK_INTS -DHAVE_RB_TIME_NEW -DOS_UNIX -DHAVE_SYS_EVENT_H -DHAVE_SYS_QUEUE_H -DHAVE_KQUEUE -DHAVE_OPENSSL_SSL_H -DHAVE_OPENSSL_ERR_H -DWITH_SSL -DHAVE_MAKE_PAIR -I/usr/include   -fPIC -O2 -pthread -I/usr/include -fPIC -pipe -O2 -pthread -I/usr/include -ocmain.o -c cmain.cpp
c++ -I. -I/usr/pkg/include/ruby-1.9/i386-netbsdelf -I/usr/pkg/include/ruby-1.9/ruby/backward -I/usr/pkg/include/ruby-1.9 -I. -DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DHAVE_TBR -DHAVE_WRITEV -DHAVE_WRITEV -DHAVE_RB_THREAD_CHECK_INTS -DHAVE_RB_TIME_NEW -DOS_UNIX -DHAVE_SYS_EVENT_H -DHAVE_SYS_QUEUE_H -DHAVE_KQUEUE -DHAVE_OPENSSL_SSL_H -DHAVE_OPENSSL_ERR_H -DWITH_SSL -DHAVE_MAKE_PAIR -I/usr/include   -fPIC -O2 -pthread -I/usr/include -fPIC -pipe -O2 -pthread -I/usr/include -ocplusplus.o -c cplusplus.cpp
c++ -I. -I/usr/pkg/include/ruby-1.9/i386-netbsdelf -I/usr/pkg/include/ruby-1.9/ruby/backward -I/usr/pkg/include/ruby-1.9 -I. -DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DHAVE_TBR -DHAVE_WRITEV -DHAVE_WRITEV -DHAVE_RB_THREAD_CHECK_INTS -DHAVE_RB_TIME_NEW -DOS_UNIX -DHAVE_SYS_EVENT_H -DHAVE_SYS_QUEUE_H -DHAVE_KQUEUE -DHAVE_OPENSSL_SSL_H -DHAVE_OPENSSL_ERR_H -DWITH_SSL -DHAVE_MAKE_PAIR -I/usr/include   -fPIC -O2 -pthread -I/usr/include -fPIC -pipe -O2 -pthread -I/usr/include -oed.o -c ed.cpp
c++ -I. -I/usr/pkg/include/ruby-1.9/i386-netbsdelf -I/usr/pkg/include/ruby-1.9/ruby/backward -I/usr/pkg/include/ruby-1.9 -I. -DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DHAVE_TBR -DHAVE_WRITEV -DHAVE_WRITEV -DHAVE_RB_THREAD_CHECK_INTS -DHAVE_RB_TIME_NEW -DOS_UNIX -DHAVE_SYS_EVENT_H -DHAVE_SYS_QUEUE_H -DHAVE_KQUEUE -DHAVE_OPENSSL_SSL_H -DHAVE_OPENSSL_ERR_H -DWITH_SSL -DHAVE_MAKE_PAIR -I/usr/include   -fPIC -O2 -pthread -I/usr/include -fPIC -pipe -O2 -pthread -I/usr/include -oem.o -c em.cpp
em.cpp: In member function 'void EventMachine_t::_ReadLoopBreaker()':
em.cpp:924: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp: In member function 'bool EventMachine_t::_RunTimers()':
em.cpp:948: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp: In member function 'const long unsigned int EventMachine_t::ConnectToServer(const char*, int, const char*, int)':
em.cpp:1089: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp: In member function 'const long unsigned int EventMachine_t::ConnectToUnixServer(const char*)':
em.cpp:1218: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1221: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1237: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1243: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1249: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp: In member function 'int EventMachine_t::DetachFD(EventableDescriptor*)':
em.cpp:1350: error: invalid conversion from 'EventableDescriptor*' to '__intptr_t'
em.cpp: In member function 'const long unsigned int EventMachine_t::CreateTcpServer(const char*, int)':
em.cpp:1453: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1455: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1535: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp: In member function 'const long unsigned int EventMachine_t::OpenDatagramSocket(const char*, int)':
em.cpp:1545: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1596: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp: In member function 'void EventMachine_t::ArmKqueueWriter(EventableDescriptor*)':
em.cpp:1625: error: invalid conversion from 'EventableDescriptor*' to '__intptr_t'
em.cpp: In member function 'void EventMachine_t::ArmKqueueReader(EventableDescriptor*)':
em.cpp:1647: error: invalid conversion from 'EventableDescriptor*' to '__intptr_t'
em.cpp: In member function 'const long unsigned int EventMachine_t::_OpenFileForWriting(const char*)':
em.cpp:1773: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp: In member function 'const long unsigned int EventMachine_t::CreateUnixDomainServer(const char*)':
em.cpp:1805: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1866: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp: In member function 'const long unsigned int EventMachine_t::Socketpair(char* const*)':
em.cpp:1927: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1932: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1934: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1938: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1948: warning: converting to non-pointer type 'long unsigned int' from NULL
*** Error code 1

Stop.
make: stopped in /usr/pkg/lib/ruby/gems/1.9/gems/eventmachine-0.12.10/ext


Gem files will remain installed in /usr/pkg/lib/ruby/gems/1.9/gems/eventmachine-0.12.10 for inspection.
Results logged to /usr/pkg/lib/ruby/gems/1.9/gems/eventmachine-0.12.10/ext/gem_make.out

? ('A`)

ググる

#79: invalid conversion from 'EventableDescriptor*' to '__intptr_t' - Issues - eventmachine/eventmachine - GitHub

pkgsrc にある....だと...?

% cd /usr/pkgsrc/devel/ruby-eventmachine/
% sudo make install clean clean-depends

まだ同じだった

一度アンインストール

% sudo gem uninstall bundler

pkgsrc のほうのをインストールしてみる。

% cd /usr/pkgsrc/misc/ruby-bundler/
% sudo make install clean clean-depends
if /usr/sbin/pkg_info -K /var/db/pkg -qe "ruby18-bundler-[0-9]*"; then  /usr/sbin/pkg_info -K /var/db/pkg -qr "ruby18-bundler-[0-9]*" > /usr/pkgsrc/
misc/ruby-bundler/work/.DLIST;  else  /usr/bin/touch /usr/pkgsrc/misc/ruby-bundler/work/.DLIST;  fi
===> Deinstalling for ruby18-bundler-1.0.15

いや ruby18 ちゃうねん

@miwarin Ruby はインストールされてるバージョンは見ないで、RUBY_VERSION_DEFAULT で指定されてるやつを使いますので。192 か 193 か、お望みの方を指定すればよろしいかと。( @obache )

オス

% sudo make RUBY_VERSION_DEFAULT=192 install

とやったら 1.8 がインストールされた。

あら

% grep -r RUBY_VERSION_DEFAULT /usr/pkgsrc/lang/*
ruby/rubyversion.mk:# RUBY_VERSION_DEFAULT defines default version for Ruby related
ruby/rubyversion.mk:RUBY_VERSION_DEFAULT?=      1.8
ruby/rubyversion.mk:_RUBY_VERSION_DEFAULT=      ${RUBY_VERSION_DEFAULT:S/.//}
ruby/rubyversion.mk:#   Default value is set to ${RUBY_VERSION_DEFAULT}
ruby/rubyversion.mk:.  if ${RUBY_VERSION_DEFAULT} == "1.8"
ruby/rubyversion.mk:.  elif ${RUBY_VERSION_DEFAULT} == "1.9"
ruby/rubyversion.mk:MULTI+=     RUBY_VERSION_REQD=${RUBY_VERSION_REQD:U${_RUBY_VERSION_DEFAULT}}
ruby/rubyversion.mk:                    RUBY_VERSION_DEFAULT=${RUBY_VERSION_DEFAULT:Q}
ruby/rubyversion.mk:                    RUBY_VERSION_DEFAULT=${RUBY_VERSION_DEFAULT:Q}

1.9 ?

やってみる

% sudo make RUBY_VERSION_DEFAULT=1.9 install clean clean-depends
=> Bootstrap dependency digest>=20010302: found digest-20080510
=> Checksum SHA1 OK for bundler-1.0.15.gem
=> Checksum RMD160 OK for bundler-1.0.15.gem
===> Installing dependencies for ruby19-bundler-1.0.15
==========================================================================
The following variables will affect the build process of this package,
ruby19-bundler-1.0.15.  Their current value is shown below:

        * BDB185_DEFAULT = db1
        * BDB_DEFAULT = db4
        * SSLBASE = /usr
        * SSLCERTS = /etc/openssl/certs
        * SSLDIR = /etc/openssl
        * SSLKEYS = /etc/openssl/private

Based on these variables, the following variables have been set:

        * BDBBASE = /usr
        * BDB_LIBS (defined, but empty)
        * BDB_TYPE = db1

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/bin/make clean' after
the changes.
==========================================================================
=> Build dependency checkperms>=1.1: found checkperms-1.11
=> Full dependency ruby19-base>=1.9.2: found ruby19-base-1.9.2pl180nb2
===> Overriding tools for ruby19-bundler-1.0.15
===> Extracting for ruby19-bundler-1.0.15
Unpacked gem: '/usr/pkgsrc/misc/ruby-bundler/work/bundler-1.0.15'
===> Patching for ruby19-bundler-1.0.15
===> Creating toolchain wrappers for ruby19-bundler-1.0.15
===> Configuring for ruby19-bundler-1.0.15
=> Checking for portability problems in extracted files
===> Building for ruby19-bundler-1.0.15
=> Removing backup files of patch before build
  Successfully built RubyGem
  Name: bundler
  Version: 1.0.15
  File: bundler-1.0.15.gem
=> Unwrapping files-to-be-installed.
INFO: [subst.mk:unwrap] Nothing changed in ./lib/bundler/man/bundle-config.
===> Installing for ruby19-bundler-1.0.15
=> Generating pre-install file lists
=> Installing gem into installation root
Successfully installed bundler-1.0.15
1 gem installed
Installing ri documentation for bundler-1.0.15...
Installing RDoc documentation for bundler-1.0.15...
=> Cleaning intermediate gem build files
=> gem install
=> Automatic manual page handling
=> Generating post-install file lists
=> Checking file-check results for ruby19-bundler-1.0.15
=> Checking for non-existent script interpreters in ruby19-bundler-1.0.15
=> Checking file permissions in ruby19-bundler-1.0.15
=> Checking for missing run-time search paths in ruby19-bundler-1.0.15
=> Checking for work-directory references in ruby19-bundler-1.0.15
===> Building binary package for ruby19-bundler-1.0.15
=> Creating binary package /usr/pkgsrc/packages/All/ruby19-bundler-1.0.15.tgz
===> Install binary package of ruby19-bundler-1.0.15

おk

eventmachine も ruby 1.9 でインストールしなおす

% cd /usr/pkgsrc/devel/ruby-eventmachine
% sudo make RUBY_VERSION_DEFAULT=1.9 install clean clean-depends

bundle してみる

やはり同じエラー ('A`)

% bundle install --path ~/.bundle
THREAD_BLOCKING_REGION -DHAVE_TBR -DHAVE_WRITEV -DHAVE_WRITEV -DHAVE_RB_THREAD_CHECK_INTS -DHAVE_RB_TIME_NEW -DOS_UNIX -DHAVE_SYS_EVENT_H -DHAVE_SYS_QUEUE_H -DHAVE_KQUEUE -DHAVE_OPENSSL_SSL_H -DHAVE_OPENSSL_ERR_H -DWITH_SSL -DHAVE_MAKE_PAIR -I/usr/include   -fPIC -O2 -pthread -I/usr/include -fPIC -pipe -O2 -pthread -I/usr/include -oem.o -c em.cpp
em.cpp: In member function 'void EventMachine_t::_ReadLoopBreaker()':
em.cpp:924: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp: In member function 'bool EventMachine_t::_RunTimers()':
em.cpp:948: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp: In member function 'const long unsigned int EventMachine_t::ConnectToServer(const char*, int, const char*, int)':
em.cpp:1089: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp: In member function 'const long unsigned int EventMachine_t::ConnectToUnixServer(const char*)':
em.cpp:1218: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1221: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1237: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1243: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1249: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp: In member function 'int EventMachine_t::DetachFD(EventableDescriptor*)':
em.cpp:1350: error: invalid conversion from 'EventableDescriptor*' to '__intptr_t'
em.cpp: In member function 'const long unsigned int EventMachine_t::CreateTcpServer(const char*, int)':
em.cpp:1453: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1455: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1535: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp: In member function 'const long unsigned int EventMachine_t::OpenDatagramSocket(const char*, int)':
em.cpp:1545: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1596: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp: In member function 'void EventMachine_t::ArmKqueueWriter(EventableDescriptor*)':
em.cpp:1625: error: invalid conversion from 'EventableDescriptor*' to '__intptr_t'
em.cpp: In member function 'void EventMachine_t::ArmKqueueReader(EventableDescriptor*)':
em.cpp:1647: error: invalid conversion from 'EventableDescriptor*' to '__intptr_t'
em.cpp: In member function 'const long unsigned int EventMachine_t::_OpenFileForWriting(const char*)':
em.cpp:1773: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp: In member function 'const long unsigned int EventMachine_t::CreateUnixDomainServer(const char*)':
em.cpp:1805: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1866: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp: In member function 'const long unsigned int EventMachine_t::Socketpair(char* const*)':
em.cpp:1927: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1932: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1934: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1938: warning: converting to non-pointer type 'long unsigned int' from NULL
em.cpp:1948: warning: converting to non-pointer type 'long unsigned int' from NULL
*** Error code 1

Stop.
make: stopped in /home/rin/.bundle/ruby/1.9/gems/eventmachine-0.12.10/ext


Gem files will remain installed in /home/rin/.bundle/ruby/1.9/gems/eventmachine-0.12.10 for inspection.
Results logged to /home/rin/.bundle/ruby/1.9/gems/eventmachine-0.12.10/ext/gem_make.out
        from /usr/pkg/lib/ruby/1.9/rubygems/installer.rb:499:in `block in build_extensions'
        from /usr/pkg/lib/ruby/1.9/rubygems/installer.rb:459:in `each'
        from /usr/pkg/lib/ruby/1.9/rubygems/installer.rb:459:in `build_extensions'
        from /usr/pkg/lib/ruby/1.9/rubygems/installer.rb:207:in `install'
        from /usr/pkg/lib/ruby/gems/1.9/gems/bundler-1.0.15/lib/bundler/source.rb:101:in `block in install'
        from /usr/pkg/lib/ruby/gems/1.9/gems/bundler-1.0.15/lib/bundler/rubygems_integration.rb:78:in `preserve_paths'
        from /usr/pkg/lib/ruby/gems/1.9/gems/bundler-1.0.15/lib/bundler/source.rb:91:in `install'
        from /usr/pkg/lib/ruby/gems/1.9/gems/bundler-1.0.15/lib/bundler/installer.rb:58:in `block (2 levels) in run'
        from /usr/pkg/lib/ruby/gems/1.9/gems/bundler-1.0.15/lib/bundler/rubygems_integration.rb:93:in `with_build_args'
        from /usr/pkg/lib/ruby/gems/1.9/gems/bundler-1.0.15/lib/bundler/installer.rb:57:in `block in run'
        from /usr/pkg/lib/ruby/gems/1.9/gems/bundler-1.0.15/lib/bundler/spec_set.rb:12:in `block in each'
        from /usr/pkg/lib/ruby/gems/1.9/gems/bundler-1.0.15/lib/bundler/spec_set.rb:12:in `each'
        from /usr/pkg/lib/ruby/gems/1.9/gems/bundler-1.0.15/lib/bundler/spec_set.rb:12:in `each'
        from /usr/pkg/lib/ruby/gems/1.9/gems/bundler-1.0.15/lib/bundler/installer.rb:49:in `run'
        from /usr/pkg/lib/ruby/gems/1.9/gems/bundler-1.0.15/lib/bundler/installer.rb:8:in `install'
        from /usr/pkg/lib/ruby/gems/1.9/gems/bundler-1.0.15/lib/bundler/cli.rb:222:in `install'
        from /usr/pkg/lib/ruby/gems/1.9/gems/bundler-1.0.15/lib/bundler/vendor/thor/task.rb:22:in `run'
        from /usr/pkg/lib/ruby/gems/1.9/gems/bundler-1.0.15/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
        from /usr/pkg/lib/ruby/gems/1.9/gems/bundler-1.0.15/lib/bundler/vendor/thor.rb:246:in `dispatch'
        from /usr/pkg/lib/ruby/gems/1.9/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:389:in `start'
        from /usr/pkg/lib/ruby/gems/1.9/gems/bundler-1.0.15/bin/bundle:13:in `<top (required)>'
        from /usr/pkg/bin/bundle:19:in `load'
        from /usr/pkg/bin/bundle:19:in `<main>'

@miwarin あ、2011Q4 ですか。current では1.9という指定は廃止されてるので、192 を使うようにしておくのがいいようです。あと、コマンドラインで一発設定なら RUBY_VERSION_REQD に、でもいいですね。( @obache )

ぐふう

本日のツッコミ(全2件) [ツッコミを入れる]

_ hsbt [ bundle install --path ~/.bundle --without development だとど..]

_ みわ [ありがとうゴマス。いけました。 意味は分かってないです ('A`)]


2012-02-16 :-(

_ 午前

0520 起床

0830 出勤

0900 テスト準備

_ 午後

1300 テスト準備

1700 残業アワー

_

2130 退勤 || 「にのさん」が連呼されている ( 荒川アンダーザブリッジ )

2300 飯。牛丼


2012-02-17 :-(

_ 午前

0520 起床

0830 出勤

0900 テスト

_ 午後

1300 テスト

1700 退勤

_

1845 宴会

_ 仕事場送別会

型無 一心 いっしん

携帯百景(ケイタイヒャッケイ)

携帯百景(ケイタイヒャッケイ)

携帯百景(ケイタイヒャッケイ)

_ bundle install アレ

hsbt さんからツッコミを頂いた[ 20120215#c01 ]

% bundle install --path ~/.bundle --without development
Fetching source index for http://rubygems.org/
Using rake (0.9.2.2)
Using addressable (2.2.6)
Using mime-types (1.17.2)
Using nokogiri (1.5.0)
Using rack (1.4.1)
Using rack-test (0.6.1)
Using ffi (1.0.11)
Using childprocess (0.3.0)
Using multi_json (1.0.4)
Using rubyzip (0.9.5)
Using selenium-webdriver (2.17.0)
Using xpath (0.1.4)
Using capybara (1.1.2)
Using net-http-digest_auth (1.2)
Using net-http-persistent (1.9)
Using webrobots (0.0.13)
Using mechanize (2.0.1)
Using capybara-mechanize (0.3.0.rc3)
Using coffee-script-source (1.2.0)
Using execjs (1.3.0)
Using coffee-script (2.2.0)
Using diff-lcs (1.1.3)
Installing hike (1.2.1)
Installing launchy (2.0.5)
Installing rspec-core (2.8.0)
Installing rspec-expectations (2.8.0)
Installing rspec-mocks (2.8.0)
Installing rspec (2.8.0)
Installing simplecov-html (0.5.3)
Installing simplecov (0.5.4)
Installing tilt (1.3.3)
Installing sprockets (2.3.0)
Installing thor (0.14.6)
Installing tapp (1.3.0)
Installing test-unit (2.4.5)
Using bundler (1.0.15)
Your bundle is complete! It was installed into /home/rin/.bundle

ヽ( ´ー`)ノ

本日のツッコミ(全2件) [ツッコミを入れる]

_ hsbt [--without development は Gemfile に書いてある :development グループの ..]

_ みわ [オス。サーバー立てられるほうがテストの幅が広がりそうなので気力があったら追試します (´・ω・`)]


2012-02-18 :-)

_ 午前

0930 起床 || 部屋掃除

1100 おひる。焼きそば

_ 午後

1400 JSTQB FL || 試験時間60分

1600 買い物

_

2000 飯。鍋


2012-02-19 :-)

_ 午前

0930 起床

1030 おひる。ジェノベーゼらしきもの

_ 午後

1330 走る

1500 メガネ屋

_

2000 飯。サーモンのムニエル

_ 物干し竿と化した

IMG_9449

_ メガネを新調してきた

イワキ

どうも最近というかここ 1, 2 年で目が疲れやすくなったし現在のメガネを作ってから 10 年くらい経過しているような気がしてきたのでそろそろメガネを作り替える時期なのかもしれんなということで近所のメガネ屋へ行ってきたというか昔から家族がよく利用している。

担当は美人のお姉さんだった。ふむ

氏名と住所を伝えると利用者情報が引っ張り出されてきた。現在のメガネを作ったのは 2002 年、つまりほんとに 10 年前だった。

視力検査などした結果、10 年前と比較して視力は大差ないんだが乱視が強くなったとのこと。 現在のメガネはレンズは傷つきまくってるしフレームも錆びているのでレンズも新しくしてもらうことにした。遠方を見る機会よりも近い所を見る機会のほうが多い( 仕事してれば )のでレンズの視力は現状維持で乱視を 2 段階上げることにした。フレームはなんだかんだでナウいものにした。

_ bundle ほげ

@obache のツッコミがあったので pkgsrc を cvs update -dP してからインストールしてみた。なんかデフォルトで ruby 1.9.2 用が入ったぽい。

% cd /usr/pkgsrc/misc/ruby-bundler
% sudo make install clean clean-depends

without 無しでやってみる。おk なのかしら

% bundle install --path ~/.bundle
Using rake (0.9.2.2)
Using addressable (2.2.6)
Using mime-types (1.17.2)
Using nokogiri (1.5.0)
Using rack (1.4.1)
Using rack-test (0.6.1)
Using ffi (1.0.11)
Using childprocess (0.3.0)
Using multi_json (1.0.4)
Using rubyzip (0.9.5)
Using selenium-webdriver (2.17.0)
Using xpath (0.1.4)
Using capybara (1.1.2)
Using net-http-digest_auth (1.2)
Using net-http-persistent (1.9)
Using webrobots (0.0.13)
Using mechanize (2.0.1)
Using capybara-mechanize (0.3.0.rc3)
Using coffee-script-source (1.2.0)
Using execjs (1.3.0)
Using coffee-script (2.2.0)
Using diff-lcs (1.1.3)
Using hike (1.2.1)
Using launchy (2.0.5)
Using rspec-core (2.8.0)
Using rspec-expectations (2.8.0)
Using rspec-mocks (2.8.0)
Using rspec (2.8.0)
Using simplecov-html (0.5.3)
Using simplecov (0.5.4)
Using tilt (1.3.3)
Using sprockets (2.3.0)
Using thor (0.14.6)
Using tapp (1.3.0)
Using test-unit (2.4.5)
Using bundler (1.0.21)
Your bundle is complete! It was installed into /home/rin/.bundle
本日のツッコミ(全2件) [ツッコミを入れる]

_ かず母ちゃん [みわさんってメガネかけてたんだ~( ..)φ私は老眼鏡の方がよく見えた(T_T)ナントカ手術ってのは出来ないの?]

_ みわ [学生のころからメガネ男子ですゆえ (`・ω・´) 手術はレーシックかしら。アレはなー まだ後遺症とか明らかになって..]


2012-02-20 :-(

_ 午前

0430 着信

0450 病院

0500 心拍数安定

0540 急変

0550 心肺停止

0600 臨終

0830 搬送

_ 午後

1300 寝る

_

2030 兄来訪。祖母へ挨拶

2200 飯。豚肉の生姜焼き

_ 祖母が亡くなった

去年から入院していた。ときおり不整脈があるなどしていたのだがここ数日は叔父と一緒に水戸黄門を見ながら会話もしておりベッドの上とはいえ多少身体を動かしていたらしい。昨晩になって容態が急変した。寝ているときに着信があり急遽 病院へ向かった。親族一同では我々が早かったのだがすぐに直系の親族が集まった。意識はまだあり看護士によると誰が来ているのか分かっているとのこと。来たときは呼吸が荒かったのだがそれもしばらくしたら落ち着いて今日はこれで帰るとしようかと思っていた矢先に心電計が赤く点滅しアラームを発した。それから数分後 心電計が停止し祖母が動きを止めた。親族が声をかけ続けるが 6 時ころ医師が臨終を告げた。緊張が切れたように崩れた。祖母は穏やかな顔をしていた。寝ているだけなのではないかと思った。まだ手は暖かく声をかけるとわずかに身もだえしているように見えた。つい先ほどまで身体は動いていし親族の呼び掛けにも反応していた。それがパタリと停止してしまった。何度 顔を見てもただ眠っているようにしか見えなかった。また起きだすのではないかと思えた。しかし呼びかけても反応はなかった。もう二度と動くことはなかった。先ほどまで動いていた身体はもう二度と動くことはなかった。ただ眠っているような祖母が居るだけだった。私は祖母の顔を見ながら先ほどまで生きていたこの身体にはもはや魂は無いのだろうか、魂はどこに行ってしまったのだろうかなどと考えていた。

諸々の手配を済ませ病院には叔父、母、私が残り看護士らとともに遺体の搬送を見送った。

夜になってから仕事を終えた兄と一緒に祖母のもとへ挨拶しに行った。今後の日程を話しあうなどして解散した。

_ [cygwin]cygwin を入れなおした

devel, base はカテゴリごと install してあとはテキトーに。

_ cygwin で ruby 1.9 をインストール

最新は 1.9.3 。Ruby Install Guide::Cygwin (ソースから) を見ながら

% ./configure --enable-shared && make && make install

/usr/local に入る。

%  /usr/local/bin/ruby --version
ruby 1.9.3p125 (2012-02-16 revision 34643) [i386-cygwin]

_ [cygwin][elf][binutils]cygwin で binutils elf をインストール

以前おこなったんだが復習のためにメモ。

% ./configure --target=h8300-elf --disable-nls && make && make install
  :
./pex-unix.c: In function ‘pex_unix_exec_child’:
./pex-unix.c:549:2: 警告: implicit declaration of function ‘spawnvpe’
./pex-unix.c:549:18: error: ‘_P_NOWAITO’ undeclared (first use in this function)
./pex-unix.c:549:18: note: each undeclared identifier is reported only once for each function it appears in
./pex-unix.c:551:2: 警告: implicit declaration of function ‘spawnve’
Makefile:891: recipe for target `pex-unix.o' failed
make[2]: *** [pex-unix.o] Error 1
make[2]: ディレクトリ `/cygdrive/c/home/public/binutils-2.22/libiberty' から出ます
Makefile:7767: recipe for target `all-libiberty' failed
make[1]: *** [all-libiberty] Error 2
make[1]: ディレクトリ `/cygdrive/c/home/public/binutils-2.22' から出ます
Makefile:842: recipe for target `all' failed
make: *** [all] Error 2

_P_NOWAITO は libiberty/pex-win32.c に定義されてはいるんだがエラーが起きてるのは pex-unix.c なので pex-win32.c は使われてないんだろなというか cygwin だからここに来ないんだろか。

/* mingw32 headers may not define the following.  */

#ifndef _P_WAIT
#  define _P_WAIT	0
#  define _P_NOWAIT	1
#  define _P_OVERLAY	2
#  define _P_NOWAITO	3
#  define _P_DETACH	4

#  define WAIT_CHILD		0
#  define WAIT_GRANDCHILD	1
#endif

ググる

pex-unix.c の冒頭にこう書いてあるんで

#include "config.h"
#include "libiberty.h"
#include "pex-common.h"

config.h に追加しちまおうと思ったけど config.h は configure したときに config.in から作成されるので pex-unix.c の冒頭に追記した。

#ifndef _P_WAIT
#  define _P_WAIT	0
#  define _P_NOWAIT	1
#  define _P_OVERLAY	2
#  define _P_NOWAITO	3
#  define _P_DETACH	4

#  define WAIT_CHILD		0
#  define WAIT_GRANDCHILD	1
#endif

config.log とかを削除してから再度 make

% make distclean

再度実行

% ./configure --target=h8300-elf --disable-nls && make && make install

おk

本日のツッコミ(全2件) [ツッコミを入れる]

_ かず母ちゃん [お祖母ちゃんの事、何て言ったらいいのか・・・気のきく事、書けなくてごめんなさいm(__)m 翌日以降も出社しているよ..]

_ みわ [いえいえ。ありがとうございます。疲れたけど大丈夫ですゆえ。 風邪は治りました (`・ω・´)]


2012-02-21 :-(

_ 午前

0520 起床

0830 出勤

0900 テスト

_ 午後

1300 テスト

1745 退勤

_

1900 gccほげ

2030 飯

_ 鼻がふがほげするから花粉かと思ったら

頭痛が痛くなってきたので普通に風邪のようだ。like 風邪


2012-02-22 :-(

_ 午前

0520 起床

0830 出勤

0900 テスト

_ 午後

1300 テスト

1700 退勤

_

1900 Jenkins

2200 飯。塩豚に塩麹を使ってみた

_ [Jenkins]豆ナイトPresents:続・CI超入門 ~Jenkinsノススメ2~(東京都)

豆蔵トレーニングルーム

つまり「豪華なcron」「豪華なWindowsタスクスケジューラー」ということですな。

「Jenkinsの導入」 川口耕介

  • CIは刺し身にタンポポを継続できる仕組み
  • Jenkins はカンタンだからやろうず

「Jenkins on Amazon EC2」 玉川竜司

「ディスカッション」

  • 超入門第 1 回の参加者の意見
    • Jenkins 導入にハードルがある
    • バージョン管理すら使おうとしない文化

Lightning Talk

  • Jenkins紹介(?)
    • いきなりビルドとかテストはハードル高いから日々の繰り返し業務に導入しましょう
    • まずは Windows タスクスケジューラーを置き換えるところから
    • ログ rotate とか 結果確認とかカンタンですゆ
  • 導入策
    • 偉い人にはグラフを見せると効果的
    • 静的解析ならプロダクトに影響を及ぼさないのでオススメ

2012-02-23 :-(

_ 午前

0520 起床

0830 出勤

0900 テスト

_ 午後

1300 テスト

1700 退勤

_

1900 gccほげ

2130 飯。メカジキのムニエル

_ [Shift_JIS][0x5C][バックスラッシュ]0x5C

上司からクイズを貰った。

以下のコードをコンパイルして実行するとどうなるか。start を印字して終了することを期待する。

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
  //危ないんだよ
  int is_dangerous = 1;

  //始めるのだぁ
  printf("start\n");

  //危ない場合は止めるの―
  if (is_dangerous) exit(-1);

  //安全なので動かすなりっ
  printf("move\n");

  return 0;
}
% gcc --version
gcc (GCC) 4.5.3
% gcc bug0.c && ./a.exe
start
move

if はどこに行った。

アセンブルしてみた。

% gcc -S bug0.c
	.file	"bug0.c"
	.def	___main;	.scl	2;	.type	32;	.endef
	.section .rdata,"dr"
LC0:
	.ascii "start\0"
LC1:
	.ascii "move arm\0"
	.text
.globl _main
	.def	_main;	.scl	2;	.type	32;	.endef
_main:
	pushl	%ebp
	movl	%esp, %ebp
	andl	$-16, %esp
	subl	$32, %esp
	call	___main
	movl	$1, 28(%esp)    ← たぶん is_dangerous = 1; の処理
	movl	$LC0, (%esp)
	call	_puts
	movl	$LC1, (%esp)
	call	_puts
	movl	$0, %eax
	leave
	ret
	.def	_puts;	.scl	2;	.type	32;	.endef

アセンブリなんてよく分からないけど test とかそういう類の命令が見当たらない。たしかに if が無くなったようだ。

なんとなくコメントを削除して再度コンパイルして実行してみた。

% ./a.exe
start

if が処理されたようだ。

削除したコメントを戻し、ファイルのエンコードを UTF-8 に変換してから( いままで Shift_JIS だった )コンパイルして実行してみた。

% ./a.exe
start

if が処理されたようだ。

0x5C

Shift_JIS - 2バイト目が5C等になりうることによる問題

Shift_JISでは、「ソ」「噂」など一部の字の2バイト目に、5C(Shift_JISでは¥記号、ASCIIなどではバックスラッシュ)を使用している。多くのプログラミング言語 (C、Perl、Bourne Shellなど多数) では、この5Cをエスケープ文字としている。したがって、ソースコードや文字データの処理においてShift_JISを想定していないプログラミング環境では問題が起こる。この問題は、同じように2バイト目の範囲に5Cを含むBig5や、まれではあるがGBKなどの文字コードでも発生しうる。

バックスラッシュとして解釈されてしまい、続く行がコメントとして解釈されてしまうらしい。

ソースコードをバイナリエディタで眺めてみたら 81 5C (―ダッシュ)があった。なるほど

b00.png


2012-02-24 :-(

_ 午前

0930 起床

_ 午後

1230 おひる。焼きそば

1400 図書館

1420 買い物

_

1700 通夜

2100 読書


2012-02-25 :-(

_ 午前

0800 起床

1130 告別式

_ 午後

1230 出棺

1315 火葬

1420 骨上げ

1500 読経

_

1900 寝る

2100 tumblr を彷徨うなど


2012-02-26 :-)

_ 午前

_ 午後

1200 起床

1230 おひる

1400 アニメ消化

_

1700 聖剣伝説LoM 久しぶりすぎる

1800 RR7

2000 RR7

2230 飯

_ [RR7][リッジレーサー7]リッジレーサー7 ARC 2011 如月GP

もっぱらカテ 4

  1. emotion 168
  2. rosso 138
  3. ANSΩB2マンタレイ 105
  4. ANSΩkeyaki 93
  5. FLOW 92
  6. STARGOLD 91
  7. ANSΩ三嶋出雲 82
  8. Locus 56
  9. SORALE 53
  10. ANSΩmiwarin 52
  11. ガンマ 28
  12. かず 24
  13. KYO 23
  14. ANSΩ限無 3
  15. Baldur@ちゃU 2
  16. REDOGRE 2
  17. came_yaroh 1

チョー久しぶりに Baldur と走ったり珍しく keyaki が回線絶好調だと思ってたら実はいつにも増して回線が荒れ狂っており途中でレースから脱落する者が多数いたり私も PS3 がフリーズするなどしてヤバかった。参加者は入れ替わり立ち替わりしていたので 14 人以上居る。rosso が途中で抜けたんだがあのまま継続して走ってたら結果が違ったかもしれない。

カテ 4 はダイナミック車が定番になってきたからそろそろオワコンかなー


2012-02-27 :-(

_ 午前

0520 起床

0830 出勤

0900 テスト

_ 午後

1300 テスト

_

1700 残業アワー

1900 退勤

2000 gccほげ

2130 飯。ブリの照り焼き

2300 tdiaryほげ


2012-02-28 :-(

_ 午前

0520 起床

0830 出勤

0900 テスト

_ 午後

1300 テスト

_ [RR7][リッジレーサー7]リィィジ

Flow さんが動画作ってた。しばらくカテ 1 で走ってなかったので早送りかと思ってしまった。やっぱりリッジ7 はまだ楽しめるよなあ


2012-02-29 :-(

_ 午前

0520 起床

0830 出勤

0900 テスト

_ 午後

1300 テスト

1500 外出

1530 自社

1600 勉強会 || アドレス空間とか 10 年ぶりに聞いた。ような

1700 退勤

_

1900 gccほげ

2100 飯。サーモンムニエル

2200 tdiaryほげ