After upgrading Samba and the p5-Parse-Pidl dependency running samba-tool commands resulted in errors like the following: [root@dc1:/usr/home/danm] samba-tool dns help Traceback (most recent call last): File "/usr/local/bin/samba-tool", line 33, in <module> from samba.netcmd.main import cmd_sambatool File "/usr/local/lib/python2.7/site-packages/samba/netcmd/__init__.py", line 20, in <module> from samba import getopt as options File "/usr/local/lib/python2.7/site-packages/samba/getopt.py", line 30, in <module> from samba.hostconfig import Hostconfig File "/usr/local/lib/python2.7/site-packages/samba/hostconfig.py", line 20, in <module> from samdb import SamDB File "/usr/local/lib/python2.7/site-packages/samba/samdb.py", line 32, in <module> from samba.dcerpc import drsblobs, misc ImportError: /usr/local/lib/python2.7/site-packages/samba/dcerpc/drsblobs.so: Undefined symbol "py_dcerpc_syntax_init_helper" Exit 1 In order to fix with the samba port I have installed (samba4-4.0.26_2) I had to downgrade to p5-Parse-4.1.18.
Also have same issue. This affects at 4.0 and 4.1 versions of samba. 4.2 and 4.3 have no such error.
I try to set SAMBA4_PORT = samba41 in make.conf but p5-Parse-Pidl port fails to register with error: pkg-static: Unable to access file /usr/ports/devel/p5-Parse-Pidl/work/stage/usr/local/lib/perl5/site_perl/Parse/Pidl/Samba3/Template.pm: No such file or directory *** Error code 74 Stop. make[2]: stopped in /usr/ports/devel/p5-Parse-Pidl *** Error code 1 I read UPDATING and delete this port before try to compile 4.1, as Timur adviced.
Separate devel/p5-Parse-Pidl turned out to be a hassle, so now bundled version is used