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

The error is changed

General
Koichi
2005-12-09
2013-04-23
  • Koichi
    Koichi
    2005-12-09

    last time I wrote paths.h in the message.
    I changed site.config.m4. added -DSOLARIS=20800
    The error is here;

    gcc -O -I. -I../../include  -I/usr/local/bind/include -I/usr/local/ssl/include -I../libdk/
    -DMAP_REGEX -DNEWDB -DSOLARIS=20800 -D_REENTRANT -DXP_MT  -c  dk-filter.c
    dk-filter.c:169: `MAXHOSTNAMELEN' undeclared here (not in a function)
    dk-filter.c:169: size of array `cctx_host' has non-integer type
    *** Error code 1
    make: Fatal error: Command failed for target `dk-filter.o'
    Current working directory /usr/local/src/domainkeys/dk-milter-0.3.1/obj.SunOS.5.8.sun4/dk-
    filter
    *** Error code 1
    make: Fatal error: Command failed for target `all'

     
    • (Sorry for the long delay in replying.  I don't check the forums very often.  You can try using the trackers for more rapid responses.)

      -DSOLARIS=20800 is present in devtools/OS/SunOS.5.8, or should be, and your build should be including it.  Strange that it isn't.

      On my test Solaris 8 machine, MAXHOSTNAMELEN is defined in <netdb.h> which dk-filter.c does include.  Does it not appear in yours?