vaioでPS vitaのリモートキーボードを使う 

July 03 [Thu], 2014, 2:45
Vaioのアプリケーション「リモートキーボード」を使うと、PS VitaをPCのキーボードから操作できる
登録方法は以下の通り
http://qa.support.sony.jp/solution/S1005171075995/

PS3用って出るけど、PS VitaのBluetooth有効にして実行すると普通にPS Vitaとして認識してくれる



ただ、このアプリケーションを起動している間はPCの操作が出来ないので注意


Vaio持ってない場合は、以下からダウンロードすれば使える、かもしれない
http://www.sony.jp/support/vaio/download/EP0000250308.html

ffmpegで使える拡張子 

June 25 [Wed], 2014, 23:08
ffmpegで使える拡張子がよく分からんかったので、libavformat/*.cからextensionsを検索して確認してみた
コンパイル時のオプションによっては使えないものもあるかもしれないけど、メモとして残す
※ffmpeg-2.2.3で確認

Perl 5.20.0を入れた 

May 28 [Wed], 2014, 19:00
Perl 5.20.0がリリースされた
http://www.perl.org/get.html

さっそくインストールしたところ、以下のワーニングが出た

$ ./test.pl
CGI will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at ./test.pl, line 5.

次のバージョンでCoreからCGIモジュールが消えるそうな
なので、CPANからインストールした

# cpan
cpan> install CGI


Muninも影響受けるのか…
以下のモジュールを再度インストール

Module::Build
Time::HiRes
Net::SSLeay
Storable
Digest::MD5
HTML::Template
Text::Balanced
Params::Validate
Template::Plugin::TimeDate
Net::SSLeay
Getopt::Long
File::Copy::Recursive
CGI::Fast
IO::Socket::INET6
Log::Log4perl
Net::Server
Net::Server::Fork
List::MoreUtils
DBI
DBD/SQLite.pm
RRDs.pm (rrdtools)

DBDがうまく行かない
手動でインストール

$ cd .cpan/build/DBD-SQLite-1.42-fqNkOT
$ perl Makefile.PL
$ make
# make install

xdmとtwmのインストール 

May 25 [Sun], 2014, 15:00
Xディスプレイマネージャとtwmを入れた
GnomeとかKDEは重たいのでxdm+twmにした

依存ライブラリのインストールから

libXpm-3.5.11
libXaw-1.0.12
libXdmcp-1.1.1
http://xorg.freedesktop.org/archive/individual/lib/

xdmとtwmのインストール

xdm-1.1.11
twm-1.0.8
http://xorg.freedesktop.org/archive/individual/app/

$ ./configure --prefix=/usr/X11R7 --includedir=/usr/include
$ make
# make install

liblbxutil-1.1.0
http://xorg.freedesktop.org/archive/individual/lib/

Xtermのインストール
http://invisible-island.net/datafiles/release/xterm.tar.gz

$ ./configure --prefix=/usr/X11R7 --includedir=/usr/include
$ ln -s /usr/lib/libncurses.so.5.9 /usr/lib/libtermcap.so
$ vi Makefile
----
LIBS = -lutil -L/usr/X11R7/lib -L/usr/X11R7/lib -lXmu -lXaw7 -lXpm -L/usr/X11R7/lib -lXt -lX11 -ltermcap -lICE
----
-lICE追加

$ make
# make install


これで動くけどやっぱり見た目が悪いなぁ
X使う頻度が上がったら、enlightenment,Xface,IceWM辺りに切り替えるか…

TigerVNC-1.3.1のインストール 

May 25 [Sun], 2014, 13:45
VNC使いたいのでTigerVNCをインストールした

まずは必要なライブラリ等のインストールから

libxsltのインストール

libxslt-1.1.28
ftp://xmlsoft.org/libxslt/

$ ./configure --prefix=/usr
$ make
# make install

LLVMのインストール

llvm-3.4.1
http://llvm.org/releases/3.4.1/llvm-3.4.1.src.tar.gz

$ ./configure --prefix=/usr --enable-shared
$ make
# make install

PAMのインストール

Linux-PAM-1.1.8
http://linux-pam.org/library

$ ./configure --prefix=/usr --disable-nis
$ make
# make install

Fltkのインストール

fltk-1.3.2
http://fltk.org/pub/fltk/1.3.2

$ ./configure --prefix=/usr
$ make
# make install

make時にエラーが出るので以下編集

src/Fl_JPEG_Image.cxx
----
Compiling Fl_JPEG_Image.cxx...
Fl_JPEG_Image.cxx: In constructor 'Fl_JPEG_Image::Fl_JPEG_Image(const char*)':
Fl_JPEG_Image.cxx:158:29: error: invalid conversion from 'int' to 'boolean' [-fpermissive]
- jpeg_read_header(&dinfo, 1);
+ jpeg_read_header(&dinfo, TRUE);
^
In file included from Fl_JPEG_Image.cxx:50:0:
/usr/include/jpeglib.h:1039:13: note: initializing argument 2 of 'int jpeg_read_header(j_decompress_ptr, boolean)'
EXTERN(int) jpeg_read_header JPP((j_decompress_ptr cinfo,
^
Fl_JPEG_Image.cxx: In constructor 'Fl_JPEG_Image::Fl_JPEG_Image(const char*, const unsigned char*)':
Fl_JPEG_Image.cxx:336:29: error: invalid conversion from 'int' to 'boolean' [-fpermissive]
- jpeg_read_header(&dinfo, 1);
+ jpeg_read_header(&dinfo, TRUE);
^
In file included from Fl_JPEG_Image.cxx:50:0:
/usr/include/jpeglib.h:1039:13: note: initializing argument 2 of 'int jpeg_read_header(j_decompress_ptr, boolean)'
EXTERN(int) jpeg_read_header JPP((j_decompress_ptr cinfo,
----

tigervncのインストール

http://sourceforge.net/projects/tigervnc/files/

$ cmake -DCMAKE_INSTALL_PREFIX=/usr CMakeLists.txt
$ make
# make install

リンク時に以下のエラーが出るので修正

Linking CXX executable vncviewer
/usr/lib/gcc/i686-pc-linux-gnu/4.9.0/../../../../i686-pc-linux-gnu/bin/ld: /usr/lib/gcc/i686-pc-linux-gnu/4.9.0/../../../libfltk.a(Fl_Preferences.o): undefined reference to symbol 'dlopen@@GLIBC_2.1'
/lib/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [vncviewer/vncviewer] Error 1

vncviewer/CMakeFiles/vncviewer.dir/link.txt
----
/usr/bin/c++ -UNDEBUG -O3 -DNDEBUG CMakeFiles/vncviewer.dir/buildTime.cxx.o CMakeFiles/vncviewer.dir/menukey.cxx.o CMakeFiles/vncviewer.dir/CConn.cxx.o CMakeFiles/vncviewer.dir/DesktopWindow.cxx.o CMakeFiles/vncviewer.dir/UserDialog.cxx.o CMakeFiles/vncviewer.dir/ServerDialog.cxx.o CMakeFiles/vncviewer.dir/OptionsDialog.cxx.o CMakeFiles/vncviewer.dir/Viewport.cxx.o CMakeFiles/vncviewer.dir/parameters.cxx.o CMakeFiles/vncviewer.dir/keysym2ucs.c.o CMakeFiles/vncviewer.dir/vncviewer.cxx.o CMakeFiles/vncviewer.dir/X11PixelBuffer.cxx.o -o vncviewer -rdynamic ../common/rfb/librfb.a ../common/network/libnetwork.a ../common/rdr/librdr.a ../common/os/libos.a ../common/Xregion/libXregion.a -Wl,-Bstatic -lfltk_images -lfltk -Wl,-Bdynamic /usr/X11R7/lib/libX11.so /usr/X11R7/lib/libXext.so -lm -ljpeg -lz -lgnutls -ldl -Wl,-rpath,/usr/X11R7/lib:
----
-ldlを追加

起動させる

# x0vncserver -display 0:0 -SecurityTypes=None
Sun May 25 01:02:40 2014
Geometry: Desktop geometry is set to 1024x768+0+0
Main: XTest extension present - version 2.2
Main: Listening on port 5900

起動は問題ないのでXvncの作成を行う

util-macros-1.19.0
http://xorg.freedesktop.org/archive/individual/util/

xtrans-1.3.4
http://xorg.freedesktop.org/archive/individual/lib/

$ ./configure --prefix=/usr/X11R7 --includedir=/usr/include
$ make
# make install

patchが合うバージョンが1.14.xなのでそれを持ってくる

xorg-server-1.14.6
http://xorg.freedesktop.org/archive/individual/xserver/

$ cmake CMakeList.txt
$ cd common
$ make
$ cd ../../tigervnc-1.3.1
$ mkdir -p build/unix
$ cd build
$ tar -xf xorg-server-1.14.6.tar.bz2
$ cp -a ../unix/xserver ../unix/xserver114.patch unix/
$ cp -a cp -a xorg-server-1.14.6/* unix/xserver/
$ cd unix/xserver
$ patch -p1 < ../xserver114.patch
$ autoreconf -fiv -I /usr/X11R7/share/aclocal
$ ./configure --prefix=/usr/X11R7 --includedir=/usr/include --sysconfdir=/etc/X11 --localstatedir=/var --disable-xorg --disable-xnest --disable-xvfb --disable-dmx --disable-xwin --disable-xephyr --disable-kdrive --disable-xinerama
$ cd hw/vnc
$ make LIB_DIR=../../../../../common
# cp -a Xvnc /usr/bin

libXcursor-1.1.14
http://xorg.freedesktop.org/archive/individual/lib/

xrdb-1.1.0
xbitmaps-1.1.0
xsetroot-1.1.1
http://xorg.freedesktop.org/archive/individual/app/

$ ./configure --prefix=/usr/X11R7 --includedir=/usr/include
$ make
# make install

Xauth用のファイルを作成

$ touch .Xauthority
$ touch .Xresources

起動確認

# vncserver :0 -SecurityTypes=None
xauth: (argv):1: bad display name "localhost:0" in "add" command

New 'localhost:0 (root)' desktop is localhost:0

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost:0.log

/etc/hostsに127.0.0.1 localhost書いてるけどWarningメッセージが出る
動いているのでとりあえずは不問

Xorgのインストール 

May 24 [Sat], 2014, 18:00
Xorgをインストールしたときのメモ

まずはX関連のライブラリから

pixman-0.32.4
util-macros-1.19.0
xorg-sgml-doctools-1.11
kbproto-1.0.6
xcb-proto-1.10
xextproto-7.3.0
xproto-7.0.26
xtrans-1.3.4
inputproto-2.3
libpthread-stubs-0.3
libXau-1.0.8
libxcb-1.10
libX11-1.6.2
libXext-1.3.2
fixesproto-5.0
libXfixes-5.0.1
libXi-1.7.2
recordproto-1.14.2
libXtst-1.2.2
libICE-1.0.8
libSM-1.2.2
libXt-1.1.4
libXmu-1.1.2
xauth-1.0.9
glproto-1.4.17
libpciaccess-0.13.2

libdrm-2.4.54
http://dri.freedesktop.org/libdrm/

dri2proto-2.8
dri3proto-1.0
presentproto-1.0
damageproto-1.2.1
libXdamage-1.1.3
libxshmfence-1.1
libXrender-0.9.8
http://xorg.freedesktop.org/archive/individual

コンパイルの共通コマンドは以下

$ ./configure --prefix=/usr/X11R7 --includedir=/usr/include
$ make
# make install

OpenGL有効にするためにMesaLibを入れる

MesaLib-10.1.3
ftp://ftp.freedesktop.org/pub/mesa/10.1.3/

$ ./configure --prefix=/usr/X11R7 --includedir=/usr/include --enable-gles1 --enable-gles2 -open-vg
$ make
# make install

引き続きXライブラリのインストール

xcb-util-0.3.9
xcb-util-image-0.3.9
xcb-util-keysyms-0.3.9
xcb-util-wm-0.4.1(xcb-icccm)
libxkbfile-1.0.8
xcmiscproto-1.2.2
bigreqsproto-1.1.2
randrproto-1.4.0
renderproto-0.11.1
videoproto-2.3.2
compositeproto-0.4.2
scrnsaverproto-1.2.2
resourceproto-1.2.0
xf86driproto-2.1.1
xineramaproto-1.2.1
xf86dgaproto-2.1(フレームバッファ)
xkbcomp-1.2.4

http://xorg.freedesktop.org/archive/individual

$ ./configure --prefix=/usr/X11R7 --includedir=/usr/include
$ make
# make install

これでX Serverのインストール準備が出来たので、次はX Serverのインストール

xorg-server-1.15.0
http://xorg.freedesktop.org/archive/individual

$ ./configure --prefix=/usr/X11R7 --includedir=/usr/include --sysconfdir=/etc/X11 --mandir=/usr/share/man --localstatedir=/var
$ make
# make install

今回は、フレームバッファを使うので以下インストール
xf86-video-fbdev-0.4.4
http://xorg.freedesktop.org/archive/individual

$ ./configure --prefix=/usr/X11R7 --includedir=/usr/include
$ make
# make install

/dev/fb0作成とドライバモジュールをロード

# mknod /dev/fb0 c 29 0
# modprobe viafb

evdevのインストール

xf86-input-evdev-2.9.0
xlibevdev-1.2.1
http://www.freedesktop.org/software/libevdev/

$ ./configure --prefix=/usr/X11R7 --includedir=/usr/include
$ make
# make install

これでXの準備が出来たので、次は設定と起動確認

Qt-5.3.0のインストール 

May 23 [Fri], 2014, 7:30
xkey関連のインストールから

xkeyboard-config-2.11
http://xorg.freedesktop.org/archive/individual/data/xkeyboard-config/

$ ./configure --prefix=/usr/X11R7 --includedir=/usr/include --with-xkb-base=/usr/X11R7/share/xkb
$ make
# make install

libxkbcommon-0.4.2
http://xkbcommon.org/download/

$ ./configure --prefix=/usr/X11R7 --includedir=/usr/include --with-default-model=pc109 --with-default-layout=ja
$ make
# make install


Qtのインストール

qt-everywhere-opensource-src-5.3.0
http://download.qt-project.org/official_releases/qt/5.3/5.3.0/single/

$ ./configure -prefix /usr -opensource -nomake examples -nomake tests -confirm-license

configureで、どうしてもxcbが見つからないというので調べたら、以下のパッケージの内容が壊れていた
これが原因でpkg-configがうまく動いていなかった模様

$ pkg-config --list-all
Variable 'exec_prefix' not defined in '/usr/lib/pkgconfig/wavpack.pc'

exec_prefix=/usrを追加して解消

以下のエラーが出る場合はOpenGLを有効にする必要があるみたい

cd quickwidgets/ && ( test -e Makefile || /root/Qt/qt-everywhere-opensource-src-5.3.0/qtbase/bin/qmake /root/Qt/qt-everywhere-opensource-src-5.3.0/qtdeclarative/src/quickwidgets/quickwidgets.pro -o Makefile ) && make -f Makefile
Project ERROR: Unknown module(s) in QT: quick-private
make[2]: *** [sub-quickwidgets-make_first-ordered] Error 3

MesaLib-10.1.3(OpenGL)
ftp://ftp.freedesktop.org/pub/mesa/10.1.3/

$ ./configure --prefix=/usr/X11R7 --includedir=/usr/include --enable-gles1 --enable-gles2 --enable-openvg --enable-gallium-egl --enable-openvg
$ make
# make install

再度configureから

$ ./configure -prefix /usr -opensource -nomake examples -nomake tests -confirm-license -opengl es2
$ make

makeしていくと以下のエラーでコケる

make[6]: Entering directory `/root/Qt/qt-everywhere-opensource-src-5.3.0/qtbase/src/plugins/platforms/xcb'
rm -f libqxcb.so
g++ -Wl,--no-undefined -Wl,-O1 -Wl,-rpath,/usr/lib -shared -o libqxcb.so .obj/qxcbclipboard.o .obj/qxcbconnection.o .obj/qxcbintegration.o .obj/qxcbkeyboard.o .obj/qxcbmime.o .obj/qxcbdrag.o .obj/qxcbscreen.o .obj/qxcbwindow.o .obj/qxcbbackingstore.o .obj/qxcbwmsupport.o .obj/qxcbmain.o .obj/qxcbnativeinterface.o .obj/qxcbcursor.o .obj/qxcbimage.o .obj/qxcbxsettings.o .obj/qxcbsystemtraytracker.o .obj/qxcbsessionmanager.o .obj/moc_qxcbconnection.o .obj/moc_qxcbmime.o .obj/moc_qxcbnativeinterface.o .obj/moc_qxcbsystemtraytracker.o -L/usr/X11R7/lib -ldl -lX11 -lX11-xcb -lSM -lICE -lxcb-render -ldbus-1 -lxcb -lxcb-image -lxcb-icccm -lxcb-sync -lxcb-xfixes -lxcb-shm -lxcb-randr -lxcb-shape -lxcb-keysyms -lxcb-xkb -lxkbcommon-x11 -lxkbcommon -L/root/Qt/qt-everywhere-opensource-src-5.3.0/qtbase/lib -lQt5PlatformSupport -lfontconfig -lfreetype -lgthread-2.0 -pthread -lglib-2.0 -ludev -lEGL -lQt5DBus -lQt5Gui -lQt5Core -lGLESv2 -lpthread -lEGL
.obj/qxcbwindow.o: In function `QXcbWindow::create()':
qxcbwindow.cpp:(.text+0x4236): undefined reference to `QXlibEglIntegration::getCompatibleVisualId(_XDisplay*, void*, void*)'
collect2: error: ld returned 1 exit status
make[6]: *** [../../../../plugins/platforms/libqxcb.so] Error 1

libXrenderが入ってなかった…ので、入れた

libXrender-0.9.8
http://xorg.freedesktop.org/archive/individual

$ ./configure --prefix=/usr/X11R7 --includedir=/usr/include
$ make
# make install

もう一度make

$ make

が同じ結果…
qtbase/configureを調べたところ、test時にlibX*.soが見つからないといわれる

$ cd qtbase/config.tests/x11/xrender
$ make
g++ -Wl,-O1 -o xrender xrender.o -lXrender -lXext -lX11 -lm
/usr/lib/gcc/i686-pc-linux-gnu/4.9.0/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lXrender
/usr/lib/gcc/i686-pc-linux-gnu/4.9.0/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lXext
/usr/lib/gcc/i686-pc-linux-gnu/4.9.0/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lX11
collect2: error: ld returned 1 exit status
make: *** [xrender] Error 1

パスは/etc/ld.so.confに入ってるし、ldconfigも流したんだけどなー
仕方ないので、ライブラリパスを通して再度configureから

$ LIBRARY_PATH=/usr/X11R7/lib ./configure -prefix /usr -opensource -nomake examples -nomake tests -confirm-license -opengl es2
$ make
# make install

無事完了

$ qmake --version
QMake version 3.0
Using Qt version 5.3.0 in /usr/lib

MuninでCPU温度確認 

May 21 [Wed], 2014, 22:00
MuninでCPUの温度をグラフ表示させてみた

まずはsensorsの動作確認から
※sensorsが無い場合は、lm_sensorsをインストールする

$ sensors
via_cputemp-isa-0000
Adapter: ISA adapter
Core 0: +45.0 C
cpu0_vid: +1.004 V

w83697hf-isa-0290
Adapter: ISA adapter
in0: +0.99 V (min = +3.62 V, max = +0.05 V) ALARM
in2: +3.30 V (min = +0.26 V, max = +0.69 V) ALARM
in3: +2.99 V (min = +0.05 V, max = +3.38 V)
in4: +3.09 V (min = +2.48 V, max = +3.04 V) ALARM
in5: +0.02 V (min = +1.36 V, max = +3.39 V) ALARM
in6: +0.02 V (min = +2.45 V, max = +0.30 V) ALARM
in7: +3.18 V (min = +4.06 V, max = +0.53 V) ALARM
in8: +3.10 V (min = +3.63 V, max = +0.19 V) ALARM
fan1: 0 RPM (min = 3013 RPM, div = 4) ALARM
fan2: 2960 RPM (min = 7031 RPM, div = 4) ALARM
temp1: +127.0 C (high = +44.0 C, hyst = +75.0 C) ALARM sensor = CPU diode
temp2: +119.5 C (high = +120.0 C, hyst = +115.0 C) ALARM sensor = transistor
beep_enable: enabled

↑の通り、temp1とtemp2の値が正しくないのでCore 0の値を使うことにする
スクリプトは以下

#!/bin/sh

if [ "$1" = "autoconf" ]; then
if ( test -e /usr/bin/sensors ); then
echo yes
exit 0
else
echo no
exit 0
fi
fi

if [ "$1" = "config" ]; then

echo 'graph_title CPU Temperature'
echo 'graph_args --base 1000 -l 0'
echo 'graph_vlabel Temperatue(C)'
echo 'graph_category temperature'
echo 'temp.label temperature'
echo 'temp.type GAUGE'
echo 'temp.max 500000'

sensors -u | perl -e '@sensors = ;foreach $temp (@sensors){if($temp =~ /temp1_input.*?(\d+)/){print "temp.value $1";exit 0}}'
fi

これをMunin Pluginsに放り込む(/usr/lib/plugins)
/etc/munin/pluginsにリンクを張って、munin-cronを回す

# ln -s /usr/lib/plugins/cputemp /etc/munin/plugins/cputemp
# su - munin --shell=/bin/bash
$ munin-cron


出来たグラフが以下

Fcronのインストール 

May 19 [Mon], 2014, 7:30
Cronが無いのでインストールした

fcron-3.1.3.src
http://fcron.free.fr/archives/

$ ./configure --prefix=/usr --without-sendmail --without-pam --with-spooldir=/var/spool/fcron --sysconfdir=/etc --with-piddir=/var/run --with-fifodir=/var/run
$ make
# make install


/varをtmpfsとして使用しているので、以下のスクリプトでfcrontabを自動生成させてみた

#!/bin/bash

echo "*/5 * * * * /usr/bin/munin-cron" > /var/spool/fcron/munin.orig
/usr/bin/fcrontab -u munin -z


