Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: [Samba] Python UCS2 vs UCS4 issue on latest git: ImportError: ....undefined symbol: PyUnicodeUCS2_Decode (NOT SOLVED)

167 views
Skip to first unread message

Phil Quesinberry

unread,
Apr 4, 2013, 10:20:01 PM4/4/13
to
I forgot to remove 'solved' from the title after the fix I thought I had
discovered didn't work. I was going to post anyway in hopes of helping
someone else but that didn't quite work out the way I'd planned. I'll use
the lateness of the hour as an excuse.

Ok, so after digging further into this problem, it's getting weird:

I decided to manually do the configure>make>make install on Samba's private
Python build that's normally done in the 'install_with_python' shell script
and configure it with --enable-unicode=ucs2 but even though it built
successfully, executing /usr/local/samba/python/bin/python and doing an
import sys followed by print sys.maxunicode gives a value of 1114111. So
either my config command was ignored completely or there's something else
going on that I just don't understand. If that's the case and someone in
here knows enough to enlighten the new guy on what's happening or at least
direct me to some relevant info, I'd really appreciate it.

Also, if there's a way to "un-provision" Samba in order to join an existing
domain as a DC without wiping it out and re-installing, I'd like to know how
to do that too. I see where others have asked the same question but each
time it has gone unanswered so I'm assuming that there's no practical way to
do it at the moment. That's actually what got me into this mess.

I'll try reverting to the latest stable version, this last pull from
v4-0-test appears to be broken, at least for my environment.

- Phil

----------------------

From: Phil Quesinberry
Sent: Thursday, April 04, 2013 1:48 AM
To: 'sa...@lists.samba.org'
Subject: Python UCS2 vs UCS4 issue on latest git: ImportError: ....undefined
symbol: PyUnicodeUCS2_Decode [SOLVED]

I'm getting the following error attempting to run samba-tool after
installing the latest git using the install_with_python script to use Python
2.6:
[root@Server1 dcerpc]# samba-tool
Traceback (most recent call last):
File "/usr/local/samba/bin/samba-tool", line 33, in <module>
from samba.netcmd.main import cmd_sambatool
File
"/usr/local/samba/lib/python2.6/site-packages/samba/netcmd/__init__.py",
line 20, in <module>
from samba import getopt as options
File "/usr/local/samba/lib/python2.6/site-packages/samba/getopt.py", line
30, in <module>
from samba.hostconfig import Hostconfig
File "/usr/local/samba/lib/python2.6/site-packages/samba/hostconfig.py",
line 20, in <module>
from samdb import SamDB
File "/usr/local/samba/lib/python2.6/site-packages/samba/samdb.py", line
32, in <module>
from samba.dcerpc import drsblobs, misc
ImportError:
/usr/local/samba/lib/python2.6/site-packages/samba/dcerpc/drsblobs.so:
undefined symbol: PyUnicodeUCS2_Decode

Samba-tool was working with the previous git, so I'm not certain if this is
a problem with the latest build or a problem with Python in my environment.
If I understand this correctly, Samba was compiled with a Python version
using 2-byte Unicode characters but my Python version is using 4-byte
Unicode characters. If that is indeed the case, why was it changed and what
would be the best way to go about fixing this problem? I tried adding
-enable-unicode=ucs2 to the configure options in the 'install_with_python'
script but that had no effect so now I wonder if somehow a different version
of Python on the system is being referenced instead of the one included with
Samba.

Any suggestions here would be greatly appreciated, even if it's only to tell
me whether or not I'm on the right track. Thanks!

Version is 4.0.5-GIT-20b0adc. CentOS 5.9.

Regards,

Phil Quesinberry
Q Systems Engineering, Inc.
Electronic Controls and Embedded Systems Development
(410) 969-8002
http://www.qsystemsengineering.com


--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

Andrew Bartlett

unread,
Apr 4, 2013, 10:40:02 PM4/4/13
to
On Thu, 2013-04-04 at 21:16 -0400, Phil Quesinberry wrote:
> I forgot to remove 'solved' from the title after the fix I thought I had
> discovered didn't work. I was going to post anyway in hopes of helping
> someone else but that didn't quite work out the way I'd planned. I'll use
> the lateness of the hour as an excuse.

I was about to ask exactly how it was solved...

> Ok, so after digging further into this problem, it's getting weird:
>
> I decided to manually do the configure>make>make install on Samba's private
> Python build that's normally done in the 'install_with_python' shell script
> and configure it with --enable-unicode=ucs2 but even though it built
> successfully, executing /usr/local/samba/python/bin/python and doing an
> import sys followed by print sys.maxunicode gives a value of 1114111. So
> either my config command was ignored completely or there's something else
> going on that I just don't understand. If that's the case and someone in
> here knows enough to enlighten the new guy on what's happening or at least
> direct me to some relevant info, I'd really appreciate it.
>
> Also, if there's a way to "un-provision" Samba in order to join an existing
> domain as a DC without wiping it out and re-installing, I'd like to know how
> to do that too. I see where others have asked the same question but each
> time it has gone unanswered so I'm assuming that there's no practical way to
> do it at the moment. That's actually what got me into this mess.

There is no need to 'un-provision'. Joining the existing domain as a DC
already wipes the data from the previous join.

> I'll try reverting to the latest stable version, this last pull from
> v4-0-test appears to be broken, at least for my environment.

I would like to understand better what is failing for you, as nothing
related to his has intentionally changed since 4.0.0, in either master
of v4-0-test. (Frankly, the changes in this area of the code in total
have been quite limited, as we work to address issues raised by the 4.0
release rather than embark on massive new features).

Thanks,

Andrew Bartlett

--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org

Phil Quesinberry

unread,
Apr 7, 2013, 3:10:01 PM4/7/13
to
Hi Andrew,

Thanks for getting back. Attempts to join the domain as an additional DC
failed for me but the Samba server was assigned a static IP and added to a
network where the Windows server presently hands out DHCP addresses, so I'm
going to guess that it's a DNS issue. I tried adding a record to DNS on the
Windows Server for the Samba server but it still wouldn't join, so at that
point I just assumed it was a provisioning issue based on the Wiki info
which tells you not to provision before joining. Any confirmation on the
DNS theory would be great but I don't have the exact error message that was
generated, so I'll deal with that later.

Forgive the long post, I'm trying to include as much potentially relevant
info as possible.

After checking and trying to clean up the Python installation with yum, I
seem to have accomplished two things:

1. Samba now throws an error during compilation and fails, unless I
configure and pass LDFLAGS in like so:
LDFLAGS="-lm -ldl -lutil" ./configure --enable-debug --enable-selftest
The compile then succeeds, but I still can't run samba-tool.

2. I'm no longer getting a Python-related segfault recorded in Messages
every 10 minutes. I had been getting this message for quite some time and
assume that it was due to a ClamAV related issue with Python since ClamAV
does a database check at that interval.

Moving on - the build was started as follows:
sh install_with_python.sh /usr/local/samba --enable-debug --enable-selftest

Here's some hopefully relevant Python-related output when compiling
v4-0-test:

