DIYMacServer » Courier

3 posts

courier-authlib-0.60.2: error in mail.log: Symbol not found: _auth_mysql

started at 29 Nov 2007
started by nerdcoder
last reply from nerdcoder
  • nerdcoder
    29 Nov 2007
    #

    After compiling everything succesfully on Mac OS X Leopard (10.5) I
    get this error in the mail.log when starting authdaemond:

    Nov 29 03:23:05 XXX authdaemond[88436]: dlopen(/XXX/lib/courier-
    authlib/libauthmysql.0.so, 9): Symbol not found: _auth_mysql

    Everything seems to compile nicely.

    It even knows where to find the compiled mysql - I tried to move it and I got another error.
    I have now tried with mysql's own precompiled Mac tarball.
    Besides that I have tried a variety of configurations and compile
    methods.

    This is one of them (I have tried compiling with servers to and
    without any special CFLAGS or other stuff:

    CC=gcc CFLAGS=\"-O3 -fno-omit-frame-pointer\" CXX=gcc CXXFLAGS=\"-O3 -fno-
    omit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti\" ./
    configure --prefix=/XXX --with-extra-charsets=complex --enable-thread-
    safe-client --enable-shared --without-server
    make
    sudo make install

    This seems to work for courier-authlib:

    CC=\"\" CXX=\"\" CXXFLAGS=\"\"
    CFLAGS=\"-arch i386\" ./configure --with-authmysql --without-authpam --
    with-mysql-libs=/XXX/lib/mysql --with-mysql-includes=/XXX/include/
    mysql --with-mailuser=_postfix --with-mailgroup=_postfix --prefix=/XXX
    make
    sudo make install

    I have set up the authdaemonrc and authmysqlrc just as they are on a
    working server I have + the new setup connects to the already running
    and working mysql db.

    Any idea what is going on?

    Thanks!
    Dan Larsen

    P.S: I even tested 0.60.1 and 0.60.0

  • 29 Nov 2007
    #

    Put the line

    export MACOSX_DEPLOYMENT_TARGET=10.5

    before the configure line and do a make and sudo make install and all will be fine!

    There is still an issue with IMAP 4.3.0, try 4.2.1 that'll work!

  • nerdcoder
    29 Nov 2007
    #

    Hi Richard!

    Thank you so much for your comment!
    First I tried and it didn't work... I accidently delited the "10.5" when copying to my sh script... Doh!

    Well... Now it starts without any errors - on to the real testing now!

    Thank you for your time! :-)

    Best regards
    Dan Larsen

Reply

You must log in to post.