これで毎回fcrontabを追加しなくても済む

動作確認

# tail /var/log/cron
May 19 07:22:34 (none) fcron[1289]: fcron[1289] 3.1.3 started
May 19 07:22:34 (none) fcron[1289]: updating configuration from /var/spool/fcron
May 19 07:22:35 (none) fcrontab[1293]: reinstalling munin's fcrontab
May 19 07:22:35 (none) fcrontab[1293]: installing file /tmp/fcr-tVhk7T for user munin
May 19 07:22:35 (none) fcron[1289]: updating configuration from /var/spool/fcron
May 19 07:22:35 (none) fcron[1289]: removing file munin
May 19 07:22:35 (none) fcron[1289]: adding new file munin

munin-2.1.7のインストール 

May 19 [Mon], 2014, 0:50
リソース監視ツールのMuninをインストールしたときのメモ

munin-2.1.7
http://munin-monitoring.org/

Makefile.confを自分の環境に合わせて変更し、ユーザも追加する
----
PREFIX = $(DESTDIR)/usr
CONFDIR = $(DESTDIR)/etc/munin
BINDIR = $(PREFIX)/bin
SBINDIR = $(PREFIX)/sbin
DOCDIR = $(PREFIX)/doc
MANDIR = $(PREFIX)/share/man
LIBDIR = $(PREFIX)/lib
HTMLDIR = /var/munin
CGIDIR = /var/munin/cgi
DBDIR = $(DESTDIR)/var/munin
CGITMPDIR = $(DBDIR)/cgi-tmp
DBDIRNODE = $(DESTDIR)/var/munin-node
SPOOLDIR = $(DBDIR)/spool
PLUGSTATE = $(DBDIRNODE)/plugin-state
LOGDIR = /var/log/munin
STATEDIR = $(DESTDIR)/var/run/munin

