Re: [Proftpd-user] where to find mod_codeconv ? - proftpd

This is a discussion on Re: [Proftpd-user] where to find mod_codeconv ? - proftpd ; > mod_sql_tds.c: In function 'cmd_open': > mod_sql_tds.c:442: error: too few arguments to function 'pr_timer_add' > make[1]: *** [mod_sql_tds.o] Error 1 > make[1]: Leaving directory `/home/proftpd-1.3.2rc1/modules' > make: *** [modules] Error 2 > Here is the code block [ from mod_sql_tds.c ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Re: [Proftpd-user] where to find mod_codeconv ?

  1. Re: [Proftpd-user] where to find mod_codeconv ?


    > mod_sql_tds.c: In function 'cmd_open':
    > mod_sql_tds.c:442: error: too few arguments to function 'pr_timer_add'
    > make[1]: *** [mod_sql_tds.o] Error 1
    > make[1]: Leaving directory `/home/proftpd-1.3.2rc1/modules'
    > make: *** [modules] Error 2


    > Here is the code block [ from mod_sql_tds.c ] that make is failing on:
    >* /* set up our timer if necessary */
    >* if (entry->ttl > 0) {
    >*** entry->timer = pr_timer_add(entry->ttl, -1,
    >**************************** &sql_tds_module,
    >**************************** _sql_timer_callback);


    This is due to a slight API change in 1.3.2rc1. To make the code compile,
    change the mod_sql_tds.c to do:

    * if (entry->ttl > 0) {
    *** entry->timer = pr_timer_add(entry->ttl, -1,
    **************************** &sql_tds_module,
    **************************** _sql_timer_callback,
    "TDS connection ttl");

    The additional string parameter is used for trace logging of timers.

    Cheers,
    TJ

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    * I wanted only to try to live in accord with the promptings which came from
    * my true self.* Why was that so very difficult?
    *
    * * -Herman Hesse
    *
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


    -------------------------------------------------------------------------
    Check out the new SourceForge.net Marketplace.
    It's the best place to buy or sell services for
    just about anything Open Source.
    http://sourceforge.net/services/buy/index.php
    _______________________________________________
    ProFTPD Users List*
    Unsubscribe problems?
    http://www.proftpd.org/list-unsub.html





    --

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Where is the Life we have lost in living?
    Where is the wisdom we have lost in knowledge?
    Where is the knowledge we have lost in information?

    -T.S. Eliot

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


    -------------------------------------------------------------------------
    Check out the new SourceForge.net Marketplace.
    It's the best place to buy or sell services for
    just about anything Open Source.
    http://sourceforge.net/services/buy/index.php
    _______________________________________________
    ProFTPD Users List
    Unsubscribe problems?
    http://www.proftpd.org/list-unsub.html


  2. Re: [Proftpd-user] where to find mod_codeconv ?


    On Jun 5, 2008, at 1:56 PM, TJ Saunders wrote:

    > This is due to a slight API change in 1.3.2rc1. To make the code
    > compile,
    > change the mod_sql_tds.c to do:
    >
    > if (entry->ttl > 0) {
    > entry->timer = pr_timer_add(entry->ttl, -1,
    > &sql_tds_module,
    > _sql_timer_callback,
    > "TDS connection ttl");
    >
    > The additional string parameter is used for trace logging of timers.



    TJ Any other mod_sql changes that might affect mod_sql_tds? I will
    update the code in a bit to deal with any of the changes.

    On a side note, if you use FreeBSD and have a recent enough ports
    tree, the WITH_TDS option will build Proftpd with mod_sql_tds right
    out of the port, pulling in FreeTDS as a depend, as I finally got
    around to submitting it to the ports tree.

    --
    Patrick Muldoon
    Network/Software Engineer
    INOC (http://www.inoc.net)
    PGPKEY (http://www.inoc.net/~doon)
    Key ID: 0x370D752C

    Foolproof operation: All parameters are hard coded.



    -------------------------------------------------------------------------
    Check out the new SourceForge.net Marketplace.
    It's the best place to buy or sell services for
    just about anything Open Source.
    http://sourceforge.net/services/buy/index.php
    _______________________________________________
    ProFTPD Users List
    Unsubscribe problems?
    http://www.proftpd.org/list-unsub.html


+ Reply to Thread