Checking for program python
: /usr/local/samba/python/bin/python
Checking for program perl
: /usr/local/bin/perl
Checking for program xsltproc
: /usr/bin/xsltproc
Checking for program python
: /usr/local/samba/python/bin/python
Checking for Python version >= 2.4.2
: ok 2.6.8
Checking for library python2.6
: yes
Checking for program python2.6-config
: /usr/local/samba/python/bin/python2.6-config
Checking for custom code
: yes
Dynconfig[STATEDIR]:
: '/usr/local/samba/var/locks'
Dynconfig[SCRIPTSBINDIR]:
: '/usr/local/samba/sbin'
Dynconfig[PAMMODULESDIR]:
: '/usr/local/samba/lib/security'
Dynconfig[WINBINDD_SOCKET_DIR]:
: '/usr/local/samba/var/run/winbindd'
Dynconfig[PRIVATE_DIR]:
: '/usr/local/samba/private'
Dynconfig[SETUPDIR]:
: '/usr/local/samba/share/setup'
Dynconfig[PIDDIR]:
: '/usr/local/samba/var/run'
Dynconfig[PKGCONFIGDIR]:
: '/usr/local/samba/lib/pkgconfig'
Dynconfig[DATADIR]:
: '/usr/local/samba/share'
Dynconfig[CACHEDIR]:
: '/usr/local/samba/var/cache'
Dynconfig[SBINDIR]:
: '/usr/local/samba/sbin'
Dynconfig[NCALRPCDIR]:
: '/usr/local/samba/var/run/ncalrpc'
Dynconfig[LMHOSTSFILE]:
: '/usr/local/samba/etc/lmhosts'
Dynconfig[LOCKDIR]:
: '/usr/local/samba/var/lock'
Dynconfig[SWATDIR]:
: '/usr/local/samba/share/swat'
Dynconfig[PYTHONARCHDIR]:
: '/usr/local/samba/lib64/python2.6/site-packages'
Dynconfig[LOGFILEBASE]:
: '/usr/local/samba/var'
Dynconfig[PYTHONDIR]:
: '/usr/local/samba/lib/python2.6/site-packages'
Dynconfig[NTP_SIGND_SOCKET_DIR]:
: '/usr/local/samba/var/lib/ntp_signd'
Dynconfig[CONFIGFILE]:
: '/usr/local/samba/etc/smb.conf'
Dynconfig[SOCKET_DIR]:
: '/usr/local/samba/var/run'
Dynconfig[MODULESDIR]:
: '/usr/local/samba/lib'
Dynconfig[WINBINDD_PRIVILEGED_SOCKET_DIR]:
: '/usr/local/samba/var/lib/winbindd_privileged'
Dynconfig[LIBDIR]:
: '/usr/local/samba/lib'
Dynconfig[LOCALEDIR]:
: '/usr/local/samba/share/locale'
Dynconfig[NMBDSOCKETDIR]:
: '/usr/local/samba/var/run/nmbd'
Dynconfig[INCLUDEDIR]:
: '/usr/local/samba/include'
Dynconfig[CODEPAGEDIR]:
: '/usr/local/samba/share/codepages'
Dynconfig[PRIVATELIBDIR]:
: '/usr/local/samba/lib/private'
Dynconfig[PRIVILEGED_SOCKET_DIR]:
: '/usr/local/samba/var/lib'
Dynconfig[LIBEXECDIR]:
: '/usr/local/samba/libexec'
Dynconfig[SMB_PASSWD_FILE]:
: '/usr/local/samba/private/smbpasswd'
Dynconfig[BINDIR]:
: '/usr/local/samba/bin'
Dynconfig[CONFIGDIR]:
: '/usr/local/samba/etc'
Checking for system tdb >= 1.2.11
: not found
Checking for stylesheet
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl :
not found
Checking for program python
: /usr/local/samba/python/bin/python
Checking for Python version >= 2.4.2
: ok 2.6.8
Checking for python headers
: using cache
Checking linker accepts -Wl,-no-undefined
: yes
Checking linker accepts ['-undefined', 'dynamic_lookup']
: no
Checking for system talloc >= 2.0.7
: not found
Checking for system pytalloc-util >= 2.0.7
: not found
Checking for stylesheet
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl :
not found
Checking for program python
: /usr/local/samba/python/bin/python
Checking for Python version >= 2.4.2
: ok 2.6.8
Checking for python headers
: using cache
Checking linker accepts -Wl,-no-undefined
: yes
Checking linker accepts ['-undefined', 'dynamic_lookup']
: no
Checking for system tevent >= 0.9.17
: not found
Checking for epoll_create
: ok
Checking for program python
: /usr/local/samba/python/bin/python
Checking for Python version >= 2.4.2
: ok 2.6.8
Checking for python headers
: using cache
Checking linker accepts -Wl,-no-undefined
: yes
Checking linker accepts ['-undefined', 'dynamic_lookup']
: no
Checking for system popt
: not found
Checking for header popt.h
: yes
Checking for library popt
: yes
Checking for poptGetContext
: ok
Checking for program python
: /usr/local/samba/python/bin/python
Checking for program xsltproc
: /usr/bin/xsltproc
Checking for Python version >= 2.4.2
: ok 2.6.8
Checking for python headers
: using cache
Checking for system ldb >= 1.1.15
: not found
Checking for system pyldb-util >= 1.1.15
: not found

During the compile, I see errors like:
[3028/3795] Compiling source3/torture/test_smbsock_any_connect.c
[3029/3795] Compiling source3/torture/test_cleanup.c
In file included from ../source3/torture/test_authinfo_structs.c:24:
../libcli/lsarpc/util_lsarpc.h:32: warning: âstruct trustAuthInOutBlobâ
declared inside parameter list
../libcli/lsarpc/util_lsarpc.h:32: warning: its scope is only this
definition or declaration, which is probably not what you want
[3030/3795] Compiling source3/torture/test_ctdbconn.c
[3031/3795] Compiling source3/torture/test_msg.c


I'm not sure just how significant that one is, if the code was written that
way intentionally but it appears to be in a library-related header so I'm
including it here.


