Compiling - Samba

This is a discussion on Compiling - Samba ; Hi, Hi all. I'm compiling the "just updated" samba 4 and I receive this error: """ Compiling librpc/rpc/dcerpc_secondary.c Linking bin/static/libdcerpc.a Linking bin/smbscript bin/mergedobj/swig_registry.o: In function `_wrap_Registry': registry_wrap.c .text+0x38af): undefined reference to `PyErr_SetWERROR' bin/mergedobj/swig_registry.o: In function `_wrap_reg_get_predefined_key_by_name': registry_wrap.c .text+0x3b4e): undefined reference ...

+ Reply to Thread
Results 1 to 6 of 6

Thread: Compiling

  1. Compiling

    Hi,
    Hi all. I'm compiling the "just updated" samba 4 and I receive this error:

    """
    Compiling librpc/rpc/dcerpc_secondary.c
    Linking bin/static/libdcerpc.a
    Linking bin/smbscript
    bin/mergedobj/swig_registry.o: In function `_wrap_Registry':
    registry_wrap.c.text+0x38af): undefined reference to `PyErr_SetWERROR'
    bin/mergedobj/swig_registry.o: In function
    `_wrap_reg_get_predefined_key_by_name':
    registry_wrap.c.text+0x3b4e): undefined reference to `PyErr_SetWERROR'
    bin/mergedobj/swig_registry.o: In function `_wrap_reg_key_del_abs':
    registry_wrap.c.text+0x3d4b): undefined reference to `PyErr_SetWERROR'
    bin/mergedobj/swig_registry.o: In function `_wrap_reg_get_predefined_key':
    registry_wrap.c.text+0x3fd5): undefined reference to `PyErr_SetWERROR'
    bin/mergedobj/swig_registry.o: In function `_wrap_reg_diff_apply':
    registry_wrap.c.text+0x41a8): undefined reference to `PyErr_SetWERROR'
    bin/mergedobj/swig_registry.o:registry_wrap.c.text+0x44eb): more
    undefined references to `PyErr_SetWERROR' follow
    collect2: ld returned 1 exit status
    make: *** [bin/smbscript] Error 1
    """

    Michele


  2. Re: Compiling

    Hi Michele,

    Am Samstag, den 14.06.2008, 11:17 +0200 schrieb Michele Petrazzo -
    Unipex srl:
    > Hi all. I'm compiling the "just updated" samba 4 and I receive this error:
    >
    > """
    > Compiling librpc/rpc/dcerpc_secondary.c
    > Linking bin/static/libdcerpc.a
    > Linking bin/smbscript
    > bin/mergedobj/swig_registry.o: In function `_wrap_Registry':
    > registry_wrap.c.text+0x38af): undefined reference to `PyErr_SetWERROR'
    > bin/mergedobj/swig_registry.o: In function
    > `_wrap_reg_get_predefined_key_by_name':
    > registry_wrap.c.text+0x3b4e): undefined reference to `PyErr_SetWERROR'
    > bin/mergedobj/swig_registry.o: In function `_wrap_reg_key_del_abs':
    > registry_wrap.c.text+0x3d4b): undefined reference to `PyErr_SetWERROR'
    > bin/mergedobj/swig_registry.o: In function `_wrap_reg_get_predefined_key':
    > registry_wrap.c.text+0x3fd5): undefined reference to `PyErr_SetWERROR'
    > bin/mergedobj/swig_registry.o: In function `_wrap_reg_diff_apply':
    > registry_wrap.c.text+0x41a8): undefined reference to `PyErr_SetWERROR'
    > bin/mergedobj/swig_registry.o:registry_wrap.c.text+0x44eb): more
    > undefined references to `PyErr_SetWERROR' follow
    > collect2: ld returned 1 exit status
    > make: *** [bin/smbscript] Error 1
    > """

    Something must've triggered a rebuild of the SWIG file on your system,
    and that made an inconsistency in the SWIG files visible.

    This should be fixed in git now.

    Cheers,

    Jelmer

    --
    Jelmer Vernooij - http://samba.org/~jelmer/
    Jabber: jelmer@jabber.fsfe.org


  3. Re: Compiling

    Jelmer Vernooij wrote:
    > Hi Michele,
    >


    Hi!

    > This should be fixed in git now.
    >


    Yes. It compile, but not it's stopping on another point:

    Partially linking bin/mergedobj/rpc_ndr_svcctl.o
    Compiling librpc/gen_ndr/py_drsuapi.c
    Assembler messages:
    Error: can't open /tmp/ccWlyRki.s for reading: No such file or directory
    The following command failed:
    gcc -I/usr/include/python2.4 -I/usr/include/python2.4
    -I/usr/include/python2.4 -I/usr/include/python2.4
    -I/usr/include/python2.4 -I/usr/include/python2.4
    -I/usr/include/python2.4 -I/usr/include/python2.4
    -I/usr/include/python2.4 -I/usr/include/python2.4
    -I/usr/include/python2.4 -I/usr/include/python2.4
    -I/usr/include/python2.4 -I/usr/include/python2.4
    -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 -Ilib/events
    -Iheimdal/../heimdal_build -Iheimdal/lib/krb5 -Iheimdal/lib/asn1
    -Iheimdal/lib/com_err -Iheimdal/../heimdal_build -Iheimdal/lib/hx509
    -Iheimdal/../heimdal_build -Iheimdal/lib/wind -Iheimdal/lib/hx509
    -Iheimdal/lib/asn1 -Iheimdal/lib/asn1 -Iheimdal/lib/asn1
    -Iheimdal/lib/asn1 -Iheimdal/lib/hx509 -Iheimdal/lib/asn1
    -Iheimdal/../heimdal_build -Iheimdal/lib/hcrypto -Iheimdal/lib
    -Iheimdal/lib/asn1 -Iheimdal/../heimdal_build
    -Iheimdal/lib/hcrypto/imath -Iheimdal/../heimdal_build
    -Iheimdal/lib/krb5 -Iheimdal/lib/asn1 -Iheimdal/lib/com_err
    -Iheimdal/lib/asn1 -Iheimdal/../heimdal_build -Iheimdal/lib/asn1
    -Iheimdal/../heimdal_build -Iheimdal/lib/com_err
    -Iheimdal/../heimdal_build -Iheimdal/lib/roken -Ilib/socket_wrapper
    -Ilib/ldb/include -Ilib/ldb/include -Ilib/ldb/include -Ilib/ldb/include
    -Ilib/ldb/include -Ilib/ldb/include -Ilib/ldb/include -Ilib/ldb/include
    -Ilib/ldb/ldb_tdb -Ilib/ldb/include -Ilib/ldb/include -Ilib/talloc
    -Ilib/replace -fPIC -I./include -I. -I./lib -I./lib/replace
    -I./lib/talloc -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H -c
    librpc/gen_ndr/py_drsuapi.c -o librpc/gen_ndr/py_drsuapi.o
    make: *** [librpc/gen_ndr/py_drsuapi.o] Error 1
    michele:~/samba4/source$

    Michele


  4. Re: Compiling

    Hi Michele,

    Am Samstag, den 14.06.2008, 12:47 +0200 schrieb Michele Petrazzo -
    Unipex srl:
    > Partially linking bin/mergedobj/rpc_ndr_svcctl.o
    > Compiling librpc/gen_ndr/py_drsuapi.c
    > Assembler messages:
    > Error: can't open /tmp/ccWlyRki.s for reading: No such file or directory
    > The following command failed:
    > gcc -I/usr/include/python2.4 -I/usr/include/python2.4
    > -I/usr/include/python2.4 -I/usr/include/python2.4
    > -I/usr/include/python2.4 -I/usr/include/python2.4
    > -I/usr/include/python2.4 -I/usr/include/python2.4
    > -I/usr/include/python2.4 -I/usr/include/python2.4
    > -I/usr/include/python2.4 -I/usr/include/python2.4
    > -I/usr/include/python2.4 -I/usr/include/python2.4
    > -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 -Ilib/events
    > -Iheimdal/../heimdal_build -Iheimdal/lib/krb5 -Iheimdal/lib/asn1
    > -Iheimdal/lib/com_err -Iheimdal/../heimdal_build -Iheimdal/lib/hx509
    > -Iheimdal/../heimdal_build -Iheimdal/lib/wind -Iheimdal/lib/hx509
    > -Iheimdal/lib/asn1 -Iheimdal/lib/asn1 -Iheimdal/lib/asn1
    > -Iheimdal/lib/asn1 -Iheimdal/lib/hx509 -Iheimdal/lib/asn1
    > -Iheimdal/../heimdal_build -Iheimdal/lib/hcrypto -Iheimdal/lib
    > -Iheimdal/lib/asn1 -Iheimdal/../heimdal_build
    > -Iheimdal/lib/hcrypto/imath -Iheimdal/../heimdal_build
    > -Iheimdal/lib/krb5 -Iheimdal/lib/asn1 -Iheimdal/lib/com_err
    > -Iheimdal/lib/asn1 -Iheimdal/../heimdal_build -Iheimdal/lib/asn1
    > -Iheimdal/../heimdal_build -Iheimdal/lib/com_err
    > -Iheimdal/../heimdal_build -Iheimdal/lib/roken -Ilib/socket_wrapper
    > -Ilib/ldb/include -Ilib/ldb/include -Ilib/ldb/include -Ilib/ldb/include
    > -Ilib/ldb/include -Ilib/ldb/include -Ilib/ldb/include -Ilib/ldb/include
    > -Ilib/ldb/ldb_tdb -Ilib/ldb/include -Ilib/ldb/include -Ilib/talloc
    > -Ilib/replace -fPIC -I./include -I. -I./lib -I./lib/replace
    > -I./lib/talloc -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H -c
    > librpc/gen_ndr/py_drsuapi.c -o librpc/gen_ndr/py_drsuapi.o
    > make: *** [librpc/gen_ndr/py_drsuapi.o] Error 1
    > michele:~/samba4/source$

    That looks like a local error - e.g. a bug in your compiler, out of disk
    space maybe?

    Cheers,

    Jelmer
    --
    Jelmer Vernooij - http://samba.org/~jelmer/
    Jabber: jelmer@jabber.fsfe.org


  5. Re: Compiling

    Jelmer Vernooij wrote:
    > Hi Michele,
    >


    Hi,

    > That looks like a local error - e.g. a bug in your compiler, out of
    > disk space maybe?
    >


    I thought the same
    Space there is without problem. But for compiler problem, where I can
    start to see?

    For now, I'm upgrading to the last lenny gcc package and I'll retry.

    Michele


  6. Re: Compiling

    Jelmer Vernooij wrote:
    > That looks like a local error - e.g. a bug in your compiler, out of disk
    > space maybe?
    >


    Good news,
    with the last lenny gcc 4.3 package all work!

    Thanks,
    Michele


+ Reply to Thread