Hi All

I've been trying to get Postfix to compile on a Gumstix Verdex, and succeeded. But when I run postfix, it crashes with a seg-fault.
It turns out that it's libdb-4.5.so that causes the seg-fault. The short test program in the end of this mail also seg-faults, even before the first line is executed. I've build libdb from the latest buildroot version. Can anyone help me with this problem?

Cheers
Rasmus


The test program (from the Berkeley db documentation):

#include <stdio.h>
#include <db.h>

int main() {
    printf("test\n");

    DB *dbp;           /* DB structure handle */
    u_int32_t flags;   /* database open flags */
    int ret;           /* function return value */

    /* Initialize the structure. This
     * database is not opened in an environment,
     * so the environment pointer is NULL. */
    ret = db_create(&dbp, NULL, 0);
    if (ret != 0) {
      /* Error handling goes here */
    }

    /* Database open flags */
    flags = DB_CREATE;    /* If the database does not exist,
                       * create it.*/

    /* open the database */
    ret = dbp->open(dbp,        /* DB structure pointer */
                NULL,       /* Transaction pointer */
                "my_db.db", /* On-disk file that holds the database. */
                NULL,       /* Optional logical database name */
                DB_BTREE,   /* Database access method */
                flags,      /* Open flags */
                0);         /* File mode (using defaults) */
    if (ret != 0) {
      /* Error handling goes here */
    }


    return 0;
}