Finally, the punchline(s):
[3329/3795] Linking default/nsswitch/libwbclient/libwbclient.so
[3330/3795] Linking default/nsswitch/libnss-wrapper-winbind.so
[3331/3795] Linking default/nsswitch/libnss-winbind.so
/usr/local/lib/libpython2.6.a(longobject.o): In function
`PyLong_FromString':
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Objects/longobject.c:1610:
undefined reference to `log'
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Objects/longobject.c:1610:
undefined reference to `log'
/usr/local/lib/libpython2.6.a(dynload_shlib.o): In function
`_PyImport_GetDynLoadFunc':
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Python/dynload_shlib.c:94:
undefined reference to `dlsym'
/root/samba/sambagit/[3332/3795] Linking default/lib/tdb/pytdb.so
samba4/python_install/Python-2.6.5/Python/dynload_shlib.c:130: undefined
reference to `dlopen'
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Python/dynload_shlib.c:141:
undefined reference to `dlsym'
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Python/dynload_shlib.c:133:
undefined reference to `dlerror'
/usr/local/lib/libpython2.6.a(signalmodule.o): In function
`timeval_from_double':
/root/samba/sambagit/samba4/python_install/Python-2.6.5/./Modules/signalmodule.c:106:
undefined reference to `floor'
/root/samba/sambagit/samba4/python_install/Python-2.6.5/./Modules/signalmodule.c:107:
undefined reference to `fmod'
/root/samba/sambagit/samba4/python_install/Python-2.6.5/./Modules/signalmodule.c:106:
undefined reference to `floor'
/root/samba/sambagit/samba4/python_install/Python-2.6.5/./Modules/signalmodule.c:107:
undefined reference to `fmod'
/usr/local/lib/libpython2.6.a(posixmodule.o): In function `posix_forkpty':
/root/samba/sambagit/samba4/python_install/Python-2.6.5/./Modules/posixmodule.c:3792:
undefined reference to `forkpty'
/usr/local/lib/libpython2.6.a(posixmodule.o): In function `posix_openpty':
/root/samba/sambagit/samba4/python_install/Python-2.6.5/./Modules/posixmodule.c:3732:
undefined reference to `openpty'
/usr/local/lib/libpython2.6.a(complexobject.o): In function
`complex_divmod':
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Objects/complexobject.c:598:
undefined reference to `floor'
/usr/local/lib/libpython2.6.a(complexobject.o): In function
`complex_remainder':
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Objects/complexobject.c:574:
undefined reference to `floor'
/usr/local/lib/libpython2.6.a(complexobject.o): In function `_Py_c_abs':
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Objects/complexobject.c:214:
undefined reference to `hypot'
/usr/local/lib/libpython2.6.a(complexobject.o): In function `_Py_c_pow':
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Objects/complexobject.c:143:
undefined reference to `hypot'
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Objects/complexobject.c:144:
undefined reference to `pow'
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Objects/complexobject.c:145:
undefined reference to `atan2'
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Objects/complexobject.c:151:
undefined reference to `cos'
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Objects/complexobject.c:152:
undefined reference to `sin'
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Objects/complexobject.c:148:
undefined reference to `exp'
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Objects/complexobject.c:149:
undefined reference to `log'
/usr/local/lib/libpython2.6.a(floatobject.o): In function
`float_is_integer':
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Objects/floatobject.c:1041:
undefined reference to `floor'
/usr/local/lib/libpython2.6.a(floatobject.o): In function
`float_as_integer_ratio':
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Objects/floatobject.c:1580:
undefined reference to `floor'
/usr/local/lib/libpython2.6.a(floatobject.o): In function `float_pow':
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Objects/floatobject.c:972:
undefined reference to `pow'
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Objects/floatobject.c:943:
undefined reference to `floor'
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Objects/floatobject.c:962:
undefined reference to `floor'
/usr/local/lib/libpython2.6.a(floatobject.o): In function `float_divmod':
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Objects/floatobject.c:856:
undefined reference to `fmod'
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Objects/floatobject.c:882:
undefined reference to `floor'
/usr/local/lib/libpython2.6.a(floatobject.o): In function `float_rem':
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Objects/floatobject.c:834:
undefined reference to `fmod'
/usr/local/lib/libpython2.6.a(bltinmodule.o): In function `builtin_round':
/root/samba/sambagit/samba4/python_install/Python-2.6.5/Python/bltinmodule.c:2147:
undefined reference to `floor'
collect2: ld returned 1 exit status
[3333/3795] Linking default/lib/tdb_compat/libtdb_compat.so
Waf: Leaving directory `/root/samba/sambagit/samba4/bin'
Build failed: -> task failed (err #1):
{task: cc_link pytalloc_util_5.o -> libpytalloc-util.so}
make: *** [all] Error 1


After uninstalling/reinstalling Python 2.6.8 and it's dependencies with Yum,
v4-0-test now sees Python 2.6.5 during the configure but fails with the same
error.

All of this is on v4-0-test. Just as an FYI, when I checked out Master and
compiled it instead, I got:
Checking for Python version >= 2.4.2
: ok 2.6.5 (instead of 2.6.8 - and this was before the reinstall of 2.6.8)

in the Python config section, so it appears to be referencing the included
private build of Python instead of 2.6.8 but the compile of Master still
fails but in a different way as follows:
'configure' finished successfully (1m37.119s)
WAF_MAKE=1 /usr/local/samba/python/bin/python ./buildtools/bin/waf build
./buildtools/wafsamba/samba_utils.py:397: DeprecationWarning: the md5 module
is deprecated; use hashlib instead
import md5
Waf: Entering directory `/root/samba/sambagit/samba4/bin'
symlink: samba/__init__.py -> python/samba/__init__.py
/root/samba/sambagit/samba4/wscript: error: Traceback (most recent call
last):
File "/root/samba/sambagit/samba4/buildtools/wafadmin/Utils.py", line 647,
in recurse
exec(compile(txt, file_path, 'exec'), dc)
File "/root/samba/sambagit/samba4/wscript_build", line 43, in <module>
bld.RECURSE('python')
File "./buildtools/wafsamba/samba_utils.py", line 471, in RECURSE
return ctx.add_subdirs(relpath)
File "/root/samba/sambagit/samba4/buildtools/wafadmin/Build.py", line 993,
in add_subdirs
self.recurse(dirs, 'build')
File "/root/samba/sambagit/samba4/buildtools/wafadmin/Utils.py", line 650,
in recurse
raise WscriptError("".join(traceback.format_exception(exc_type,
exc_value, tb)), base)
WscriptError: /root/samba/sambagit/samba4/python/wscript: error: Traceback
(most recent call last):
File "/root/samba/sambagit/samba4/buildtools/wafadmin/Utils.py", line 647,
in recurse
exec(compile(txt, file_path, 'exec'), dc)
File "/root/samba/sambagit/samba4/python/wscript_build", line 37, in
<module>
installdir='python')
File "./buildtools/wafsamba/wafsamba.py", line 685, in SAMBA_SCRIPT
os.symlink(link_src, link_dst)
OSError: [Errno 17] File exists


make: *** [all] Error 1


So while everything else seems to be working on this box it seems to me that
there's some issue with the Python environment that Samba doesn't like,
although I'm not quite sure what it is. I just don't know enough (anything,
really) about Waf to intelligently track down the problem.

On the initial installation attempt of Samba 4 I was having problems getting
the install_with_python script to download the file... I don't remember the
details of what was wrong now but I had to download the file manually to do
the install and I was manually compiling Python and other stuff to try to
get it to work so I may very well have messed things up during that process.

I was still having some strange issues with the same script later too so I
finally did a make uninstall and wiped out and re-cloned the source tree.
After doing that, the install script seems to be working as expected now, at
least.

Let me know if you need any additional info and I'll try to get it to you as
soon as possible.

Thanks again,

- Phil


--
View this message in context: http://samba.2283325.n4.nabble.com/Re-Python-UCS2-vs-UCS4-issue-on-latest-git-ImportError-undefined-symbol-PyUnicodeUCS2-Decode-NOT-SOL-tp4646314p4646395.html
Sent from the Samba - General mailing list archive at Nabble.com.

Andrew Bartlett

unread,
Apr 8, 2013, 5:00:02 AM4/8/13
to
Phil,

I've tried following your mails, and your trials, but got totally lost.

So what I've done is write up a patch, which should address the one
issue I've been able to distil out of this, which is that when Samba is
built against something other than the default python, samba-tool
segfaults.

This happens because if we build and link against one library, but you
run samba-tool with a different python, internal things go boom.

This patch works for me on my Centos 5 box.

As to all your trials building different versions of python, I can't
really offer a solution - I've not seen those myself, and you really
seem to have quite a mix of things going wrong here. I would suggest
that if you do want to build a new AD DC, you should do so on a modern
OS, where python just works.

While I will certainly work (as this patch will help a lot with) to have
install_with_python work for the AD DC, the intended purpose was simply
to get enough of python going to run our build system for simpler file
server installations, to allow a transition from the second (autoconf)
build system. (And in that it has been quite successful).

Please test these patches, hopefully they will resolve your issue.

Finally, if you get odd build errors (such as the symlink error you
got), then 'git clean -x -f -d' will blow away everything not nailed
down in the git checkout. This tends to fix that kind of issue (such as
happened when I moved our python code around in master and in v4-0-test
for 4.0.5).

Metze (or someone else on the team),

Please review or push to master.
0001-build-Replace-usr-bin-env-python-with-passed-in-PYTH.patch

Phil Quesinberry

unread,
Apr 8, 2013, 11:30:02 PM4/8/13
to
Hi Andrew,

Many, many thanks and sorry about that... I was somewhat lost while writing
the post myself, I was trying to distill all of the different things I had
tried down into useful information but I somehow missed the mark.

After I had posted the message, I manually did a configure of Samba's
private copy of Python and then did a make uninstall to let it do some
housecleaning. After doing that, I was then able to compile Samba
successfully without passing any flags but I'm still getting a libgnutls
error when attempting to execute pdbedit and the same error as before with
samba-tool.

I pulled down and applied your patch against master but it didn't seem to
have any effect. I did another build with the install_with_python script
but am still getting the same errors:

