2007年12月アーカイブ

manpages-dev

| コメント(0) | トラックバック(0)

Ubuntuにglibcなどのmanページを追加

$ sudo apt-get install manpages-dev

Solarisでpam_mkhomedir.soを使いたいので、Linux-pam-0.99.9.0をビルドしてみると結構エラー。

gcc -DHAVE_CONFIG_H -I. -I.. -I../../libpam/include -I../../libpamc/include -DDEFAULT_MODULE_PATH=\"/lib/security/\" -DLIBPAM_COMPILE -I./include -DPAM_VERSION=\"0.99.9.0\" -O2 -D_REENTRANT -DPAM_DYNAMIC -fPIC -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wwrite-strings -Winline -Wshadow -MT pam_modutil_cleanup.lo -MD -MP -MF .deps/pam_modutil_cleanup.Tpo -c pam_modutil_cleanup.c -fPIC -DPIC -o .libs/pam_modutil_cleanup.o
In file included from pam_modutil_private.h:14,
from pam_modutil_cleanup.c:7:
./include/security/pam_modutil.h:66: error: syntax error before "gid_t"
./include/security/pam_modutil.h:66: warning: function declaration isn't a prototype
./include/security/pam_modutil.h:79: error: syntax error before "gid_t"

いろいろ調べた結果、次の方法でビルドできそう....。
と思ったけど、asprintf系の多さに挫折...。

いちおう、その途中経過。
(1) configure時にCFLAGSのオプションを追加
$ ./configure CFLAGS=-D_POSIX_PTHREAD_SEMANTICS

http://docs.sun.com/app/docs/doc/802-1949/6i5ur8qbf?l=ja&a=view


(2) libpam/pam_modutil_private.hにgrp.hのinclude文を追加
----
#include "config.h"

#include ←追加
#include
#include
-----

(3) libpam/pam_modutil_spnam.cを修正
status = getspnam_r(user, buffer,
sizeof(struct spwd) + (char *) buffer,
length); ← 最後の引数を削除

(4) libpamc/include/security/pam_client.h、pamc_converse.cを修正
typedef struct { uint32_t length; uint8_t control; } *pamc_bp_t; ← uint32_t, uint8_tに修正
その他、数箇所も修正。
pamc_converse.cも同様。

(5) modules/pam_filter/upperLOWER/upperLOWER.cを修正
SolarisにはLOG_AUTHPRIVが無いので以下を追加
-----
#ifndef LOG_AUTHPRIV
#define LOG_AUTHPRIV LOG_AUTH
#endif
-----

(6) asprintf、vasprintfを利用している箇所を修正すれば完了....だと思うけど、ちょっと多くて挫折。

Linux-PAM-0.81でやってみることに。
asprintfは1個だけなので、手で修正。
Solarisにlibcrackが無いので、ビルドできず....。
0.99.9.0ならconfigureのオプションに--disable-cracklibがあるのに(涙)

さすがLinux用のPAMモジュール。罠が多すぎて進めない。

trackerd

| コメント(0) | トラックバック(0)

Ubuntu7.10を入れてはや数週間。
特に困ることもなく使っていましたが、psしてみてびっくり。
trackerdとかいうプロセスがCPUを99%とか使っている。
デュアルコアマシンなので、普通にデスクトップ使っている分には、それほど重いとも思わなかったけど、CPU使いすぎ~。

ぐぐってみると、デスクトップ検索らしい。
http://ubuntuforums.org/showthread.php?t=591867

おもいっきり不要なので停止した。

CentOS4.6

| コメント(0) | トラックバック(0)

CentOS4.6がリリースされていた。

http://lists.centos.org/pipermail/centos-announce/2007-December/014511.html

- RHEL4.6のリリースノートにはsamba-3.0.25bにアップデートする際の注意事項も一応含まれている。
- megaraid_sasがPERC6対応になったようだ。

http://www.centos.org/docs/4/html/release-notes/as-x86/RELEASE-NOTES-U6-en.html

Google以外からのGoogle Apps用コードを公開するための置き場所。

http://code.google.com/p/googleappsapi-community/

CentOS5.1

| コメント(0) | トラックバック(0)

気がついたら、いつのまにかCentOS5.1がリリースされている。
http://lists.centos.org/pipermail/centos-announce/2007-December/014476.html