[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[plamo:25534] Re: Samba3.0.14aがコンパイルできません(Plamo4.02)
-
From:ISHIKAWA Toshiyuki
-
Date:Tue, 17 May 2005 23:13:10 +0900 (JST)
- Subject: [plamo:25534] Re: Samba3.0.14aがコンパイルできません(Plamo4.02)
- From: ISHIKAWA Toshiyuki <tosiyuki@xxxxxxx>
- Date: Tue, 17 May 2005 23:12:52 +0900
石川です。
良くわからない立場での発言ですが、4.02 さらです。kernel は 2.4.30 に
上げました。私はまだ 2.2.12 を使ってますので、インストール直前まで検
証しました。
samba の場合全てルートで作業します。
適当なところで解凍して
# ls
COPYING README Read-Manifest-Now WHATSNEW.txt examples/ pcp/ swat/
Manifest REVISION Roadmap docs/ packaging/ source/ testsuite/
# cd source
# ./autogen.sh
--
終りのほう
./autogen.sh: running autoconf
Now run ./configure and then make.
checking configure summary... yes
configure: creating ./config.status
config.status: creating include/stamp-h
config.status: creating Makefile
config.status: creating script/findsmb
config.status: creating smbadduser
config.status: creating script/gen-8bit-gap.sh
config.status: creating include/config.h
--
で make
Compiling modules/vfs_shadow_copy.c with -fPIC
Building plugin bin/shadow_copy.so
Compiling modules/CP850.c with -fPIC
Building plugin bin/CP850.so
Compiling modules/CP437.c with -fPIC
Building plugin bin/CP437.so
で出来ましたけれども。
make install はしてません。
--
On Tue, 17 May 2005 22:41:16 +0900
ak@kitahara.jp wrote:
> こんばんわ、北原です。
>
> Plamo 4.02 をインストールして使用しているのですが、
> Samba 3.0.14a をコンパイルしようとしてみたところ、
> 以下のようなエラーが出てコンパイルができませんでした。
>
> Compiling smbwrapper/wrapped.c with -fPIC
> smbwrapper/wrapped.c: 関数 `utimes' 内:
> smbwrapper/wrapped.c:470: error: `__NR_utimes' undeclared (first use in this funct
> ion)
> smbwrapper/wrapped.c:470: error: (Each undeclared identifier is reported only once
> smbwrapper/wrapped.c:470: error: for each function it appears in.)
> make: *** [smbwrapper/wrapped.po] エラー 1
>
> 調べてみたところ、
> /usr/include/bits/syscall.h には
> #define SYS_utimes __NR_utimes
> という定義があるのですが、
> /usr/include/asm/unistd.h には
> __NR_utimes が定義されていないのが原因のようです。
>
> samba-3.0.14a/source/smbwrapper/realcalls.h の
> #ifndef REPLACE_UTIMES
> #ifdef SYS_utimes
> #define real_utimes(fn, buf) (syscall(SYS_utimes, (fn), (buf))) // ←これ
> #else
> #define REPLACE_UTIMES 1
> #endif
> #endif
> が定義されてしまうが、__NR_utimes(SYS_utimesがマクロで変換されたもの)が
> 定義されていないのでエラーになってしまうようです。
>
> Plamo4.01の時はSambaのコンパイルができていたので、何が違うのか探してみたところ、
> /usr/include/bits/syscall.h はlibcのパッケージに入っているようなので
> Plamo 4.01と比べてみたところ、
> Plamo 4.01 : libc-2.3.2-i386-P4
> Plamo 4.02 : libc-2.3.3-i586-P1
> と、libcのバージョンが異なっていました。
> (Plamo4.01の方の /usr/include/bits/syscall.h には
> SYS_utimes の定義はありませんでした)
>
> 力技で /usr/include/bits/syscall.h の該当部を
> コメントアウトしてしまうこともできますが、
> ちゃんとした解決をするにはどのようにしたらよいのでしょうか。
>
> よろしくお願いします。
>
> // 北原@765 ak@kitahara.jp
>
- Follow-Ups
-
- [plamo:25535] Re: Samba3.0.14aがコンパイルできません(Plamo4.02), 名倉昭一
- References
-
- [plamo:25533] Samba3.0.14aがコンパイルできません(Plamo4.02), ak
[検索ページ]
[メール一覧]
Plamo ML 公開システム