[root@Server1 samba4]# pdbedit
pdbedit: error while loading shared libraries: libgnutls.so.26: cannot open
shared object file: No such file or directory
[root@Server1 samba4]# samba-tool
Traceback (most recent call last):
File "/usr/local/samba/bin/samba-tool", line 33, in <module>
from samba.netcmd.main import cmd_sambatool
File "/usr/local/samba/lib/python2.6/site-packages/samba/__init__.py",
line 50, in <module>
from samba._ldb import Ldb as _Ldb
ImportError: libgnutls.so.26: cannot open shared object file: No such file
or directory
[root@Server1 samba4]# git status
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working
directory)
#
# modified: buildtools/wafsamba/samba_python.py
# modified: buildtools/wafsamba/wafsamba.py
# modified: wscript
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# buildtools/wafsamba/wscript.orig
# buildtools/wafsamba/wscript.rej
# wscript.orig
# wscript.rej
no changes added to commit (use "git add" and/or "git commit -a")

- Phil




--
View this message in context: http://samba.2283325.n4.nabble.com/Re-Python-UCS2-vs-UCS4-issue-on-latest-git-ImportError-undefined-symbol-PyUnicodeUCS2-Decode-NOT-SOL-tp4646314p4646438.html

Michael Adam

unread,
Apr 9, 2013, 8:30:01 AM4/9/13
to
pushed

Andrew Bartlett

unread,
Apr 9, 2013, 12:10:02 PM4/9/13
to
Between building Samba and running it you have removed libgnutls.

Andrew Bartlett

--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org


Luis Angel Fernandez Fernandez

unread,
Apr 9, 2013, 3:00:02 PM4/9/13
to
Could it be that he has some kind of mess with LD_LIBRARY_PATH. Maybe at
compile time, "Samba" was able to find everything it's needed but then, at
run time, it can't find the needed libraries despite they're installed
somewhere. I'm saying that because I'm pretty sure this happened to me O:-)


2013/4/9 Andrew Bartlett <abar...@samba.org>
--
Linkedin profile (http://es.linkedin.com/in/lafdez)
G+ profile (https://plus.google.com/u/0/115320207805121303027/about)
Twitter (@lafdez @_lafdez_)
Identi.ca (@lafdez)

Phil Quesinberry

unread,
Apr 9, 2013, 3:20:01 PM4/9/13
to
No I didn't do that... honest.

I did a yum remove of python26 which also removes python26-devel and
python26-libs and went around the system cleaning up leftover copies of the
python 2.6 executable. After that I re-installed the above packages and
pdbedit worked once again.

Then I did a make uninstall of samba, make clean, git clean -d -f -x,
removed the prefix directory (/usr/local/samba), re-patched and rebuilt it
again with the install_with_python script. Once I did that, pdbedit gave me
the gnutls error again.

So I did a bit of looking around and one very interesting thing I noticed is
that /usr/local/samba/lib no longer has the libgnutls files (prefix is
/usr/local/samba). It has a bunch of other library files but significantly
fewer than in the original lib directory. I have an old backup of that
directory from a previous install so I was able to determine that they had
been there once before. I'm not sure why the installer is no longer putting
the files there.

I didn't expect this to work but just as a test I tried copying those files
over from my old backup of samba/lib and I then got a bunch of version not
found errors like this when trying to run pdbedit:
...
pdbedit: /usr/local/samba/lib/private/libsamdb-common.so: version
`SAMBA_4.0.5_GIT_9EC44D4' not found (required by
/usr/local/samba/lib/libsamba-credentials.so.0)
pdbedit: /usr/local/samba/lib/private/libcliauth.so: version
`SAMBA_4.0.5_GIT_9EC44D4' not found (required by
/usr/local/samba/lib/libsamba-credentials.so.0)
pdbedit: /usr/local/samba/lib/private/libldbsamba.so: version
`SAMBA_4.0.5_GIT_9EC44D4' not found (required by
/usr/local/samba/lib/libsamba-credentials.so.0)
pdbedit: /usr/local/samba/lib/private/libauthkrb5.so: version
`SAMBA_4.0.5_GIT_9EC44D4' not found (required by
/usr/local/samba/lib/libsamba-credentials.so.0)
pdbedit: /usr/local/samba/lib/private/libsamba-security.so: version
`SAMBA_4.0.5_GIT_9EC44D4' not found (required by
/usr/local/samba/lib/libndr-krb5pac.so.0)

- Phil




--
View this message in context: http://samba.2283325.n4.nabble.com/Re-Python-UCS2-vs-UCS4-issue-on-latest-git-ImportError-undefined-symbol-PyUnicodeUCS2-Decode-NOT-SOL-tp4646314p4646494.html
Sent from the Samba - General mailing list archive at Nabble.com.

Andrew Bartlett

unread,
Apr 10, 2013, 8:00:02 PM4/10/13
to
On Tue, 2013-04-09 at 12:10 -0700, Phil Quesinberry wrote:
> No I didn't do that... honest.
>
> I did a yum remove of python26 which also removes python26-devel and
> python26-libs and went around the system cleaning up leftover copies of the
> python 2.6 executable. After that I re-installed the above packages and
> pdbedit worked once again.

So, I'm getting rather confused again. You keep ripping your system
apart, putting it back together again, and still having trouble.

Can we do this exactly one step at a time?

After installing python26-devel, and then applying the patch I sent to
git master or 4.0.5 with 'git am patchfile', and running 'git clean -x
-f -d', and building Samba with:

PYTHON=python26 ./configure && make -j && sudo make install

what still fails?

Please do NOT run install_with_python.sh, as you have a working python
on your system via the python26 package.

Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org


Phil Quesinberry

unread,
Apr 12, 2013, 1:50:02 AM4/12/13
to
>So, I'm getting rather confused again. You keep ripping your system
>apart, putting it back together again, and still having trouble.
Yes... very frustrating.

>Can we do this exactly one step at a time?
Absolutely - I pulled down the latest git from master and did as you said,
although 'git am patchfile" didn't work. Based on some of the files which
were changed it looks as if the patch wais already applied. Let me know if
that's not the case.

I built with the options you indicated but still get the same libgnutls
error when attempting to run pdbedit or samba-tool.

- Phil



--
View this message in context: http://samba.2283325.n4.nabble.com/Re-Python-UCS2-vs-UCS4-issue-on-latest-git-ImportError-undefined-symbol-PyUnicodeUCS2-Decode-NOT-SOL-tp4646314p4646630.html
Sent from the Samba - General mailing list archive at Nabble.com.

Andrew Bartlett

unread,
Apr 12, 2013, 3:40:02 AM4/12/13
to
On Thu, 2013-04-11 at 22:40 -0700, Phil Quesinberry wrote:
> >So, I'm getting rather confused again. You keep ripping your system
> >apart, putting it back together again, and still having trouble.
> Yes... very frustrating.
>
> >Can we do this exactly one step at a time?
> Absolutely - I pulled down the latest git from master and did as you said,
> although 'git am patchfile" didn't work. Based on some of the files which
> were changed it looks as if the patch wais already applied. Let me know if
> that's not the case.

yes, the patch is in master.

> I built with the options you indicated but still get the same libgnutls
> error when attempting to run pdbedit or samba-tool.

All I can say is that it's odd. I build Samba on RHEL5 as part of
testing the patch, and ran samba-tool and pdbedit to verify it.

git clean -x -f -d && CCACHE_DIR=~/.ccache
PYTHON=python26 ./configure.developer && CCACHE_DIR=~/.ccache make -j &&
CCACHE_DIR=~/.ccache make install DESTDIR=/tmp/prefix

(I wanted to test installation in a scratch dir first, DESTDIR is used
by packagers normally to do an install to then bundle up into a package)

and then I ran
CCACHE_DIR=~/.ccache sudo make install

You shouldn't need the ccache stuff, but I wanted to give exactly the
commands I ran.

Andrew Bartlett

--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org


Helmut Hullen

unread,
Apr 12, 2013, 6:30:02 AM4/12/13
to
Hallo, Phil,

Du meintest am 09.04.13:

[...]

> So I did a bit of looking around and one very interesting thing I
> noticed is that /usr/local/samba/lib no longer has the libgnutls
> files (prefix is /usr/local/samba).

Just for the record: my system (slackware current) has installed

libgnutls-extra.so.26 -> libgnutls-extra.so.26.20.0
libgnutls-openssl.so.27 -> libgnutls-openssl.so.27.0.2
libgnutls.so.28 -> libgnutls.so.28.10.2
libgnutlsxx.so.28 -> libgnutlsxx.so.28.0.0

Viele Gruesse!
Helmut

Phil Quesinberry

unread,
Apr 12, 2013, 2:50:02 PM4/12/13
to
Andrew,



I rebuilt exactly as you stated (copied/pasted the commands) but the build
failed as follows:

[3750/3999] Linking default/source3/modules/libvfs-aio-posix.so

[3751/3999] Linking default/source3/modules/libvfs-btrfs.so

[3752/3999] Linking default/source3/modules/libvfs-posix-eadb.so

[3753/3999] abi_check: bin/default/lib/talloc/libtalloc.so

[3755/3999] abi_check: bin/default/lib/talloc/libpytalloc-util.so

[3754/3999] abi_check: bin/default/lib/tevent/libtevent.so

[3756/3999] abi_check: bin/default/librpc/libndr.so

[3757/3999] abi_check: bin/default/lib/tdb/libtdb.so

libtevent.so: symbol ev_set_blocking has been added - please mark it
_PRIVATE_ or update minor version

signature: int (int, bool)

[3758/3999] abi_check: bin/default/lib/ntdb/libntdb.so

libtevent.so: symbol ev_str_list_add has been added - please mark it
_PRIVATE_ or update minor version

signature: const char **(const char **, const char *)

libtevent.so: symbol ev_set_close_on_exec has been added - please mark it
_PRIVATE_ or update minor version

signature: bool (int)

libtevent.so: symbol ev_str_list_length has been added - please mark it
_PRIVATE_ or update minor version

signature: size_t (const char **)

[3759/3999] abi_check: bin/default/lib/ldb/libldb.so

[3760/3999] abi_check: bin/default/lib/ldb/libpyldb-util.so

libldb.so: symbol map_attr_map_remote has been added - please mark it
_PRIVATE_ or update minor version

signature: const char *(void *, const struct ldb_map_attribute *,
const char *)

libldb.so: symbol map_check_local_db has been added - please mark it
_PRIVATE_ or update minor version

signature: bool (struct ldb_module *)

libldb.so: symbol map_search_base_req has been added - please mark it
_PRIVATE_ or update minor version

signature: struct ldb_request *(struct map_context *, struct ldb_dn
*, const char * const *, const struct ldb_parse_tree *, void *,
ldb_map_callback_t)

libldb.so: symbol map_return_entry has been added - please mark it _PRIVATE_
or update minor version

signature: int (struct map_context *, struct ldb_reply *)

libldb.so: symbol map_attrs_merge has been added - please mark it _PRIVATE_
or update minor version

signature: int (struct ldb_module *, void *, const char ***, const
char * const *)

libldb.so: symbol map_build_fixup_req has been added - please mark it
_PRIVATE_ or update minor version

signature: struct ldb_request *(struct map_context *, struct ldb_dn
*, struct ldb_dn *, void *, ldb_map_callback_t)

libldb.so: symbol map_attr_find_remote has been added - please mark it
_PRIVATE_ or update minor version

signature: const struct ldb_map_attribute *(const struct
ldb_map_context *, const char *)

libldb.so: symbol map_subtree_collect_remote_simple has been added - please
mark it _PRIVATE_ or update minor version

signature: int (struct ldb_module *, void *, struct ldb_parse_tree
**, const struct ldb_parse_tree *, const struct ldb_map_attribute *)

libldb.so: symbol map_get_context has been added - please mark it _PRIVATE_
or update minor version

signature: const struct ldb_map_context *(struct ldb_module *)

libldb.so: symbol map_init_context has been added - please mark it _PRIVATE_
or update minor version

signature: struct map_context *(struct ldb_module *, struct
ldb_request *)

libldb.so: symbol map_attr_check_remote has been added - please mark it
_PRIVATE_ or update minor version

signature: bool (const struct ldb_map_context *, const char *)

libldb.so: symbol map_attr_find_local has been added - please mark it
_PRIVATE_ or update minor version

signature: const struct ldb_map_attribute *(const struct
ldb_map_context *, const char *)

libldb.so: symbol map_attr_map_local has been added - please mark it
_PRIVATE_ or update minor version

signature: const char *(void *, const struct ldb_map_attribute *,
const char *)

Waf: Leaving directory `/root/samba/sambagit/samba4/bin'

