I am unable to build the nfs-utils when I select this option in the package list.
This is for the iMX6Q SDB, SDK L3.0.35_4.0.0.
I have enabled both NFS client and server in the kernel.
Below is the error.
Any suggestions?
--Brad
/home/brad/freescale/imx6/ltib/rpm/BUILD/nfs-utils-1.1.0/utils/exportfs/exportfs.c:397: undefined reference to `S_ISDIR'
/home/brad/freescale/imx6/ltib/rpm/BUILD/nfs-utils-1.1.0/utils/exportfs/exportfs.c:397: undefined reference to `S_ISREG'
collect2: ld returned 1 exit status
make[2]: *** [exportfs] Error 1
make[2]: Leaving directory `/home/brad/freescale/imx6/ltib/rpm/BUILD/nfs-utils-1.1.0/utils/exportfs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/brad/freescale/imx6/ltib/rpm/BUILD/nfs-utils-1.1.0/utils'
make: *** [all-recursive] Error 1
error: Bad exit status from /home/brad/freescale/imx6/ltib/tmp/rpm-tmp.11482 (%build)
已解决! 转到解答。
Hello,Bradley,
I tried to compiled nfs-utils-1.1.0, please refter to the following steps:
(1)Using ltib command to release source code.
# ./ltib -m prep -p nfs-utils
Then source code will release to path "ltib/rpm/BUILD/nfs-utils-1.1.0"
(2)Add a Header file into 2 files
** open ltib/rpm/BUILD/nfs-utils-1.1.0/utils/exportfs/exportfs.c , and add "#include <sys/stat.h>"
**open ltib/rpm/BUILD/nfs-utils-1.1.0/utils/mount/mount.c , and add "#include <sys/stat.h>"
(3)Modify nfs-utils.spec file
**open ltib/dist/lfs-5.1/nfs-utils/nfs-utils.spec, and ajust configure line like following:
./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} \
--disable-nfsv4 --disable-uuid --disable-gss --without-tcp-wrappers
(4)Begin to compile nfs-utils
# ./ltib -m scbuild -p nfs-utils
You should compile it successfully ! attachment is log, for you a reference to check issue.
Regards,
Weidong
Hello,Bradley,
I tried to compiled nfs-utils-1.1.0, please refter to the following steps:
(1)Using ltib command to release source code.
# ./ltib -m prep -p nfs-utils
Then source code will release to path "ltib/rpm/BUILD/nfs-utils-1.1.0"
(2)Add a Header file into 2 files
** open ltib/rpm/BUILD/nfs-utils-1.1.0/utils/exportfs/exportfs.c , and add "#include <sys/stat.h>"
**open ltib/rpm/BUILD/nfs-utils-1.1.0/utils/mount/mount.c , and add "#include <sys/stat.h>"
(3)Modify nfs-utils.spec file
**open ltib/dist/lfs-5.1/nfs-utils/nfs-utils.spec, and ajust configure line like following:
./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} \
--disable-nfsv4 --disable-uuid --disable-gss --without-tcp-wrappers
(4)Begin to compile nfs-utils
# ./ltib -m scbuild -p nfs-utils
You should compile it successfully ! attachment is log, for you a reference to check issue.
Regards,
Weidong