USER := munin
GROUP := munin
PLUGINUSER := munin
CGIUSER := munin
----

$ make
# make install
# make install-common-prime install-node-prime install-plugins-prime
# useradd munin (or vi /etc/passwd,/etc/group)


続けて、関連するアプリケーションをインストールする

harfbuzz-0.9.28
www.freedesktop.org/software/harfbuzz/release/

$ ./configure --prefix=/usr
$ make
# make install

cairo-1.12.16
http://cairographics.org/releases/

$ CFLAGS="$CFLAGS -ffat-lto-objects" ./configure --prefix=/usr
$ make
# make install

CFLAGSを付けないと以下のエラーが出る

-----------------------------------------
make[4]: Entering directory `/root/cairo-1.12.16/test'
CCLD cairo-test-suite
cairo_test_suite-partial-coverage.o (symbol from plugin): warning: memset used with constant zero length parameter; this could be due to transposed parameters
cairo_test_suite-partial-coverage.o (symbol from plugin): warning: memset used with constant zero length parameter; this could be due to transposed parameters
cairo_test_suite-partial-coverage.o (symbol from plugin): warning: memset used with constant zero length parameter; this could be due to transposed parameters
In function '__fread_alias',
inlined from 'test_surface' at create-for-stream.c:218:9:
/usr/include/bits/stdio2.h:290:2: warning: call to '__fread_chk_warn' declared with attribute warning: fread called with bigger size * nmemb than length of destination buffer
return __fread_chk (__ptr, __bos0 (__ptr), __size, __n, __stream);
^
/tmp/ccAdZS0S.ltrans0.ltrans.o: In function `_parse_cmdline':
/root/cairo-1.12.16/test/cairo-test-runner.c:354: undefined reference to `_cairo_getopt'
/tmp/ccAdZS0S.ltrans0.ltrans.o: In function `append_argv':
/root/cairo-1.12.16/test/cairo-test-runner.c:279: undefined reference to `cairo_boilerplate_xmalloc'
/tmp/ccAdZS0S.ltrans0.ltrans.o: In function `_runner_print_details':
/root/cairo-1.12.16/test/cairo-test-runner.c:499: undefined reference to `cairo_boilerplate_content_name'
/root/cairo-1.12.16/test/cairo-test-runner.c:532: undefined reference to `cairo_boilerplate_content_name'
/root/cairo-1.12.16/test/cairo-test-runner.c:515: undefined reference to `cairo_boilerplate_content_name'
/tmp/ccAdZS0S.ltrans0.ltrans.o: In function `_runner_init':
/root/cairo-1.12.16/test/cairo-test-runner.c:401: undefined reference to `cairo_boilerplate_xcalloc'
/root/cairo-1.12.16/test/cairo-test-runner.c:403: undefined reference to `cairo_boilerplate_xcalloc'
/root/cairo-1.12.16/test/cairo-test-runner.c:405: undefined reference to `cairo_boilerplate_xcalloc'
/root/cairo-1.12.16/test/cairo-test-runner.c:407: undefined reference to `cairo_boilerplate_xcalloc'
/root/cairo-1.12.16/test/cairo-test-runner.c:409: undefined reference to `cairo_boilerplate_xcalloc'
/tmp/ccAdZS0S.ltrans0.ltrans.o:/root/cairo-1.12.16/test/cairo-test-runner.c:411: more undefined references to `cairo_boilerplate_xcalloc' follow
/tmp/ccAdZS0S.ltrans0.ltrans.o: In function `main':
/root/cairo-1.12.16/test/cairo-test-runner.c:752: undefined reference to `cairo_boilerplate_xmalloc'
/tmp/ccAdZS0S.ltrans0.ltrans.o: In function `_list_prepend':
/root/cairo-1.12.16/test/cairo-test-runner.c:130: undefined reference to `cairo_boilerplate_xmalloc'
/root/cairo-1.12.16/test/cairo-test-runner.c:130: undefined reference to `cairo_boilerplate_xmalloc'
/root/cairo-1.12.16/test/cairo-test-runner.c:130: undefined reference to `cairo_boilerplate_xmalloc'
/root/cairo-1.12.16/test/cairo-test-runner.c:130: undefined reference to `cairo_boilerplate_xmalloc'
/tmp/ccAdZS0S.ltrans0.ltrans.o:/root/cairo-1.12.16/test/cairo-test-runner.c:130: more undefined references to `cairo_boilerplate_xmalloc' follow
/tmp/ccAdZS0S.ltrans1.ltrans.o: In function `get_user_font_face':
/root/cairo-1.12.16/test/user-font-rescale.c:278: undefined reference to `cairo_boilerplate_xcalloc'
/tmp/ccAdZS0S.ltrans1.ltrans.o: In function `create_rescaled_font':
/root/cairo-1.12.16/test/user-font-rescale.c:190: undefined reference to `cairo_boilerplate_xmalloc'
/root/cairo-1.12.16/test/user-font-rescale.c:208: undefined reference to `cairo_boilerplate_xcalloc'
/root/cairo-1.12.16/test/user-font-rescale.c:209: undefined reference to `cairo_boilerplate_xcalloc'
/tmp/ccAdZS0S.ltrans6.ltrans.o: In function `preamble.lto_priv.67':
/root/cairo-1.12.16/test/fallback-resolution.c:394: undefined reference to `cairo_boilerplate_content_name'
/root/cairo-1.12.16/test/fallback-resolution.c:395: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/fallback-resolution.c:426: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/fallback-resolution.c:428: undefined reference to `cairo_boilerplate_xasprintf'
/tmp/ccAdZS0S.ltrans6.ltrans.o: In function `check_result':
/root/cairo-1.12.16/test/fallback-resolution.c:172: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/fallback-resolution.c:173: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/fallback-resolution.c:196: undefined reference to `cairo_boilerplate_content_name'
/tmp/ccAdZS0S.ltrans7.ltrans.o: In function `intersecting_triangles.lto_priv.1353':
/root/cairo-1.12.16/test/partial-coverage.c:549: undefined reference to `cairo_boilerplate_xmalloc'
/tmp/ccAdZS0S.ltrans7.ltrans.o: In function `triangles.lto_priv.1351':
/root/cairo-1.12.16/test/partial-coverage.c:488: undefined reference to `cairo_boilerplate_xmalloc'
/tmp/ccAdZS0S.ltrans7.ltrans.o: In function `overlap_three_quarter_triangles.lto_priv.1347':
/root/cairo-1.12.16/test/partial-coverage.c:423: undefined reference to `cairo_boilerplate_xmalloc'
/tmp/ccAdZS0S.ltrans7.ltrans.o: In function `overlap_half_triangles_eo.lto_priv.1346':
/root/cairo-1.12.16/test/partial-coverage.c:356: undefined reference to `cairo_boilerplate_xmalloc'
/tmp/ccAdZS0S.ltrans9.ltrans.o: In function `draw.lto_priv.219':
/root/cairo-1.12.16/test/show-glyphs-many.c:115: undefined reference to `cairo_boilerplate_xmalloc'
/tmp/ccAdZS0S.ltrans9.ltrans.o:/root/cairo-1.12.16/test/show-glyphs-advance.c:69: more undefined references to `cairo_boilerplate_xmalloc' follow
/tmp/ccAdZS0S.ltrans11.ltrans.o: In function `cairo_test_create_surface_from_png':
/root/cairo-1.12.16/test/cairo-test.c:1666: undefined reference to `cairo_boilerplate_xasprintf'
/tmp/ccAdZS0S.ltrans11.ltrans.o: In function `cairo_test_get_reference_image':
/root/cairo-1.12.16/test/cairo-test.c:525: undefined reference to `cairo_boilerplate_xstrdup'
/tmp/ccAdZS0S.ltrans11.ltrans.o: In function `cairo_test_target_has_similar':
/root/cairo-1.12.16/test/cairo-test.c:422: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/cairo-test.c:445: undefined reference to `cairo_boilerplate_content'
/tmp/ccAdZS0S.ltrans11.ltrans.o: In function `cairo_test_reference_filename':
/root/cairo-1.12.16/test/cairo-test.c:323: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/cairo-test.c:336: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/cairo-test.c:350: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/cairo-test.c:363: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/cairo-test.c:376: undefined reference to `cairo_boilerplate_xasprintf'
/tmp/ccAdZS0S.ltrans11.ltrans.o:/root/cairo-1.12.16/test/cairo-test.c:388: more undefined references to `cairo_boilerplate_xasprintf' follow
/tmp/ccAdZS0S.ltrans11.ltrans.o: In function `cairo_test_fini':
/root/cairo-1.12.16/test/cairo-test.c:261: undefined reference to `cairo_boilerplate_fini'
/root/cairo-1.12.16/test/cairo-test.c:259: undefined reference to `cairo_boilerplate_free_targets'
/tmp/ccAdZS0S.ltrans11.ltrans.o: In function `_cairo_test_fixup_name.lto_priv.1396':
/root/cairo-1.12.16/test/cairo-test.c:128: undefined reference to `cairo_boilerplate_xstrdup'
/tmp/ccAdZS0S.ltrans11.ltrans.o: In function `_cairo_test_init.lto_priv.1398':
/root/cairo-1.12.16/test/cairo-test.c:174: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/cairo-test.c:200: undefined reference to `cairo_boilerplate_get_targets'
/tmp/ccAdZS0S.ltrans11.ltrans.o: In function `compare_surfaces':
/root/cairo-1.12.16/test/buffer-diff.c:170: undefined reference to `pdiff_compare'
/tmp/ccAdZS0S.ltrans11.ltrans.o: In function `_cairo_test_context_run_for_target':
/root/cairo-1.12.16/test/cairo-test.c:1491: undefined reference to `cairo_boilerplate_content_name'
/root/cairo-1.12.16/test/cairo-test.c:1547: undefined reference to `cairo_boilerplate_content_name'
/root/cairo-1.12.16/test/cairo-test.c:1633: undefined reference to `cairo_boilerplate_content_name'
/tmp/ccAdZS0S.ltrans11.ltrans.o: In function `cairo_test_for_target':
/root/cairo-1.12.16/test/cairo-test.c:663: undefined reference to `cairo_boilerplate_content_name'
/root/cairo-1.12.16/test/cairo-test.c:669: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/cairo-test.c:754: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/cairo-test.c:757: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/cairo-test.c:758: undefined reference to `cairo_boilerplate_xasprintf'
/tmp/ccAdZS0S.ltrans11.ltrans.o: In function `_cairo_test_context_run_for_target':
/root/cairo-1.12.16/test/cairo-test.c:1602: undefined reference to `cairo_boilerplate_content_name'
/root/cairo-1.12.16/test/cairo-test.c:1573: undefined reference to `cairo_boilerplate_content_name'
/root/cairo-1.12.16/test/cairo-test.c:1588: undefined reference to `cairo_boilerplate_content_name'
/root/cairo-1.12.16/test/cairo-test.c:1617: undefined reference to `cairo_boilerplate_content_name'
/tmp/ccAdZS0S.ltrans11.ltrans.o: In function `cairo_test_for_target':
/root/cairo-1.12.16/test/cairo-test.c:665: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/cairo-test.c:852: undefined reference to `cairo_boilerplate_content'
/root/cairo-1.12.16/test/cairo-test.c:862: undefined reference to `cairo_boilerplate_output_basename_key'
/root/cairo-1.12.16/test/cairo-test.c:1068: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/cairo-test.c:1070: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/cairo-test.c:1072: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/cairo-test.c:1163: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/cairo-test.c:1164: undefined reference to `cairo_boilerplate_xasprintf'
/tmp/ccAdZS0S.ltrans11.ltrans.o:/root/cairo-1.12.16/test/cairo-test.c:1165: more undefined references to `cairo_boilerplate_xasprintf' follow
/tmp/ccAdZS0S.ltrans14.ltrans.o: In function `draw.lto_priv.822':
/root/cairo-1.12.16/test/a8-mask.c:113: undefined reference to `cairo_boilerplate_xmalloc'
/tmp/ccAdZS0S.ltrans14.ltrans.o: In function `test_surface_with_width_and_stride':
/root/cairo-1.12.16/test/a8-mask.c:78: undefined reference to `cairo_boilerplate_xmalloc'
/tmp/ccAdZS0S.ltrans14.ltrans.o: In function `test_surface_with_width_and_stride':
/root/cairo-1.12.16/test/a1-mask.c:84: undefined reference to `cairo_boilerplate_xmalloc'
/tmp/ccAdZS0S.ltrans14.ltrans.o: In function `_list_prepend':
/root/cairo-1.12.16/test/cairo-test-runner.c:130: undefined reference to `cairo_boilerplate_xmalloc'
/tmp/ccAdZS0S.ltrans15.ltrans.o: In function `check_bbox':
/root/cairo-1.12.16/test/ps-eps.c:204: undefined reference to `cairo_boilerplate_xasprintf'
/tmp/ccAdZS0S.ltrans15.ltrans.o: In function `preamble.lto_priv.84':
/root/cairo-1.12.16/test/ps-eps.c:281: undefined reference to `cairo_boilerplate_content_name'
/root/cairo-1.12.16/test/ps-eps.c:282: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/ps-eps.c:283: undefined reference to `cairo_boilerplate_xasprintf'
/tmp/ccAdZS0S.ltrans15.ltrans.o: In function `check_result':
/root/cairo-1.12.16/test/ps-eps.c:101: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/ps-eps.c:102: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/ps-eps.c:125: undefined reference to `cairo_boilerplate_content_name'
/tmp/ccAdZS0S.ltrans16.ltrans.o: In function `overlap_half_triangles.lto_priv.1345':
/root/cairo-1.12.16/test/partial-coverage.c:291: undefined reference to `cairo_boilerplate_xmalloc'
/tmp/ccAdZS0S.ltrans16.ltrans.o: In function `half_triangles.lto_priv.1344':
/root/cairo-1.12.16/test/partial-coverage.c:244: undefined reference to `cairo_boilerplate_xmalloc'
/tmp/ccAdZS0S.ltrans16.ltrans.o: In function `intersecting_quads.lto_priv.1355':
/root/cairo-1.12.16/test/partial-coverage.c:196: undefined reference to `cairo_boilerplate_xmalloc'
/tmp/ccAdZS0S.ltrans16.ltrans.o: In function `rectangles.lto_priv.1359':
/root/cairo-1.12.16/test/partial-coverage.c:150: undefined reference to `cairo_boilerplate_xmalloc'
/tmp/ccAdZS0S.ltrans21.ltrans.o: In function `read_file.isra.0.lto_priv.57':
/root/cairo-1.12.16/test/mime-data.c:68: undefined reference to `cairo_boilerplate_xmalloc'
/tmp/ccAdZS0S.ltrans25.ltrans.o: In function `draw.lto_priv.530':
/root/cairo-1.12.16/test/glyph-cache-pressure.c:68: undefined reference to `cairo_boilerplate_scaled_font_set_max_glyphs_cached'
/tmp/ccAdZS0S.ltrans26.ltrans.o: In function `draw.lto_priv.603':
/root/cairo-1.12.16/test/create-from-png-stream.c:57: undefined reference to `cairo_boilerplate_xasprintf'
/tmp/ccAdZS0S.ltrans26.ltrans.o: In function `draw.lto_priv.602':
/root/cairo-1.12.16/test/create-from-png.c:52: undefined reference to `cairo_boilerplate_xasprintf'
/tmp/ccAdZS0S.ltrans26.ltrans.o: In function `preamble.lto_priv.607':
/root/cairo-1.12.16/test/create-from-png.c:134: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/create-from-png.c:135: undefined reference to `cairo_boilerplate_xasprintf'
/root/cairo-1.12.16/test/create-from-png.c:186: undefined reference to `cairo_boilerplate_xasprintf'
/tmp/ccAdZS0S.ltrans26.ltrans.o:/root/cairo-1.12.16/test/create-from-png.c:206: more undefined references to `cairo_boilerplate_xasprintf' follow
/tmp/ccAdZS0S.ltrans31.ltrans.o: In function `create_source_surface.constprop.3':
/root/cairo-1.12.16/test/xcb-surface-source.c:105: undefined reference to `cairo_boilerplate_xmalloc'
collect2: error: ld returned 1 exit status
make[4]: *** [cairo-test-suite] Error 1
make[4]: Leaving directory `/root/cairo-1.12.16/test'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/cairo-1.12.16/test'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/cairo-1.12.16/test'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/cairo-1.12.16'
make: *** [all] Error 2
-----------------------------------------

pango-1.36.3
http://ftp.gnome.org/pub/GNOME/sources/pango/1.36/

$ ./configure --prefix=/usr
$ make
# make install

RRDtool-1.4.8
http://oss.oetiker.ch/rrdtool/pub/

$ ./configure --prefix=/usr

src/Makefileにglib-2.0を追加
----
rrdcached$(EXEEXT): $(rrdcached_OBJECTS) $(rrdcached_DEPENDENCIES) $(EXTRA_rrdcached_DEPENDENCIES)
@rm -f rrdcached$(EXEEXT)
$(AM_V_CCLD)$(LINK) $(rrdcached_OBJECTS) $(rrdcached_LDADD) $(LIBS) -lglib-2.0
----

$ make
# make install
# make site-perl-install
# cp -a /usr/lib/perl/* /usr/lib/perl5

以下のPerlモジュールを追加

Module::Build
Time::HiRes
Net::SSLeay
Storable
Digest::MD5
HTML::Template
Text::Balanced
Params::Validate
Template::Plugin::TimeDate
Net::SSLeay
Getopt::Long
File::Copy::Recursive
CGI::Fast
IO::Socket::INET6
Log::Log4perl
Net::Server
Net::Server::Fork
List::MoreUtils
DBI
DBD/SQLite.pm

# cpan
cpan> install <モジュール名>

fontsproto-2.1.2
libfontenc-1.1.2
libXfont-1.4.8
bdftopcf-1.0.4
mkfontscale-1.1.1
http://xorg.freedesktop.org/archive/individual/

$ ./configure --prefix=/usr/X11R7 --includedir=/usr/include
$ make
# make install

font-util-1.3.0
font-jis-misc-1.0.3
http://xorg.freedesktop.org/archive/individual/

$ ./configure --prefix=/usr
$ make
# make install

PangoのためにIPAフォントを入れる
http://ipafont.ipa.go.jp/ipaexfont/IPAexfont00201.php

muninの起動

# munin-node

cron回す

$ su - munin --shell /bin/bash
$ munin-cron


こんな感じになった
P R
プロフィール
  • アイコン画像 ニックネーム:ゆう
読者になる
何書いてもイインダヨー

週間で日誌更新!
できたらいいなと思っている時期がありました

久しぶりにLinuxとNetworkの勉強中
2014年07月
« 前の月  |  次の月 »
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
最新コメント
Yapme!一覧
読者になる