Build failed:

ABI for libtevent.so has changed - please fix library version then build
with --abi-update

See http://wiki.samba.org/index.php/Waf#ABI_Checking for more information

If you have not changed any ABI, and your platform always gives this error,
please configure with --abi-check-disable to skip this check

ABI for libldb.so has changed - please fix library version then build with
--abi-update

See http://wiki.samba.org/index.php/Waf#ABI_Checking for more information

If you have not changed any ABI, and your platform always gives this error,
please configure with --abi-check-disable to skip this check

make: *** [all] Error 1







Also, here’s a snippet of some of the warnings I saw during the compile:

[ 905/3999] Compiling default/librpc/gen_ndr/py_idmap.c

[ 906/3999] Compiling default/librpc/gen_ndr/py_drsuapi.c

[ 907/3999] Compiling default/librpc/gen_ndr/py_security.c

[ 908/3999] Compiling default/librpc/gen_ndr/py_drsblobs.c

[ 909/3999] Compiling default/librpc/gen_ndr/py_dnsp.c

default/librpc/gen_ndr/py_drsuapi.c:503: warning: no previous prototype for
âpy_import_drsuapi_DsBindInfoâ

default/librpc/gen_ndr/py_drsuapi.c:529: warning: no previous prototype for
âpy_export_drsuapi_DsBindInfoâ

default/librpc/gen_ndr/py_drsuapi.c:976: warning: no previous prototype for
âpy_import_drsuapi_DsReplicaSyncRequestâ

default/librpc/gen_ndr/py_drsuapi.c:990: warning: no previous prototype for
âpy_export_drsuapi_DsReplicaSyncRequestâ

default/librpc/gen_ndr/py_security.c:222: warning: no previous prototype for
âpy_import_security_ace_object_typeâ

default/librpc/gen_ndr/py_security.c:241: warning: no previous prototype for
âpy_export_security_ace_object_typeâ

default/librpc/gen_ndr/py_security.c:262: warning: no previous prototype for
âpy_import_security_ace_object_inherited_typeâ

default/librpc/gen_ndr/py_security.c:281: warning: no previous prototype for
âpy_export_security_ace_object_inherited_typeâ

default/librpc/gen_ndr/py_drsblobs.c:336: warning: no previous prototype for
âpy_import_replPropertyMetaDataCtrâ

default/librpc/gen_ndr/py_drsblobs.c:350: warning: no previous prototype for
âpy_export_replPropertyMetaDataCtrâ

default/librpc/gen_ndr/py_security.c:399: warning: no previous prototype for
âpy_import_security_ace_object_ctrâ

default/librpc/gen_ndr/py_security.c:430: warning: no previous prototype for
âpy_export_security_ace_object_ctrâ

default/librpc/gen_ndr/py_drsblobs.c:714: warning: no previous prototype for
âpy_import_replUpToDateVectorCtrâ

default/librpc/gen_ndr/py_drsblobs.c:732: warning: no previous prototype for
âpy_export_replUpToDateVectorCtrâ

default/librpc/gen_ndr/py_drsuapi.c:2781: warning: no previous prototype for
âpy_import_drsuapi_DsGetNCChangesRequestâ

default/librpc/gen_ndr/py_drsuapi.c:2803: warning: no previous prototype for
âpy_export_drsuapi_DsGetNCChangesRequestâ

