[color=rgb(153,153,153)!important]smbd/chgpasswd.c: In function `change_oem_password':
smbd/chgpasswd.c:973: warning: assignment makes pointer from integer without a cast
smbd/chgpasswd.c:991: warning: passing arg 1 of `chgpasswd' makes pointer from integer without a cast
make[5]: *** [smbd/chgpasswd.o] Error 1
make[5]: Leaving directory `/work/nfs_root/fs_mini_mdev_new/video_surveillance_source/1.1_14/hame_a100/source/5350_source/user/samba-3.0.2/source'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/work/nfs_root/fs_mini_mdev_new/video_surveillance_source/1.1_14/hame_a100/source/5350_source/user/samba-3.0.2/source'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/work/nfs_root/fs_mini_mdev_new/video_surveillance_source/1.1_14/hame_a100/source/5350_source/user/samba-3.0.2'
make[2]: *** [samba-3.0.2] Error 2
make[2]: Leaving directory `/work/nfs_root/fs_mini_mdev_new/video_surveillance_source/1.1_14/hame_a100/source/5350_source/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/work/nfs_root/fs_mini_mdev_new/video_surveillance_source/1.1_14/hame_a100/source/5350_source/user'
make: *** [user_only] Error 2
book@book-desktop:/work/nfs_root/fs_mini_mdev_new/video_surveillance_source/1.1_14/hame_a100/so14/hame_a100/source/5350_source$
为了好看些,这里截图一份:
从上面的错误可知是在编译smbd软件时出现了错误,如果把该软件的目录从Makefile文件中去除掉就能够编译通过,但是这并不是解决之道,经过请教韦东山老师,老师给出了下面最佳的解决方法:
错误的原因是这样的:samb的Makefile会用gawk命令来制作一些头文件;如果没有这个命令,那些头文件就是空的,会导致编译错误
所以解决办法如下:
安装 gawk
如果ubuntu里没有gawk命令,需要自己安装。(可以执行 gawk 确认是否有此命令)
有2种方法:
e.1 sudo apt-get install gawk
e.2
tar xjf gawk-3.1.8.tar.bz2
cd gawk-3.1.8
./confiure
make
sudo make install
做完能后,再到5350_source里执行:
make clean
make
其实就是安装上gawk软件,装上之后编译通过
本实验中注意事项:
解压固件的时候可能会解压出错,可以用这个命令解压:sudo tar xjvf 100ask.bz2