10:22:03
icon

Turing Complete FM https://turingcomplete.fm/ いいよねー

Web site image
Turing Complete FM
10:41:32
2018-04-21 04:13:14 THE BOSSの投稿 the_boss@theboss.tech&OLD
icon

このアカウントは、notestockで公開設定になっていません。

11:55:39
2018-04-20 01:23:47 いしたにまさき・ノートPC没滅運動中の投稿 masakiishitani@mstdn.guru
icon

このアカウントは、notestockで公開設定になっていません。

11:55:47
2018-04-19 23:30:36 mazzo :mazzo:の投稿 mazzo@mstdn.guru
icon

このアカウントは、notestockで公開設定になっていません。

13:57:38
2018-04-21 12:29:10 あわしろいくやの投稿 ikunya@pawoo.net
icon

このアカウントは、notestockで公開設定になっていません。

14:01:08
2018-04-21 07:22:55 unaristの投稿 unarist@mstdn.maud.io
icon

このアカウントは、notestockで公開設定になっていません。

16:08:52
icon

Running 'compile' for libxml2 2.9.7... ERROR, review
... compile.log'

to see what happened. Last lines are:
========================================================================
In file included from threads.c:28:0:
/usr/pkg/include/pthread.h:382:18: warning: redundant redeclaration of
'pthread_atfork' [-Wredundant-decls]
extern int pthread_atfork(void (*)(void), void (*)(void), void
(*)(void));
^
In file included from threads.c:22:0:

むー

16:14:01
icon

$ bundle config build.nokogiri --use-system-libraries

うりゃ

16:15:17
icon

しょぼん

Building nokogiri using system libraries.
pkg-config could not be used to find libxml-2.0

16:46:28
icon

/usr/pkg/include/pthread.h:285:42: error: conflicting types for 'pthread_t'

/usr/include/pthread_types.h:65:30: note: previous declaration of 'pthread_t' was here

こっちかー

17:32:10
19:08:10
icon

そっかー。ネイティブな拡張ライブラリを作っちゃうと今のディレクトリがprefixに入っちゃうからディレクトリ名を変えて移動させられなくなるな

19:08:55
2018-04-21 19:01:18 西にししの投稿 westantenna@matitodon.com
icon

このアカウントは、notestockで公開設定になっていません。

19:23:46
2018-04-21 19:23:01 USA皇帝ノートン2世うさうさ陛下の投稿 usa@mstdn.jp
icon

このアカウントは、notestockで公開設定になっていません。

19:25:24
icon

@usa ありがとうございます!

19:28:47
icon

イマココ:

- configureに--enable-load-relativeオプションを渡せばvendor/bundleの絶対パスが変わってもネイティブ拡張ライブラリが動き続けるらしい
- nokogiri内のlibxml2のconfigureに--without-threadsオプションを渡せばlibxml2のthreads.loのビルドが通るっぽい

やること:

bundle installからconfigureにオプションを渡す方法を探す

19:30:00
icon

あ、環境はルートを持ってないNetBSD 8.0_BETAでruby 2.3.6p384です

19:30:03
icon

とりあえず休憩

19:45:32
2018-04-21 19:39:00 あっきぃの投稿 akkiesoft@social.mikutter.hachune.net
icon

POP

Attach image
Attach image
19:45:54
2018-04-21 19:33:28 白坂/pepepperの投稿 reiden@mstdn.maud.io
icon

このアカウントは、notestockで公開設定になっていません。

20:00:51
icon

bundle config --local build.nokogiri --without-threads

じゃ伝わらないのう。

20:43:21
icon

libxml2を野良ビルドしてみてるよ

ld: warning: libpthread.so.1, needed by /usr/pkg/lib/liblzma.so, may conflict with libpthread.so.20
./.libs/libxml2.a(encoding.o): In function `xmlIconvWrapper':
/sdf/arpa/tz/z/zunda/local/src/libxml2-2.9.7/encoding.c:1811: undefined reference to `libiconv'
:

むー

20:44:09
icon

configureとmakeで見てるパスが違うのかな

20:45:27
icon

--without-iconvしたら厳しいのかな(してる)

20:55:45
icon

$ cd ~/local/src
$ tar zxf ../packages/libxml2-2.9.7.tar.gz
$ cd libxml2-2.9.7
$ ./configure --enable-static --disable-shared --without-python \
--without-readline --without-iconv --with-c14n --prefix=$HOME/local \
--without-threads
$ make
$ make install

して

$ bundle config build.nokogiri --use-system-libraries \
--with-xml2-include=$HOME/local/include/libxml2

したら

$ bundle install --path=vendor/bundle

でnokogiriはいったよ!

21:00:04
icon

駄菓子菓子。ffiもpthread関連で再びpthreadのヘッダに嫌われてる

/usr/pkg/include/pthread.h:285:42: error: conflicting types for 'pthread_t'
typedef struct pthread_st *pthread_t;
^
In file included from /usr/include/sys/types.h:360:0,
from AbstractMemory.c:32:
/usr/include/pthread_types.h:65:30: note: previous declaration of 'pthread_t' was here
typedef struct __pthread_st *pthread_t;
^

21:14:00
icon

/arpa/tz/z/zunda/local/src/cowsayで
gem 'cowsay'
してbundle install --path vendor/bundleしておいて

#!/usr/pkg/bin/ruby23
Gem.use_paths('/arpa/tz/z/zunda/.gem/ruby/2.3.0', Gem.path)
$:.unshift('/arpa/tz/z/zunda/local/lib/ruby/site_ruby')
require 'limitload-cgi'

Dir.chdir('/arpa/tz/z/zunda/local/src/cowsay') do
require 'bundler/setup'
end
require 'cowsay'
puts "Content-type: text/plain\n\n#{Cowsay.say("Hello world.", nil)}\n"

みたいのが動くようにはなった。

あとはtDiaryでbundle installが通れば…!!※遠い

21:23:44
icon

というわけで期間限定w http://zunda.freeshell.org/matsuya/

500 Internal Server Error
21:25:27
icon

bundlerエコシステムのプログラムをCGIで動かせるようにはなった、と思う

21:25:52
2018-04-21 21:25:41 Masanori Ogino 𓀁の投稿 omasanori@mstdn.maud.io
icon

サマーウォーズの小磯健二君はひょっとしたら頑張ればtelnetでTLS話せるかもしれない

21:35:36
2018-04-21 21:23:13 Masanori Ogino 𓀁の投稿 omasanori@mstdn.maud.io
icon

telnetでTLS話す人、脳内時計がNTPで同期している必要がありそう

21:35:39
2018-04-21 21:22:22 zgock999の投稿 zgock999@mstdn.maud.io
icon

このアカウントは、notestockで公開設定になっていません。

21:36:44
icon

telnetで遊ぼうと思ったらないって

21:36:49
icon

てかパケットの構築から?

22:41:39
2018-04-21 19:32:43 Masanori Ogino 𓀁の投稿 omasanori@mstdn.maud.io
icon

GE製の原子力発電所で今世紀上半期まで運用予定のPDP-11くんほんとすき

22:41:49
icon

へええ