default/librpc/gen_ndr/py_drsblobs.c:2064: warning: no previous prototype
for âpy_import_repsFromToâ

default/librpc/gen_ndr/py_drsblobs.c:2082: warning: no previous prototype
for âpy_export_repsFromToâ

default/librpc/gen_ndr/py_dnsp.c:1287: warning: no previous prototype for
âpy_import_dnsRecordDataâ

default/librpc/gen_ndr/py_dnsp.c:1345: warning: no previous prototype for
âpy_export_dnsRecordDataâ

default/librpc/gen_ndr/py_dnsp.c:1718: warning: no previous prototype for
âpy_import_dnsPropertyDataâ

default/librpc/gen_ndr/py_dnsp.c:1797: warning: no previous prototype for
âpy_export_dnsPropertyDataâ

default/librpc/gen_ndr/py_drsblobs.c:2816: warning: no previous prototype
for âpy_import_partialAttributeSetCtrâ

default/librpc/gen_ndr/py_drsblobs.c:2830: warning: no previous prototype
for âpy_export_partialAttributeSetCtrâ

[ 910/3999] Compiling default/librpc/gen_ndr/py_xattr.c

default/librpc/gen_ndr/py_drsblobs.c:3404: warning: no previous prototype
for âpy_import_prefixMapCtrâ

default/librpc/gen_ndr/py_drsblobs.c:3418: warning: no previous prototype
for âpy_export_prefixMapCtrâ

default/librpc/gen_ndr/py_drsblobs.c:3597: warning: no previous prototype
for âpy_import_ldapControlDirSyncExtraâ

default/librpc/gen_ndr/py_drsblobs.c:3616: warning: no previous prototype
for âpy_export_ldapControlDirSyncExtraâ

[ 911/3999] Compiling default/librpc/gen_ndr/py_idmap.c

default/librpc/gen_ndr/py_drsblobs.c: In function
âpy_package_PrimaryKerberosString_set_stringâ:

default/librpc/gen_ndr/py_drsblobs.c:4549: warning: passing argument 2 of
âtalloc_unlinkâ discards qualifiers from pointer target type

default/librpc/gen_ndr/py_drsuapi.c:6270: warning: no previous prototype for
âpy_import_drsuapi_DsGetNCChangesCompressedCtrâ

default/librpc/gen_ndr/py_drsuapi.c:6296: warning: no previous prototype for
âpy_export_drsuapi_DsGetNCChangesCompressedCtrâ

default/librpc/gen_ndr/py_drsuapi.c:6475: warning: no previous prototype for
âpy_import_drsuapi_DsGetNCChangesCtrâ

default/librpc/gen_ndr/py_drsuapi.c:6501: warning: no previous prototype for
âpy_export_drsuapi_DsGetNCChangesCtrâ

default/librpc/gen_ndr/py_drsuapi.c:6668: warning: no previous prototype for
âpy_import_drsuapi_DsReplicaUpdateRefsRequestâ

default/librpc/gen_ndr/py_drsuapi.c:6682: warning: no previous prototype for
âpy_export_drsuapi_DsReplicaUpdateRefsRequestâ

default/librpc/gen_ndr/py_drsuapi.c:7048: warning: no previous prototype for
âpy_import_drsuapi_DsReplicaAddRequestâ

default/librpc/gen_ndr/py_drsuapi.c:7066: warning: no previous prototype for
âpy_export_drsuapi_DsReplicaAddRequestâ

default/librpc/gen_ndr/py_drsuapi.c:7203: warning: no previous prototype for
âpy_import_drsuapi_DsReplicaDelRequestâ

default/librpc/gen_ndr/py_drsuapi.c:7217: warning: no previous prototype for
âpy_export_drsuapi_DsReplicaDelRequestâ

default/librpc/gen_ndr/py_drsblobs.c: At top level:

default/librpc/gen_ndr/py_drsblobs.c:5400: warning: no previous prototype
for âpy_import_package_PrimaryKerberosCtrâ

default/librpc/gen_ndr/py_drsblobs.c:5418: warning: no previous prototype
for âpy_export_package_PrimaryKerberosCtrâ

default/librpc/gen_ndr/py_drsuapi.c:7441: warning: no previous prototype for
âpy_import_drsuapi_DsReplicaModRequestâ

default/librpc/gen_ndr/py_drsuapi.c:7455: warning: no previous prototype for
âpy_export_drsuapi_DsReplicaModRequestâ

default/librpc/gen_ndr/py_drsuapi.c:7727: warning: no previous prototype for
âpy_import_drsuapi_DsGetMembershipsCtrâ

default/librpc/gen_ndr/py_drsuapi.c:7741: warning: no previous prototype for
âpy_export_drsuapi_DsGetMembershipsCtrâ

default/librpc/gen_ndr/py_drsuapi.c:7936: warning: no previous prototype for
âpy_import_drsuapi_DsGetMembershipsRequestâ

default/librpc/gen_ndr/py_drsblobs.c:6210: warning: no previous prototype
for âpy_import_AuthInfoâ

default/librpc/gen_ndr/py_drsuapi.c:7950: warning: no previous prototype for
âpy_export_drsuapi_DsGetMembershipsRequestâ

default/librpc/gen_ndr/py_drsblobs.c:6236: warning: no previous prototype
for âpy_export_AuthInfoâ

default/librpc/gen_ndr/py_drsuapi.c:8099: warning: no previous prototype for
âpy_import_drsuapi_DsGetNT4ChangeLogRequestâ

default/librpc/gen_ndr/py_drsuapi.c:8113: warning: no previous prototype for
âpy_export_drsuapi_DsGetNT4ChangeLogRequestâ

default/librpc/gen_ndr/py_xattr.c:608: warning: no previous prototype for
âpy_import_xattr_DosInfoâ

default/librpc/gen_ndr/py_xattr.c:634: warning: no previous prototype for
âpy_export_xattr_DosInfoâ

default/librpc/gen_ndr/py_drsuapi.c:8446: warning: no previous prototype for
âpy_import_drsuapi_DsGetNT4ChangeLogInfoâ

default/librpc/gen_ndr/py_drsuapi.c:8460: warning: no previous prototype for
âpy_export_drsuapi_DsGetNT4ChangeLogInfoâ

default/librpc/gen_ndr/py_drsuapi.c:8737: warning: no previous prototype for
âpy_import_drsuapi_DsNameRequestâ

default/librpc/gen_ndr/py_drsuapi.c:8751: warning: no previous prototype for
âpy_export_drsuapi_DsNameRequestâ

default/librpc/gen_ndr/py_drsuapi.c:8984: warning: no previous prototype for
âpy_import_drsuapi_DsNameCtrâ

default/librpc/gen_ndr/py_drsuapi.c:9003: warning: no previous prototype for
âpy_export_drsuapi_DsNameCtrâ

default/librpc/gen_ndr/py_drsblobs.c:7357: warning: no previous prototype
for âpy_import_ExtendedErrorComputerNameUâ

default/librpc/gen_ndr/py_drsblobs.c:7376: warning: no previous prototype
for âpy_export_ExtendedErrorComputerNameUâ

default/librpc/gen_ndr/py_drsblobs.c:7472: warning: no previous prototype
for âpy_import_ExtendedErrorParamUâ

default/librpc/gen_ndr/py_drsblobs.c:7511: warning: no previous prototype
for âpy_export_ExtendedErrorParamUâ

default/librpc/gen_ndr/py_drsuapi.c:9199: warning: no previous prototype for
âpy_import_drsuapi_DsWriteAccountSpnRequestâ

default/librpc/gen_ndr/py_drsuapi.c:9213: warning: no previous prototype for
âpy_export_drsuapi_DsWriteAccountSpnRequestâ

[ 912/3999] Compiling default/librpc/gen_ndr/py_netlogon.c

default/librpc/gen_ndr/py_drsuapi.c:9272: warning: no previous prototype for
âpy_import_drsuapi_DsWriteAccountSpnResultâ

