2017年3月9日木曜日

samba4.6.0 on FreeBSD11

install について簡単に書く。

  • ports の、 net/samba44 をとりあえず入れてみる。
  •  必要なライブラリが入る。
  •  talloc-2.1.9 が必要なので、以下の作業を実施
  •  $ cd /usr/ports/devel/talloc
     $ sudo vi Makefile
     -  PORTVERSION=            2.1.8 
     +  PORTVERSION=            2.1.9
     $ sudo make makesum && make all reinstall
    
  • samba4.6 は 普通に展開する。
  • ./configure --enable-debug
  •  
 ちなみにtalloc-2.1.8 をインストールしたままのコンパイルは、

   pytalloc_GenericObject_reference_ex() が 存在しない 

ので こんなエラーがでる。




[3538/3912] Linking default/python/libsamba-python-samba4.so
default/source4/librpc/rpc/pyrpc_util_32.o: In function `pyrpc_import_union':
pyrpc_util.c:(.text+0x1244): undefined reference to `pytalloc_GenericObject_reference_ex'
pyrpc_util.c:(.text+0x126c): undefined reference to `pytalloc_GenericObject_reference_ex'
default/source4/librpc/rpc/pyrpc_util_32.o: In function `pyrpc_export_union':
pyrpc_util.c:(.text+0x13c0): undefined reference to `pytalloc_GenericObject_reference_ex'
collect2: error: ld returned 1 exit status 
 
 
参照: https://lists.samba.org/archive/samba/2017-March/206890.html
ちょっと調べればわかるものだ。 
 


0 件のコメント: