Samba(MIPSEL)交叉编译
来源:互联网 发布:数据之巅涂子沛云盘 编辑:程序博客网 时间:2024/06/14 22:07
所需软件包:
samba-3.3.3.tar.tar
环境变量:
export LD_LIBRARY_PATH=/root/cs_rootfs_1.0.3/cross_rootfs/lib
export CPPFLAGS=-I/root/cs_rootfs_1.0.3/cross_rootfs/include
export CFLAGS=-I/root/cs_rootfs_1.0.3/cross_rootfs/include
export CC=mipsel-linux-gcc
export AR=mipsel-linux-ar
cd /root/samba-3.3.3/source
./configure --host=i686 --target=mipsel-linux
错误修改之:
cannot run test program while cross compiling
修改以下文件:
1】
--- samba-3.3.3/source/configure 2009-04-01 20:19:36.000000000 +0800
+++ ../c-programm/samba-3.3.3/source/configure 2009-04-15 13:49:11.000000000 +0800
@@ -13061,6 +13061,7 @@
{ $as_echo "$as_me:$LINENO: checking that the C compiler understands negative enum values" >&5
$as_echo_n "checking that the C compiler understands negative enum values... " >&6; }
+samba_cv_CC_NEGATIVE_ENUM_VALUES=stz
if test "${samba_cv_CC_NEGATIVE_ENUM_VALUES+set}" = set; then
$as_echo_n "(cached) " >&6
Else
2】先运行configure后,在修改
--- samba-3.3.3/source/include/config.h 2009-04-15 16:09:57.000000000 +0800
+++ ../c-programm/samba-3.3.3/source/include/config.h 2009-04-15 15:02:58.000000000 +0800
-#define HAVE_LBER_H 1
+#define HAVE_LBER_H 0
-#define HAVE_LBER_LOG_PRINT_FN 1
+#define HAVE_LBER_LOG_PRINT_FN 0
-#define HAVE_LDAP_H 1
+#define HAVE_LDAP_H 0
板子配置文件:
mkdir -p /usr/local/samba/lib/
mkdir -p /usr/local/samba/var/locks/
mkdir /usr/local/samba/private/
cp /tango/samba-configure/samba/smb.conf /usr/local/samba/lib/
cp /tango/samba-configure/smbd /sbin/
cp /tango/samba-configure/nmbd /sbin/
cp /tango/samba-configure/smbpasswd /sbin/
测试:
运行smbpasswd –a root命令
- Samba(MIPSEL)交叉编译
- 交叉编译openssl(mipsel版)
- mipsel-uclibc交叉编译dvbspi
- 交叉编译curl(mipsel版)
- 制作mipsel-linux交叉编译工具(转)
- 交叉编译GDB和GDBserver(mipsel版)
- 制作mipsel-linux交叉编译工具
- 制作mipsel-linux交叉编译工具1
- 制作mipsel-linux交叉编译工具2
- 制作mipsel-linux交叉编译工具3
- mipsel-linux交叉编译SDL1.2.14
- mipsel-linux-gcc 交叉编译libxml2
- 交叉编译Pjsip for mipsel linux
- 制作mipsel-linux交叉编译工具
- mipsel-linux-uclibc交叉编译libz
- mipsel-linux-uclibc交叉编译libogg
- mipsel-linux-uclibc交叉编译 libbzip2
- mipsel-linux-uclibc交叉编译opus
- 让你轻松实现linux下挂在windows下的ntfs硬盘
- 如何定义一个getter和seter设置的属性可以被绑定
- vt102错误
- 析构函数中抛异常
- 热门话题
- Samba(MIPSEL)交叉编译
- 强大的FireBug
- MIPSel PPoE拨号上网
- 简单的客户-服务器交互过程
- 明天就要参加云计算大会了
- SOA学习路线图之SOA概念层次
- Makefile输出分析:
- JSF2.0的新特性
- OEM