default/librpc/gen_ndr/py_drsuapi.c:9286: warning: no previous prototype for
âpy_export_drsuapi_DsWriteAccountSpnResultâ

default/librpc/gen_ndr/py_drsuapi.c:9422: warning: no previous prototype for
âpy_import_drsuapi_DsRemoveDSServerRequestâ

default/librpc/gen_ndr/py_drsuapi.c:9436: warning: no previous prototype for
âpy_export_drsuapi_DsRemoveDSServerRequestâ

default/librpc/gen_ndr/py_drsuapi.c:9496: warning: no previous prototype for
âpy_import_drsuapi_DsRemoveDSServerResultâ

default/librpc/gen_ndr/py_drsuapi.c:9510: warning: no previous prototype for
âpy_export_drsuapi_DsRemoveDSServerResultâ

default/librpc/gen_ndr/py_drsuapi.c:9608: warning: no previous prototype for
âpy_import_drsuapi_DsGetDCInfoRequestâ

default/librpc/gen_ndr/py_drsuapi.c:9622: warning: no previous prototype for
âpy_export_drsuapi_DsGetDCInfoRequestâ

default/librpc/gen_ndr/py_xattr.c:2162: warning: no previous prototype for
âpy_import_xattr_NTACL_Infoâ

default/librpc/gen_ndr/py_xattr.c:2208: warning: no previous prototype for
âpy_export_xattr_NTACL_Infoâ

default/librpc/gen_ndr/py_drsblobs.c:8258: warning: no previous prototype
for âpy_import_ForestTrustDataâ

default/librpc/gen_ndr/py_drsblobs.c:8284: warning: no previous prototype
for âpy_export_ForestTrustDataâ

[ 913/3999] Compiling default/librpc/gen_ndr/py_dnsserver.c

default/librpc/gen_ndr/py_drsuapi.c:11270: warning: no previous prototype
for âpy_import_drsuapi_DsGetDCInfoCtrâ

default/librpc/gen_ndr/py_drsuapi.c:11296: warning: no previous prototype
for âpy_export_drsuapi_DsGetDCInfoCtrâ

default/librpc/gen_ndr/py_drsuapi.c:11821: warning: no previous prototype
for âpy_import_drsuapi_DsAddEntryRequestâ

default/librpc/gen_ndr/py_drsuapi.c:11839: warning: no previous prototype
for âpy_export_drsuapi_DsAddEntryRequestâ

default/librpc/gen_ndr/py_drsuapi.c:12896: warning: no previous prototype
for âpy_import_drsuapi_DsAddEntryErrorInfoâ

default/librpc/gen_ndr/py_drsuapi.c:12934: warning: no previous prototype
for âpy_export_drsuapi_DsAddEntryErrorInfoâ

default/librpc/gen_ndr/py_drsuapi.c:13108: warning: no previous prototype
for âpy_import_drsuapi_DsAddEntry_ErrDataâ

default/librpc/gen_ndr/py_drsuapi.c:13122: warning: no previous prototype
for âpy_export_drsuapi_DsAddEntry_ErrDataâ

default/librpc/gen_ndr/py_netlogon.c:1280: warning: no previous prototype
for âpy_import_netr_LogonLevelâ

default/librpc/gen_ndr/py_drsuapi.c:13596: warning: no previous prototype
for âpy_import_drsuapi_DsAddEntryCtrâ

default/librpc/gen_ndr/py_drsuapi.c:13614: warning: no previous prototype
for âpy_export_drsuapi_DsAddEntryCtrâ

default/librpc/gen_ndr/py_drsuapi.c:13707: warning: no previous prototype
for âpy_import_drsuapi_DsExecuteKCCRequestâ

default/librpc/gen_ndr/py_drsuapi.c:13721: warning: no previous prototype
for âpy_export_drsuapi_DsExecuteKCCRequestâ

[ 914/3999] Compiling default/librpc/gen_ndr/py_smb_acl.c

default/librpc/gen_ndr/py_drsuapi.c:14061: warning: no previous prototype
for âpy_import_drsuapi_DsReplicaGetInfoRequestâ

default/librpc/gen_ndr/py_drsuapi.c:14079: warning: no previous prototype
for âpy_export_drsuapi_DsReplicaGetInfoRequestâ

default/librpc/gen_ndr/py_dnsserver.c:939: warning: no previous prototype
for âpy_import_DNS_RPC_DATAâ

default/librpc/gen_ndr/py_dnsserver.c:1017: warning: no previous prototype
for âpy_export_DNS_RPC_DATAâ

default/librpc/gen_ndr/py_netlogon.c:3344: warning: no previous prototype
for âpy_export_netr_Validationâ

default/librpc/gen_ndr/py_smb_acl.c:95: warning: no previous prototype for
âpy_import_smb_acl_entry_infoâ

default/librpc/gen_ndr/py_smb_acl.c:133: warning: no previous prototype for
âpy_export_smb_acl_entry_infoâ

[ 915/3999] Compiling source4/dsdb/samdb/ldb_modules/util.c

default/librpc/gen_ndr/py_drsuapi.c:17598: warning: no previous prototype
for âpy_import_drsuapi_DsReplicaInfoâ

default/librpc/gen_ndr/py_drsuapi.c:17743: warning: no previous prototype
for âpy_export_drsuapi_DsReplicaInfoâ

default/librpc/gen_ndr/py_drsuapi.c:18066: warning: no previous prototype
for âpy_import_drsuapi_DsGetMemberships2Ctrâ

default/librpc/gen_ndr/py_drsuapi.c:18080: warning: no previous prototype
for âpy_export_drsuapi_DsGetMemberships2Ctrâ

default/librpc/gen_ndr/py_drsuapi.c:18202: warning: no previous prototype
for âpy_import_drsuapi_DsGetMemberships2Requestâ

default/librpc/gen_ndr/py_drsuapi.c:18216: warning: no previous prototype
for âpy_export_drsuapi_DsGetMemberships2Requestâ

default/librpc/gen_ndr/py_drsuapi.c:18399: warning: no previous prototype
for âpy_import_drsuapi_QuerySitesByCostCtrâ

default/librpc/gen_ndr/py_drsuapi.c:18413: warning: no previous prototype
for âpy_export_drsuapi_QuerySitesByCostCtrâ

default/librpc/gen_ndr/py_drsuapi.c:18597: warning: no previous prototype
for âpy_import_drsuapi_QuerySitesByCostRequestâ

default/librpc/gen_ndr/py_drsuapi.c:18611: warning: no previous prototype
for âpy_export_drsuapi_QuerySitesByCostRequestâ

[ 916/3999] Compiling source4/dsdb/samdb/ldb_modules/acl_util.c

default/librpc/gen_ndr/py_netlogon.c:8437: warning: no previous prototype
for âpy_import_netr_DELTA_UNIONâ

default/librpc/gen_ndr/py_netlogon.c:8626: warning: no previous prototype
for âpy_export_netr_DELTA_UNIONâ

default/librpc/gen_ndr/py_netlogon.c:8883: warning: no previous prototype
for âpy_import_netr_DELTA_ID_UNIONâ

default/librpc/gen_ndr/py_netlogon.c:9032: warning: no previous prototype
for âpy_export_netr_DELTA_ID_UNIONâ

default/librpc/gen_ndr/py_netlogon.c:9952: warning: no previous prototype
for âpy_import_netr_CONTROL_QUERY_INFORMATIONâ

default/librpc/gen_ndr/py_netlogon.c:10003: warning: no previous prototype
for âpy_export_netr_CONTROL_QUERY_INFORMATIONâ

default/librpc/gen_ndr/py_netlogon.c:10071: warning: no previous prototype
for âpy_import_netr_CONTROL_DATA_INFORMATIONâ

default/librpc/gen_ndr/py_netlogon.c:10174: warning: no previous prototype
for âpy_export_netr_CONTROL_DATA_INFORMATIONâ

