Error in building Kerberos on Slackware 10.1 - Kerberos

This is a discussion on Error in building Kerberos on Slackware 10.1 - Kerberos ; Hi I am trying to build MIT Kerberos 5 on a Slackware server which will act as an OpenAFS server (and a Kerberos application-server client). (I need only the client, but to be certain that I do not miss any ...

+ Reply to Thread
Results 1 to 4 of 4

Thread: Error in building Kerberos on Slackware 10.1

  1. Error in building Kerberos on Slackware 10.1

    Hi

    I am trying to build MIT Kerberos 5 on a Slackware server which will act as
    an OpenAFS server (and a Kerberos application-server client).

    (I need only the client, but to be certain that I do not miss any include
    files, I executed the build in the src/ and not the src/clients directory -
    please let me know if this is unnecessary).

    Configure step :

    ./configure --prefix=/usr/local/kerberos5 --without-krb4 --with-system-db
    --with-tcl=/usr/include/ --enable-athena

    Build :

    make :

    ...
    ...
    ...

    gcc -fPIC -DSHARED -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
    -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
    -DKRB5_PRIVATE=1 -DKRB5_DEPRECATED=1 -DKRB5_DNS_LOOKUP_KDC=1
    -DKRB5_DNS_LOOKUP=1 -DHAVE_LIBRESOLV=1 -DHAVE_RES_NSEARCH=1
    -DHAVE_RES_SEARCH=1 -DHAVE_DN_SKIPNAME=1 -DHAVE_PRAGMA_WEAK_REF=1
    -DDELAY_INITIALIZER=1 -DCONSTRUCTOR_ATTR_WORKS=1 -DDESTRUCTOR_ATTR_WORKS=1
    -DENABLE_THREADS=1 -DHAVE_PTHREAD=1
    -DHAVE_PTHREAD_RWLOCK_INIT_IN_THREAD_LIB=1 -DSTDC_HEADERS=1
    -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
    -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
    -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SRAND48=1
    -DHAVE_SRAND=1 -DHAVE_SRANDOM=1 -DHAVE_UMASK=1 -DHAVE_REGCOMP=1
    -I../../include -I./../../include -I../../include/krb5
    -I./../../include/krb5 -g -O2 -Wall -Wmissing-prototypes -Wcast-qual
    -Wcast-align -Wconversion -Wshadow -pedantic -pthread -c kdb_db2.c -o
    kdb_db2.so.o && mv -f kdb_db2.so.o kdb_db2.so
    kdb_db2.c: In function `k5db2_dbopen':
    kdb_db2.c:207: error: `BTREEINFO' undeclared (first use in this function)
    kdb_db2.c:207: error: (Each undeclared identifier is reported only once
    kdb_db2.c:207: error: for each function it appears in.)
    kdb_db2.c:207: error: parse error before "bti"
    kdb_db2.c:208: error: `HASHINFO' undeclared (first use in this function)
    kdb_db2.c:210: error: `bti' undeclared (first use in this function)
    kdb_db2.c:218: error: `hashi' undeclared (first use in this function)
    kdb_db2.c:225: warning: implicit declaration of function `dbopen'
    kdb_db2.c:227: warning: assignment makes pointer from integer without a cast
    kdb_db2.c:237: warning: assignment makes pointer from integer without a cast
    kdb_db2.c: In function `krb5_db_set_name':
    kdb_db2.c:421: error: too few arguments to function
    kdb_db2.c: In function `krb5_db_unlock':
    kdb_db2.c:585: error: too few arguments to function
    kdb_db2.c: In function `krb5_db_create':
    kdb_db2.c:632: error: too few arguments to function
    kdb_db2.c: In function `krb5_db_rename':
    kdb_db2.c:813: error: too few arguments to function
    kdb_db2.c: In function `krb5_db_get_principal':
    kdb_db2.c:926: warning: passing arg 2 of pointer to function from
    incompatible pointer type
    kdb_db2.c:926: error: too few arguments to function
    kdb_db2.c: In function `krb5_db_put_principal':
    kdb_db2.c:1018: warning: passing arg 2 of pointer to function from
    incompatible pointer type
    kdb_db2.c:1018: error: too few arguments to function
    kdb_db2.c: In function `krb5_db_delete_principal':
    kdb_db2.c:1070: warning: passing arg 2 of pointer to function from
    incompatible pointer type
    kdb_db2.c:1070: error: too few arguments to function
    kdb_db2.c:1105: warning: passing arg 2 of pointer to function from
    incompatible pointer type
    kdb_db2.c:1105: error: too few arguments to function
    kdb_db2.c:1110: warning: passing arg 2 of pointer to function from
    incompatible pointer type
    kdb_db2.c:1110: error: too few arguments to function
    kdb_db2.c: In function `krb5_db_iterate_ext':
    kdb_db2.c:1154: error: structure has no member named `seq'
    kdb_db2.c:1155: error: `R_LAST' undeclared (first use in this function)
    kdb_db2.c:1155: error: `R_FIRST' undeclared (first use in this function)
    kdb_db2.c:1176: error: structure has no member named `seq'
    kdb_db2.c:1177: error: `R_PREV' undeclared (first use in this function)
    kdb_db2.c:1177: error: `R_NEXT' undeclared (first use in this function)
    make[2]: *** [kdb_db2.so] Error 1
    make[2]: Leaving directory `/usr/local/src/krb5-1.4.1/src/lib/kdb'
    make[1]: *** [all-recurse] Error 1
    make[1]: Leaving directory `/usr/local/src/krb5-1.4.1/src/lib'
    make: *** [all-recurse] Error 1


    Two questions :

    1. Is my attempt to build everything in src/ (instead of just src/clients)
    an overkill ?

    2. What is going wrong above ?

    Thanks.

  2. Re: Error in building Kerberos on Slackware 10.1

    Madhusudan Singh wrote:
    > Hi
    >
    > I am trying to build MIT Kerberos 5 on a Slackware server which will act as
    > an OpenAFS server (and a Kerberos application-server client).
    >
    > (I need only the client, but to be certain that I do not miss any include
    > files, I executed the build in the src/ and not the src/clients directory -
    > please let me know if this is unnecessary).
    >
    > Configure step :
    >
    > ./configure --prefix=/usr/local/kerberos5 --without-krb4 --with-system-db
    > --with-tcl=/usr/include/ --enable-athena
    >
    > Build :
    >
    > make :
    >
    > ...
    > ...
    > ...
    >
    > gcc -fPIC -DSHARED -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
    > -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
    > -DKRB5_PRIVATE=1 -DKRB5_DEPRECATED=1 -DKRB5_DNS_LOOKUP_KDC=1
    > -DKRB5_DNS_LOOKUP=1 -DHAVE_LIBRESOLV=1 -DHAVE_RES_NSEARCH=1
    > -DHAVE_RES_SEARCH=1 -DHAVE_DN_SKIPNAME=1 -DHAVE_PRAGMA_WEAK_REF=1
    > -DDELAY_INITIALIZER=1 -DCONSTRUCTOR_ATTR_WORKS=1 -DDESTRUCTOR_ATTR_WORKS=1
    > -DENABLE_THREADS=1 -DHAVE_PTHREAD=1
    > -DHAVE_PTHREAD_RWLOCK_INIT_IN_THREAD_LIB=1 -DSTDC_HEADERS=1
    > -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
    > -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
    > -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SRAND48=1
    > -DHAVE_SRAND=1 -DHAVE_SRANDOM=1 -DHAVE_UMASK=1 -DHAVE_REGCOMP=1
    > -I../../include -I./../../include -I../../include/krb5
    > -I./../../include/krb5 -g -O2 -Wall -Wmissing-prototypes -Wcast-qual
    > -Wcast-align -Wconversion -Wshadow -pedantic -pthread -c kdb_db2.c -o
    > kdb_db2.so.o && mv -f kdb_db2.so.o kdb_db2.so
    > kdb_db2.c: In function `k5db2_dbopen':
    > kdb_db2.c:207: error: `BTREEINFO' undeclared (first use in this function)
    > kdb_db2.c:207: error: (Each undeclared identifier is reported only once
    > kdb_db2.c:207: error: for each function it appears in.)
    > kdb_db2.c:207: error: parse error before "bti"
    > kdb_db2.c:208: error: `HASHINFO' undeclared (first use in this function)
    > kdb_db2.c:210: error: `bti' undeclared (first use in this function)
    > kdb_db2.c:218: error: `hashi' undeclared (first use in this function)
    > kdb_db2.c:225: warning: implicit declaration of function `dbopen'
    > kdb_db2.c:227: warning: assignment makes pointer from integer without a cast
    > kdb_db2.c:237: warning: assignment makes pointer from integer without a cast
    > kdb_db2.c: In function `krb5_db_set_name':
    > kdb_db2.c:421: error: too few arguments to function
    > kdb_db2.c: In function `krb5_db_unlock':
    > kdb_db2.c:585: error: too few arguments to function
    > kdb_db2.c: In function `krb5_db_create':
    > kdb_db2.c:632: error: too few arguments to function
    > kdb_db2.c: In function `krb5_db_rename':
    > kdb_db2.c:813: error: too few arguments to function
    > kdb_db2.c: In function `krb5_db_get_principal':
    > kdb_db2.c:926: warning: passing arg 2 of pointer to function from
    > incompatible pointer type
    > kdb_db2.c:926: error: too few arguments to function
    > kdb_db2.c: In function `krb5_db_put_principal':
    > kdb_db2.c:1018: warning: passing arg 2 of pointer to function from
    > incompatible pointer type
    > kdb_db2.c:1018: error: too few arguments to function
    > kdb_db2.c: In function `krb5_db_delete_principal':
    > kdb_db2.c:1070: warning: passing arg 2 of pointer to function from
    > incompatible pointer type
    > kdb_db2.c:1070: error: too few arguments to function
    > kdb_db2.c:1105: warning: passing arg 2 of pointer to function from
    > incompatible pointer type
    > kdb_db2.c:1105: error: too few arguments to function
    > kdb_db2.c:1110: warning: passing arg 2 of pointer to function from
    > incompatible pointer type
    > kdb_db2.c:1110: error: too few arguments to function
    > kdb_db2.c: In function `krb5_db_iterate_ext':
    > kdb_db2.c:1154: error: structure has no member named `seq'
    > kdb_db2.c:1155: error: `R_LAST' undeclared (first use in this function)
    > kdb_db2.c:1155: error: `R_FIRST' undeclared (first use in this function)
    > kdb_db2.c:1176: error: structure has no member named `seq'
    > kdb_db2.c:1177: error: `R_PREV' undeclared (first use in this function)
    > kdb_db2.c:1177: error: `R_NEXT' undeclared (first use in this function)
    > make[2]: *** [kdb_db2.so] Error 1
    > make[2]: Leaving directory `/usr/local/src/krb5-1.4.1/src/lib/kdb'
    > make[1]: *** [all-recurse] Error 1
    > make[1]: Leaving directory `/usr/local/src/krb5-1.4.1/src/lib'
    > make: *** [all-recurse] Error 1
    >
    >
    > Two questions :
    >
    > 1. Is my attempt to build everything in src/ (instead of just src/clients)
    > an overkill ?
    >
    > 2. What is going wrong above ?
    >
    > Thanks.


    My guess would be that by including "--with-system-db" to the
    configure command, your make process is using an incompatible libdb
    (the Berkeley DB that is found on your system).
    MIT Kerberos comes with it's own libdb, why don't you just use that?

    Cheers, Eric

  3. Re: Error in building Kerberos on Slackware 10.1

    Madhusudan Singh wrote:

    > I am trying to build MIT Kerberos 5 on a Slackware server which will
    > act as an OpenAFS server (and a Kerberos application-server client).


    I have Kerberos running successfully on

    One question:

    > ./configure --prefix=/usr/local/kerberos5 --without-krb4 \
    > --with-system-db --with-tcl=/usr/include/ \
    > --enable-athena


    Why "--with-system-db"?

    I have used the following options to configure (not including the
    installation-path related options), with no trouble:

    ./configure ... \
    --without-krb4 \
    --enable-shared \
    --enable-kdc-replay-cache

    > 2. What is going wrong above ?


    I would recommend removing the "--with-system-db" configure option and
    see if you have the same trouble.

    --
    ----------------------------------------------------------------------
    Sylvain Robitaille syl@alcor.concordia.ca

    Systems analyst Concordia University
    Instructional & Information Technology Montreal, Quebec, Canada
    ----------------------------------------------------------------------

  4. Re: Error in building Kerberos on Slackware 10.1

    Madhusudan Singh wrote:

    > I am trying to build MIT Kerberos 5 on a Slackware server which will
    > act as an OpenAFS server (and a Kerberos application-server client).


    I have Kerberos running successfully on Slackware 10.0.0, so I can
    confirm that it certainly works.

    One question:

    > ./configure --prefix=/usr/local/kerberos5 --without-krb4 \
    > --with-system-db --with-tcl=/usr/include/ \
    > --enable-athena


    Why "--with-system-db"?

    I have used the following options to configure (not including the
    installation-path related options), with no trouble:

    ./configure ... \
    --without-krb4 \
    --enable-shared \
    --enable-kdc-replay-cache

    > 2. What is going wrong above ?


    I would recommend removing the "--with-system-db" configure option and
    see if you have the same trouble.

    --
    ----------------------------------------------------------------------
    Sylvain Robitaille syl@alcor.concordia.ca

    Systems analyst Concordia University
    Instructional & Information Technology Montreal, Quebec, Canada
    ----------------------------------------------------------------------

+ Reply to Thread