日期:2014-05-16  浏览次数:20705 次

移植samba3.0.8 后运行 ERROR: Could not determine network interfaces
今天将samba3.0.8移植到arm9开发板上面。
# ./configure --host=arm-linux
#make 
生成nmbd , smbd等相关文件

复制nmbd, smbd及自己新建的一个测试smb.conf分别到如下位置:
/usr/local/samba/bin/nmbd
/usr/local/samba/bin/smbd
/usr/local/samba/lib/smb.conf

采用
/usr/local/samba/bin/nmbd -o -D
/usr/local/samba/bin/smbd -o -D
程序自动退出,查看
/usr/local/samba/var/log.nmbd
/usr/local/samba/var/log.smbd

Assembly code

# cat /usr/local/samba/var/log.nmbd
[1970/01/01 00:00:21, 0] nmbd/nmbd.c:main(668)
  Netbios nameserver version 3.0.8 started.
  Copyright Andrew Tridgell and the Samba Team 1994-2004
[1970/01/01 00:00:21, 1] lib/util_unistr.c:load_case_tables(63)
  creating lame upcase table
[1970/01/01 00:00:21, 1] lib/util_unistr.c:load_case_tables(78)
  creating lame lowcase table
[1970/01/01 00:00:22, 0] lib/interface.c:load_interfaces(195)
  ERROR: Could not determine network interfaces, you must use a interfaces config line



# cat /usr/local/samba/var/log.smbd
[1970/01/01 00:00:18, 1] lib/util_unistr.c:load_case_tables(63)
  creating lame upcase table
[1970/01/01 00:00:18, 1] lib/util_unistr.c:load_case_tables(78)
  creating lame lowcase table
[1970/01/01 00:00:19, 0] smbd/server.c:main(760)
  smbd version 3.0.8 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2004
[1970/01/01 00:00:19, 0] lib/interface.c:load_interfaces(195)
  ERROR: Could not determine network interfaces, you must use a interfaces config line


我以前移植samba2.2.12是没有出现这个问题。
smb.conf 增加 
interfaces = eth0
也没有效果
在网络上找了好久,也有人碰到类似情况,但是并没有解决方法。
请大侠,指点,究竟是什么原因导致此情况的出现。或者怎样解决 , 不胜感激

------解决方案--------------------
看看/dev/eth0是否存在?
看看ifconfig -a有没有eth0?
------解决方案--------------------
太深奥了 看不懂