default/librpc/gen_ndr/py_netlogon.c:10287: warning: no previous prototype
for âpy_import_netr_ChangeLogObjectâ

default/librpc/gen_ndr/py_netlogon.c:10310: warning: no previous prototype
for âpy_export_netr_ChangeLogObjectâ

default/librpc/gen_ndr/py_netlogon.c:11047: warning: no previous prototype
for âpy_import_netr_Capabilitiesâ

default/librpc/gen_ndr/py_netlogon.c:11061: warning: no previous prototype
for âpy_export_netr_Capabilitiesâ

[ 917/3999] Compiling source4/dsdb/samdb/ldb_modules/schema_util.c

default/librpc/gen_ndr/py_netlogon.c:12002: warning: no previous prototype
for âpy_import_netr_WorkstationInfoâ

default/librpc/gen_ndr/py_netlogon.c:12030: warning: no previous prototype
for âpy_export_netr_WorkstationInfoâ

default/librpc/gen_ndr/py_netlogon.c:12892: warning: no previous prototype
for âpy_import_netr_DomainInfoâ

default/librpc/gen_ndr/py_netlogon.c:12920: warning: no previous prototype
for âpy_export_netr_DomainInfoâ

[ 918/3999] Compiling source4/dsdb/samdb/ldb_modules/ridalloc.c

[ 919/3999] Compiling source4/dsdb/samdb/ldb_modules/samba_dsdb.c

default/librpc/gen_ndr/py_dnsserver.c:12751: warning: no previous prototype
for âpy_import_DNSSRV_RPC_UNIONâ

default/librpc/gen_ndr/py_dnsserver.c:13126: warning: no previous prototype
for âpy_export_DNSSRV_RPC_UNIONâ

../source4/dsdb/samdb/ldb_modules/ridalloc.c: In function
âridalloc_create_own_rid_setâ:

../source4/dsdb/samdb/ldb_modules/ridalloc.c:418: warning: assignment
discards qualifiers from pointer target type

[ 920/3999] Compiling source4/dsdb/samdb/ldb_modules/samba_secrets.c

[ 921/3999] Compiling source4/dsdb/samdb/ldb_modules/objectguid.c

[ 922/3999] Compiling source4/dsdb/samdb/ldb_modules/repl_meta_data.c

[ 923/3999] Compiling source4/dsdb/samdb/ldb_modules/schema_load.c

[ 924/3999] Compiling source4/dsdb/samdb/ldb_modules/schema_data.c

[ 925/3999] Compiling source4/dsdb/samdb/ldb_modules/samldb.c

[ 926/3999] Compiling source4/dsdb/samdb/ldb_modules/samba3sam.c

[ 927/3999] Compiling source4/dsdb/samdb/ldb_modules/samba3sid.c

[ 928/3999] Compiling source4/dsdb/samdb/ldb_modules/simple_ldap_map.c

[ 929/3999] Compiling source4/dsdb/samdb/ldb_modules/rootdse.c

[ 930/3999] Compiling source4/dsdb/samdb/ldb_modules/password_hash.c

[ 931/3999] Compiling source4/dsdb/samdb/ldb_modules/local_password.c

[ 932/3999] Compiling source4/dsdb/samdb/ldb_modules/extended_dn_in.c

[ 933/3999] Compiling source4/dsdb/samdb/ldb_modules/extended_dn_out.c

[ 934/3999] Compiling source4/dsdb/samdb/ldb_modules/extended_dn_store.c

[ 935/3999] Compiling source4/dsdb/samdb/ldb_modules/show_deleted.c

[ 936/3999] Compiling source4/dsdb/samdb/ldb_modules/partition.c

[ 937/3999] Compiling source4/dsdb/samdb/ldb_modules/partition_init.c

[ 938/3999] Compiling source4/dsdb/samdb/ldb_modules/partition_metadata.c

[ 939/3999] Compiling source4/dsdb/samdb/ldb_modules/new_partition.c

../source4/dsdb/samdb/ldb_modules/partition.c: In function
âpartition_sequence_numberâ:

../source4/dsdb/samdb/ldb_modules/partition.c:1098: warning: unused variable
âpâ

../source4/dsdb/samdb/ldb_modules/partition.c:1092: warning: unused variable
âdataâ

[ 940/3999] Compiling source4/dsdb/samdb/ldb_modules/update_keytab.c

[ 941/3999] Compiling source4/dsdb/samdb/ldb_modules/secrets_tdb_sync.c

[ 942/3999] Compiling source4/dsdb/samdb/ldb_modules/objectclass.c

[ 943/3999] Compiling source4/dsdb/samdb/ldb_modules/objectclass_attrs.c

[ 944/3999] Compiling source4/dsdb/samdb/ldb_modules/subtree_rename.c

[ 945/3999] Compiling source4/dsdb/samdb/ldb_modules/subtree_delete.c

[ 946/3999] Compiling source4/dsdb/samdb/ldb_modules/linked_attributes.c

[ 947/3999] Compiling source4/dsdb/samdb/ldb_modules/ranged_results.c

[ 948/3999] Compiling source4/dsdb/samdb/ldb_modules/anr.c

[ 949/3999] Compiling source4/dsdb/samdb/ldb_modules/instancetype.c

[ 950/3999] Compiling source4/dsdb/samdb/ldb_modules/operational.c

../source4/dsdb/samdb/ldb_modules/linked_attributes.c: In function
âlinked_attributes_fix_linksâ:

../source4/dsdb/samdb/ldb_modules/linked_attributes.c:755: warning:
declaration of âlink_guidâ shadows a previous local

../source4/dsdb/samdb/ldb_modules/linked_attributes.c:690: warning: shadowed
declaration is here

[ 951/3999] Compiling source4/dsdb/samdb/ldb_modules/descriptor.c

[ 952/3999] Compiling source4/dsdb/samdb/ldb_modules/resolve_oids.c

[ 953/3999] Compiling source4/dsdb/samdb/ldb_modules/acl.c

[ 954/3999] Compiling source4/dsdb/samdb/ldb_modules/lazy_commit.c

...



- Phil

Phil Quesinberry

unread,
Apr 13, 2013, 12:20:01 AM4/13/13
to
Hi Luis,

So what did you do to fix it?

- Phil



--
View this message in context: http://samba.2283325.n4.nabble.com/Re-Python-UCS2-vs-UCS4-issue-on-latest-git-ImportError-undefined-symbol-PyUnicodeUCS2-Decode-NOT-SOL-tp4646314p4646677.html
Sent from the Samba - General mailing list archive at Nabble.com.

Phil Quesinberry

unread,
Apr 14, 2013, 4:20:01 PM4/14/13
to
OMG... I fixed it.

Since libgnutls.so.26 was in /usr/local/lib and not in /usr/local/samba/lib,
I added a file called gnutls.conf to /etc/ld.conf.d/ with the following
entry:
/usr/local/lib

I then did an ldconfig and now it seems to work! System programs like yum
which appear to rely on the older version of Python work just fine.

Let me know if you need more info or want me to try any additional testing
to try and extract more detailed information to potentially improve the
installation process or otherwise keep this from happening to other users.
After this experience, I'm happy to play a small part in helping others
avoid this sort of misery.

Well, I just learned something. And a word of advice to anyone else reading
this thread... don't mess with your Python installation unless you know what
you're doing. ..and if you're contemplating messing with your Python
installation... you probably don't. :)

Many, MANY thanks Andrew for taking your valuable time to try and help me
get this running as well as everyone else who chimed in with comments trying
to help.

Best regards,

- Phil



--
View this message in context: http://samba.2283325.n4.nabble.com/Re-Python-UCS2-vs-UCS4-issue-on-latest-git-ImportError-undefined-symbol-PyUnicodeUCS2-Decode-NOT-SOL-tp4646314p4646745.html
Sent from the Samba - General mailing list archive at Nabble.com.
0 new messages