Re: [Samba] Samba4 Compile Error

2013-03-18 Thread Nico Kadel-Garcia
On Fri, Feb 8, 2013 at 12:00 AM, Oner Olcerel
oner.olce...@digitalpictures.com.au wrote:
 Hello,

 I am trying to compile Samba4 on RHEL 5.3 which didn't have Python on it.  
 I've downloaded  Python-2.6.5.tar from 
 http://ftp.samba.org/pub/tridge/python/. I get the following error during the 
 compile :

Stop *right* there. I'm going to be *amazed* if you successfully
installed RHEL 5.3 without Python, because a lot core utilities such
as yum depend on it.

I've been working, when I can spare time, on backporting the Samba
4.0.3 SRPM from Fedoraq to RHEL 6, and there are a *lot* of
dependencies. Note that simply slapping Python 2.6 on top of RHEL 5 by
compiling and stuffing it in place is. bound to cause a raft of
fascinating issues, and I don't recommend it.

Definitely update to RHEL 6.4, if possible, and consider working from
my samba-4.0.3 backports at:

   https://github.com/nkadel/samba4repo

This is designed to check out all the other needed dependencies, and
work from there to build up a local yum repository with all the
necessary libtdb, libldb, iniparser, and other dependencies.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba4 Compile Error

2013-03-18 Thread Andrew Bartlett
On Fri, 2013-02-08 at 05:00 +, Oner Olcerel wrote:
 Hello,
 
 I am trying to compile Samba4 on RHEL 5.3 which didn't have Python on it.  
 I've downloaded  Python-2.6.5.tar from 
 http://ftp.samba.org/pub/tridge/python/. I get the following error during the 
 compile :
 ..
 ...
 [3285/3758] Compiling lib/krb5_wrap/enctype_convert.c
 [3286/3758] Linking default/lib/util/libutil_setid.so
 [3287/3758] Linking default/lib/talloc/libtalloc.so
 [3288/3758] Linking default/lib/talloc/libpytalloc-util.so
 /usr/bin/ld: /usr/local/lib/libpython2.6.a(cobject.o): relocation 
 R_X86_64_32S against `PyCObject_Type' can not be used when making a shared 
 object; recompile with -fPIC
 /usr/local/lib/libpython2.6.a: could not read symbols: Bad value
 collect2: ld returned 1 exit status
 Waf: Leaving directory `/install/samba-4.0.3/bin'
 Build failed:  - task failed (err #1):
 {task: cc_link pytalloc_util_5.o - libpytalloc-util.so}
 
 I'll appreciate any suggestions. Thanks

You did not build python with --enable-shared

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] Samba4 Compile Error

2013-03-18 Thread Miguel Medalha


Definitely update to RHEL 6.4, if possible, and consider working from 
my samba-4.0.3 backports at: https://github.com/nkadel/samba4repo This 
is designed to check out all the other needed dependencies, and work 
from there to build up a local yum repository with all the necessary 
libtdb, libldb, iniparser, and other dependencies. 



I just had a look at the latest changes you did. I am glad that you 
included a samba.init file.

It was a nice touch.

I used your latest samba.spec to build the packages and I found that 
there are still a few  issues to be solved:




If %global with_dc 0 is used, the build fails with the following result:

RPM build errors:
Installed (but unpackaged) file(s) found:
   /usr/lib64/samba/ldb/ildap.so
   /usr/lib64/samba/ldb/ldbsamba_extensions.so
   /usr/lib64/samba/libdfs_server_ad.so

I used the following additions:

### DC-LIBS
%if %with_dc
# ldb libraries built with DC activated
%{_libdir}/samba/ldb/ildap.so
%{_libdir}/samba/ldb/ldbsamba_extensions.so
%else
%exclude %{_libdir}/samba/ldb/ildap.so
%exclude %{_libdir}/samba/ldb/ldbsamba_extensions.so
%endif



If %global with_dc 1 is used, the installation of the RPMS in the 
required order gives the following errors:


rpm -Uvh samba-libs-4.0.3-0.6.el6.x86_64.rp
error: Failed dependencies:
libdfs_server_ad.so()(64bit) is needed by 
samba-libs-0:4.0.3-0.6.el6.x86_64
libdfs_server_ad.so(SAMBA_4.0.3)(64bit) is needed by 
samba-libs-0:4.0.3-0.6.el6.x86_64


rpm -Uvh samba-4.0.3-0.6.el6.x86_64.rpm
error: Failed dependencies:
libposix_eadb.so()(64bit) is needed by samba-0:4.0.3-0.6.el6.x86_64
libposix_eadb.so(SAMBA_4.0.3)(64bit) is needed by 
samba-0:4.0.3-0.6.el6.x86_64


To avoid a dependence nightmare, samba-libsand samba must be 
installed before samba-dc-libs and samba-dc.
As such, the former two cannot depend on the later to satisfy their 
requirements. Maybe the following should be included

under LIBS?

### LIBS
%if %with_dc
%{_libdir}/samba/libdfs_server_ad.so
%{_libdir}/samba/libposix_eadb.so
%else
%exclude %{_libdir}/samba/libdfs_server_ad.so
%endif # with_dc



I don't really know if some the above files are in fact needed even when 
DC is off, so I did the above configuration experimentally for my own 
use and everything built and installed correctly.


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


[Samba] Samba4 Compile Error

2013-03-16 Thread Oner Olcerel
Hello,

I am trying to compile Samba4 on RHEL 5.3 which didn't have Python on it.  I've 
downloaded  Python-2.6.5.tar from http://ftp.samba.org/pub/tridge/python/. I 
get the following error during the compile :
..
...
[3285/3758] Compiling lib/krb5_wrap/enctype_convert.c
[3286/3758] Linking default/lib/util/libutil_setid.so
[3287/3758] Linking default/lib/talloc/libtalloc.so
[3288/3758] Linking default/lib/talloc/libpytalloc-util.so
/usr/bin/ld: /usr/local/lib/libpython2.6.a(cobject.o): relocation R_X86_64_32S 
against `PyCObject_Type' can not be used when making a shared object; recompile 
with -fPIC
/usr/local/lib/libpython2.6.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
Waf: Leaving directory `/install/samba-4.0.3/bin'
Build failed:  - task failed (err #1):
{task: cc_link pytalloc_util_5.o - libpytalloc-util.so}

I'll appreciate any suggestions. Thanks

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