Re: [Samba] missing libgnutls.so.26

2013-04-12 Thread Andrew Bartlett
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 Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org


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


Re: [Samba] missing libgnutls.so.26

2013-04-12 Thread Helmut Hullen
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
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] missing libgnutls.so.26

2013-04-12 Thread Phil Quesinberry
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

[ 

Re: [Samba] missing libgnutls.so.26

2013-04-12 Thread Phil Quesinberry
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.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] missing libgnutls.so.26

2013-04-11 Thread Phil Quesinberry
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.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] missing libgnutls.so.26

2013-04-10 Thread Andrew Bartlett
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 Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org


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


[Samba] missing libgnutls.so.26

2013-04-09 Thread Andrew Bartlett
On Mon, 2013-04-08 at 20:25 -0700, Phil Quesinberry wrote:
 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

Between building Samba and running it you have removed libgnutls.

Andrew Bartlett

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


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


Re: [Samba] missing libgnutls.so.26

2013-04-09 Thread Luis Angel Fernandez Fernandez
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 abart...@samba.org

 On Mon, 2013-04-08 at 20:25 -0700, Phil Quesinberry wrote:
  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

 Between building Samba and running it you have removed libgnutls.

 Andrew Bartlett

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


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




-- 
Linkedin profile (http://es.linkedin.com/in/lafdez)
G+ profile (https://plus.google.com/u/0/115320207805121303027/about)
Twitter (@lafdez @_lafdez_)
Identi.ca (@lafdez)
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] missing libgnutls.so.26

2013-04-09 Thread Phil Quesinberry
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.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba