#53 CVS datastore.c fails to compile under Solaris 2.5

closed
None
7
2014-09-28
2003-07-29
No

This error occurs when compiling the CVS version of
datastore.c under Solaris 2.5:

datastore.c: In function `db_getvalues':
datastore.c:41: error: `int32_t' undeclared (first use
in this function)
datastore.c:41: error: (Each undeclared identifier is
reported only once
datastore.c:41: error: for each function it appears in.)
datastore.c:41: error: parse error before "val"
datastore.c:43: error: parse error before "val"

Discussion

  • Matthias Andree

    Matthias Andree - 2003-07-29

    Logged In: YES
    user_id=2788

    Bob,

    could you attach your config.log and src/config.h files below?

    Do you have /usr/include/inttypes.h and
    /usr/include/sys/inttypes.h files? If so, does the latter
    define int32_t?

    I do not have access to a Solaris 2.5 machine. Solaris 2.6
    and 8 were fine the last time I tried, but I guess that
    doesn't help much.

    Matthias

     
  • Matthias Andree

    Matthias Andree - 2003-07-29
    • priority: 5 --> 7
    • assigned_to: nobody --> m-a
     
  • Bob Friesenhahn

    Bob Friesenhahn - 2003-07-29

    config.log

     
  • Bob Friesenhahn

    Bob Friesenhahn - 2003-07-29

    config.h

     
  • Bob Friesenhahn

    Bob Friesenhahn - 2003-07-29

    Logged In: YES
    user_id=128624

    Solaris 2.5 does not include a /usr/include/sys/inttypes.h file.
    I have configure.ac code which computes the base types for the
    ANSI integral types. I will be happy to contribute this
    code. Since
    few environments support the new ANSI C standard, it is much
    safer for configure to figure this stuff out.

     
  • David Relson

    David Relson - 2003-07-30

    Logged In: YES
    user_id=30510

    Bob,

    Please send your configure.ac code to Matthias
    (m-a@users.sourceforge.net) or to me
    (relson@users.sourceforge.net).

    David

    P.S. For best response to problems, please post them on the
    bogofilter mailing list - bogofilter@aotto.com. Thanks.

     
  • Matthias Andree

    Matthias Andree - 2003-07-30

    Logged In: YES
    user_id=2788

    Please try the attached patch (also mailed to Bob
    Friesenhahn) if you get similar int32_t failures. Against
    current CVS, and also committed to CVS, but SourceForge may
    take up to 24 hours to offer the change in the anonymous
    :pserver: CVS.

     
  • Matthias Andree

    Matthias Andree - 2003-07-30

    add autoconf-supported int32_t detection

     
  • David Relson

    David Relson - 2003-08-26
    • status: open --> closed
     

Log in to post a comment.