Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#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 ...

     
    Attachments
    • assigned_to: nobody --> sm-msk
     
  • Logged In: YES
    user_id=1048957
    Originator: NO

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

     
    • milestone: --> v0.6.0
     
  • Logged In: YES
    user_id=1048957
    Originator: NO

    v1.0.0 released, containing this fix.

     
    • status: open --> closed-fixed