#47 0.6.0: in_addr_t undeclared in util.c

v0.6.0
closed-fixed
Compilation (9)
5
2008-03-13
2007-06-13
terry white
No

when compiling 0.6.0 with gcc (egcs-2.91.66) i got an undefined error for "in_addr_t" in the "dkf_inet_ntoa" function of "dk-filter/util.c".

dkf_inet_ntoa(struct in_addr a, char *buf, size_t buflen)
{

-------------v
in_addr_t addr;
assert(buf != NULL);
addr = ntohl(a.s_addr);
return snprintf(buf, buflen, "%d.%d.%d.%d",
(addr >> 24), (addr >> 16) & 0xff,
(addr >> 8) & 0xff, addr & 0xff);
}

when asked, msk-of-sendmail.com suggested:

Change that "in_addr_t" to a "u_int32_t" or just "unsigned long" and it should work. i chose to use "unsigned long",and it did.

make clean, make, reported an unrecognized option "-R/usr/local/ssl/lib" in 'devtools/Site/site.config.m4'
changed:
APPENDDEF(`confLIBDIRS', `-L/usr/local/ssl/lib -R/usr/local/ssl/lib')
to:
APPENDDEF(`confLIBDIRS', `-L/usr/local/ssl/lib')
problem solved ...

Discussion

  • terry white

    terry white - 2007-06-13

    verbose version ...

     
  • Anonymous - 2007-07-13
    • assigned_to: nobody --> sm-msk
     
  • Anonymous - 2008-03-05

    Logged In: YES
    user_id=1048957
    Originator: NO

    I'll be going with uint32_t in the upcoming release.

     
  • Anonymous - 2008-03-05
    • milestone: --> v0.6.0
     
  • Anonymous - 2008-03-13

    Logged In: YES
    user_id=1048957
    Originator: NO

    v1.0.0 released, containing this fix.

     
  • Anonymous - 2008-03-13
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks