Python version for samba-4.0.0alpha11

Jelmer Vernooij jelmer at samba.org
Thu Apr 22 08:40:43 MDT 2010


On Thu, 2010-04-22 at 20:01 +0530, nitin bhadauria wrote:
> Now when i created this soft link..
> 
> ln -s /usr/local/lib/libpython2.5.so /usr/local/lib/python2.5/config/
This doesn't make any sense. Please build your Python with shared
library support.

Cheers,

Jelmer

> I am getting the following error...
> 
> Compiling utils/net/net.c
> utils/net/net.c: In function ‘py_tuple_from_argv’:
> utils/net/net.c:58: error: ‘Py_ssize_t’ undeclared (first use in this
> function)
> utils/net/net.c:58: error: (Each undeclared identifier is reported only once
> utils/net/net.c:58: error: for each function it appears in.)
> utils/net/net.c:58: error: expected ‘;’ before ‘i’
> utils/net/net.c:65: error: ‘i’ undeclared (first use in this function)
> utils/net/net.c: In function ‘py_call_with_string_args’:
> utils/net/net.c:82: warning: passing argument 2 of ‘PyObject_GetAttrString’
> discards qualifiers from pointer target type
> utils/net/net.c: In function ‘py_commands’:
> utils/net/net.c:110: warning: passing argument 1 of ‘PyImport_ImportModule’
> discards qualifiers from pointer target type
> utils/net/net.c:116: warning: passing argument 2 of ‘PyObject_GetAttrString’
> discards qualifiers from pointer target type
> utils/net/net.c: In function ‘net_help_python’:
> utils/net/net.c:227: error: ‘Py_ssize_t’ undeclared (first use in this
> function)
> utils/net/net.c:227: error: expected ‘;’ before ‘pos’
> utils/net/net.c:234: error: ‘pos’ undeclared (first use in this function)
> utils/net/net.c:242: warning: passing argument 2 of ‘PyObject_GetAttrString’
> discards qualifiers from pointer target type
> utils/net/net.c: In function ‘binary_net’:
> utils/net/net.c:311: warning: passing argument 2 of ‘PySys_SetArgv’ from
> incompatible pointer type
> The following command failed:
> gcc -g -DDEBUG_PASSWORD -DDEVELOPER -Wall -Wshadow
> -Werror-implicit-function-declaration -Wstrict-prototypes -Wpointer-arith
> -Wcast-qual -Wcast-align -Wwrite-strings -Wmissing-format-attribute
> -Wformat=2 -Wdeclaration-after-statement -Wunused-macros -Wno-format-y2k
> -Wno-unused-parameter   -Iheimdal/kdc -Iheimdal/lib/hdb
> -Iheimdal/../heimdal_build -Iheimdal/lib/hdb    -I/usr/include/python2.4
> -I/usr/include/python2.4 -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC
> -Ilib/ldb/include -Ilib/ldb/include -Ilib/ldb/include -Ilib/ldb/include
> -Ilib/ldb/include -Ilib/ldb/include -Iheimdal/../heimdal_build
> -Iheimdal/lib/gssapi -Iheimdal/lib/gssapi/gssapi -Iheimdal/lib/gssapi/spnego
> -Iheimdal/lib/gssapi/krb5 -Iheimdal/lib/gssapi/mech -Iheimdal_build
> -Iheimdal/lib/roken -Iheimdal/lib/gssapi -Iheimdal/lib/gssapi
> -Iheimdal/../heimdal_build -Iheimdal/lib/hdb -Iheimdal/lib/hdb
> -Ilib/ldb/include -Ilib/ldb/include -Ilib/ldb/ldb_tdb -Ilib/ldb/include
> -Ilib/ldb/include -Ilib/ldb/include -I../lib/tdb/include
> -I./../lib/talloc   -Iheimdal/../heimdal_build -Iheimdal/lib/krb5
> -Iheimdal/lib/asn1 -Iheimdal/lib/com_err   -Iheimdal/../heimdal_build
> -Iheimdal/lib/hx509 -Iheimdal/lib/hx509 -Iheimdal/lib/asn1
> -Iheimdal/lib/asn1 -Iheimdal/lib/asn1 -Iheimdal/lib/hx509
> -Iheimdal/../heimdal_build -Iheimdal/lib/hcrypto -Iheimdal/lib
> -Iheimdal/../heimdal_build -Iheimdal/lib/hcrypto/imath
> -Iheimdal/../heimdal_build -Iheimdal/lib/wind -Iheimdal/lib/asn1
> -Iheimdal/lib/asn1 -Iheimdal/lib/asn1 -Iheimdal/lib/asn1
> -Iheimdal/../heimdal_build -Iheimdal/lib/asn1 -Iheimdal/../heimdal_build
> -Iheimdal/lib/com_err -Iheimdal/../heimdal_build -Iheimdal/lib/roken
> -Iheimdal/include -I../lib/socket_wrapper   -Ilib/events -I../lib/tevent
> -g   -I../lib/talloc -Ilib/replace     -fPIC -I./include -I. -I./lib
> -I./../lib/replace -I./../lib/talloc -I./.. -D_SAMBA_BUILD_=4
> -DHAVE_CONFIG_H  -c utils/net/net.c -o utils/net/net.o
> gmake: *** [utils/net/net.o] Error 1
> 
> 
> 
> 
> On Thu, Apr 22, 2010 at 5:53 PM, Jelmer Vernooij <jelmer at samba.org> wrote:
> 
> > Hi Nitin,
> >
> > On Thu, 2010-04-22 at 17:42 +0530, nitin bhadauria wrote:
> > > This is the error which i get when compiling..
> > >
> > > Linking bin/python/samba/credentials.so
> > > /usr/bin/ld: /usr/local/lib/python2.5/config/libpython2.5.a(abstract.o):
> > relocation R_X86_64_32 against `a local symbol' can not be used when making
> > a shared object; recompile with -fPIC
> > > /usr/local/lib/python2.5/config/libpython2.5.a: could not read
> > > symbols: Bad value
> > > collect2: ld returned 1 exit status
> > > make: *** [bin/python/samba/credentials.so] Error 1
> > We are building Python modules but it appears you have not built your
> > version of Python with shared library support. Do you have
> > a /usr/local/lib/python2.5/config/libpython2.5.so file ?
> >
> > Cheers,
> >
> > Jelmer
> >
> >
> > >
> > > On Thu, Apr 22, 2010 at 2:50 PM, Jelmer Vernooij <jelmer at samba.org>
> > > wrote:
> > >         On Thu, 2010-04-22 at 14:45 +0530, nitin bhadauria wrote:
> > >         > Not only warnings, it didn't get compiled too.
> > >
> > >         What warnings do you get?
> > >
> > >         Cheers,
> > >
> > >         Jelmer
> > >
> > >
> > >         > On Thu, Apr 22, 2010 at 2:43 PM, Matthias Dieter Wallnöfer
> > >         <mdw at samba.org>wrote:
> > >         >
> > >         > > You mean the warnings? They're normal - just ignore them.
> > >         > >
> > >         > > Matthias
> > >         > >
> > >         > >
> > >         > > nitin bhadauria wrote:
> > >         > >
> > >         > >> Hello Everyone,
> > >         > >>
> > >         > >> I am trying to install samba-4.0.0alpha11 on centos 5.4
> > >         with python 2.4.
> > >         > >>
> > >         > >> I am getting some error while compiling the source, Which
> > >         i think is
> > >         > >> related
> > >         > >> to python.
> > >         > >>
> > >         > >> Should i use updated version of python ?
> > >         > >> is there any doc to follow ?
> > >         > >>
> > >         > >> because if i am using a complied python2.6 with
> > >         python2.4. It didn't work.
> > >         > >>
> > >         > >> Regards,
> > >         > >> Nitin B.
> > >         > >>
> > >         > >>
> > >         > >>
> > >         > >
> > >         > >
> > >
> > >
> > >
> >
> >



More information about the samba-technical mailing list