Menu

mysql patch for new procmail

GG
2003-09-22
2003-11-25
  • GG

    GG - 2003-09-22

    hi

    is there any patch for new version of procmail 3.22 available?

    as there is no older version offered on the procmail.org site...
    if there is one, where can I get it?

    I tried to patch the procmail with the patcher I got intended for procmail 3.13, :) , it won't compile,,, here is the result from the patcher:

    root@host:/tmp/work/procmail-3.22>patch -p1 < procmail+mysql-0.2.2.patch
    patching file src/Makefile.0
    Hunk #1 FAILED at 2.
    1 out of 1 hunk FAILED -- saving rejects to file src/Makefile.0.rej
    patching file Makefile
    patching file src/authenticate.c
    Hunk #1 succeeded at 21 (offset 2 lines).
    Hunk #2 succeeded at 74 (offset 4 lines).
    Hunk #3 succeeded at 87 (offset 2 lines).
    patching file src/get_mysql_pwd.c
    patching file src/get_mysql_uid.c
    patching file src/get_mysql_conf.c
    patching file src/mysql_procmail.h

    root@host:/tmp/work/procmail-3.22>make install
    /bin/sh ./initmake /bin/sh "/bin/sh" "/bin/rm -f" "mv -f" "ln" \
    "-lm -ldir -lx -lsocket -lnet -linet -lnsl_s -lnsl_i -lnsl -lsun -lgen -lsockdns -ldl" \
    "/lib /usr/lib /usr/local/lib" \
    /dev/null "make" o \
    "cc" "-O  " "-s -lmysqlclient " "procmail lockfile formail mailstat" \
    "procmail formail lockfile" \
    "procmailrc procmailsc procmailex" "src man" \
    "/usr/bin" \
    "strip"
    Whoeaaa!  There's something fishy going on here.
    You have a look and see if you detect anything uncanny:
    *******************************************************
    cc -O _autotst.c -o _autotst -lmysqlclient
    /usr/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    ::::
    cc -O _autotst.c -o _autotst -lmysqlclient
    /usr/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    ::::
    gcc -O _autotst.c -o _autotst -lmysqlclient
    /usr/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    ::::
    *******************************************************
    I suggest you take a look at the definition of CFLAGS* and CC
    in the Makefile before you try make again.
    make: *** [init] Error 1

     
    • Anonymous

      Anonymous - 2003-11-25

      try to copy your mysqlclient object file to your lib directory.
      (eg) cp libmysqlclient.a libmysqlclient.so /lib
      -----
      also add this in src/Makefile.0   on LF_OBJ  PM_OBJ.

      get_mysql_pwd.$(O) get_mysql_uid.$(O)  get_mysql_conf.$(O)

      else man ldconfig =)

      compiled ok on rh9 procmail-3.22+procmail_mysql-0.2.2
      --just a concern netizen (",)

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.