Menu

#644 netatalk-3.11.1 failed on CentOS7.3.1611 at afpd load

None
wont-fix
HAT
krb5_xfree (1)
1
2024-08-03
2017-07-13
admkazuya
No

Hi, I try to install netatalk-3.11.1, but /usr/lib64/netatalk//uams_gss.so: undefined symbol: krb5_xfree happend agein.
I remenber this bug happened in 3.1.8
Any one can help?

Discussion

  •  HAT

    HAT - 2017-07-13

    I have no idea.

     
  •  HAT

    HAT - 2017-07-13

    etc/uams/uams_gss.c:

    #ifdef HAVE_KRB5_FREE_UNPARSED_NAME
                krb5_free_unparsed_name(context, principal);
    #else
                krb5_xfree(principal);
    #endif
    
    #ifdef HAVE_KRB5_FREE_ERROR_MESSAGE
            krb5_free_error_message(context, error_msg);
    #else
            krb5_xfree(error_msg);
    #endif
    

    If these are defined, there will be no problem.

    The following part should probably be corrected.

    macros/netatalk.m4:

    dnl Check for krb5_free_unparsed_name and krb5_free_error_message
    save_CFLAGS="$CFLAGS"
    save_LIBS="$LIBS"
    CFLAGS="$KRB5_CFLAGS"
    LIBS="$KRB5_LIBS"
    AC_CHECK_FUNCS([krb5_free_unparsed_name krb5_free_error_message krb5_free_keytab_entry_contents krb5_kt_free_entry])
    CFLAGS="$save_CFLAGS"
    LIBS="$save_LIBS"
    ])
    
     
  • Bean Orion

    Bean Orion - 2017-08-23

    Hi, Did you have any joy with this ?

    I'm also having this issue which is stopping me from using kerberos with afp.

    Any help or pointers as to what to change in the source files or compilation files would be greatly appreciated.

     
  •  HAT

    HAT - 2017-10-08

    same as #610 "uams_gss.so: undefined symbol: krb5_xfree"
    https://sourceforge.net/p/netatalk/bugs/610/

     
  •  HAT

    HAT - 2017-10-08

    This problem seems to occur at running configure script.
    I tried configure using tarball. The options are as follows.

    ./configure \
            --localstatedir=/usr/local/lib       \
            --with-acl                                  \
            --with-cracklib                             \
            --with-docbook=/usr/share/sgml/docbook/xsl-stylesheets-1.78.1/ \
            --with-kerberos                             \
            --with-libgcrypt                            \
            --with-pam                                  \
            --with-pkgconfdir=/etc/netatalk/  \
            --with-shadow                               \
            --with-tbd=no                               \
            --with-uams-path=/usr/local/lib/netatalk        \
            --enable-pgp-uam                            \
            --enable-shared                             \
            --enable-krbV-uam                           \
            --enable-overwrite                          \
            --with-init-style=redhat-systemd            \
            --with-spotlight                            \
            --with-tracker-pkgconfig-version=1.0  \
            --with-dbus-daemon=/usr/bin/dbus-daemon \
            --without-libevent                          \
            --with-libevent-header=/usr/include/       \
            --with-libevent-lib=/usr/lib/              \
            --without-tdb                               \
            --with-bdb                                  \
            --disable-silent-rules                      \
            --disable-static
    

    I compared config.h. See attached files.
    If using srpm, there is no "#define HAVE_KRB5_FREE_UNPARSED_NAME 1".

    I wonder why.

     

    Last edit: HAT 2017-10-08
  • Bean Orion

    Bean Orion - 2017-11-14

    I've tried compiling from the srpm, you are right there is a difference in config.h but I still can't get krb auth running from an srpm compiled version(different issue). I gues krb auth is not possible with the latest netatalk version.

     
  • Daniel Markstedt

    Was this issue specific to when compiling from the srpm?

    I set up a CentOS Stream 9 environment to test this and was able to get afpd to load uams_gss.so without error, using the latest netatalk main branch development code.

    The resulting config.h looked like the tarball example that HAT provided.

     
  • Daniel Markstedt

    This bug has been obsoleted by the Meson build system.

     
  • Daniel Markstedt

    • status: open --> wont-fix
    • Group: -->
     

Log in to post a comment.