[Samba] Error building Samba 3.2.0 with gcc 2.96 - Samba

This is a discussion on [Samba] Error building Samba 3.2.0 with gcc 2.96 - Samba ; I have tried to build Samba 3.2 with an old compiler gcc 2.96. It gave only one single error: groupdb/mapping_tdb.c: In function `add_mapping_entry': groupdb/mapping_tdb.c:130: incompatible types in return The offending line says: return NULL; in a function of type 'bool'. ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: [Samba] Error building Samba 3.2.0 with gcc 2.96

  1. [Samba] Error building Samba 3.2.0 with gcc 2.96

    I have tried to build Samba 3.2 with an old compiler gcc 2.96.

    It gave only one single error:

    groupdb/mapping_tdb.c: In function `add_mapping_entry':
    groupdb/mapping_tdb.c:130: incompatible types in return

    The offending line says:

    return NULL;

    in a function of type 'bool'.

    Is this a bug, or am I using a far too old compiler?

    Thorkil Olesen.

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

  2. Re: [Samba] Error building Samba 3.2.0 with gcc 2.96

    Thorkil Olesen wrote:
    > I have tried to build Samba 3.2 with an old compiler gcc 2.96.
    >
    > It gave only one single error:
    >
    > groupdb/mapping_tdb.c: In function `add_mapping_entry':
    > groupdb/mapping_tdb.c:130: incompatible types in return
    >
    > The offending line says:
    >
    > return NULL;
    >
    > in a function of type 'bool'.
    >
    > Is this a bug, or am I using a far too old compiler?


    It's a bug, fixed already in git.

    Thanks!

    Guenther

    --
    GŁnther Deschner GPG-ID: 8EE11688
    Red Hat gdeschner@redhat.com
    Samba Team gd@samba.org
    --
    To unsubscribe from this list go to the following URL and read the
    instructions: https://lists.samba.org/mailman/listinfo/samba

  3. Re: [Samba] Error building Samba 3.2.0 with gcc 2.96

    On Thu, Jul 03, 2008 at 08:19:19AM +0000, Thorkil Olesen wrote:
    > I have tried to build Samba 3.2 with an old compiler gcc 2.96.
    >
    > It gave only one single error:
    >
    > groupdb/mapping_tdb.c: In function `add_mapping_entry':
    > groupdb/mapping_tdb.c:130: incompatible types in return
    >
    > The offending line says:
    >
    > return NULL;
    >
    > in a function of type 'bool'.
    >
    > Is this a bug, or am I using a far too old compiler?


    It's a bug that got missed from a merge from 3.2-test
    to 3.2-stable (ie. we've already fixed it in 3.2-test).
    It'll be fixed in the next point release, thanks !

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

+ Reply to Thread