freebsd8.2系统下通过ports方式编译安装samba35提示libnetapi_set_use_ccache错误

本笔记记录freebsd8.2系统下通过ports方式编译安装samba35时提示utils/net_rpc.o(.text+0x152): In function `net_rpc’:
: undefined reference to `libnetapi_set_use_ccache’错误信息的解决办法。
提示以下错误信息:

Compiling ../libcli/samsync/decrypt.c
Compiling localedir.c
Linking bin/net
utils/net_rpc.o(.text+0x152): In function `net_rpc':
: undefined reference to `libnetapi_set_use_ccache'
gmake: *** [bin/net] Error 1
*** Error code 1

Stop in /usr/ports/net/samba35.
*** Error code 1

Stop in /usr/ports/net/samba35.

解决办法:
出现这种错误原因可能是之前安装别的软件时因依赖关系安装了samba-libsmbclient造成的,
只需要卸载了samba-libsmbclient后再安装samba35即可!

[[email protected] ~]# pkg_info |grep samba
samba34-libsmbclient-3.4.9 Shared libs from the samba package
[[email protected] ~]# cd /usr/ports/net/samba-libsmbclient/
[root@www.itkylin.com ~]# make deinstall
[[email protected] ~]# cd /usr/ports/net/samba35
[[email protected] ~]# make DEPENDS_TARGET=package package install clean

原创文章作者:IT服务 原创地址:https://www.itkylin.com/freebsd8-2-ports-make-install-samba35-erorr.html版权所有,转载时必须以链接形式注明作者和原始出处!