Compile error: FreeBSD 4.8, gcc 2.95.4 20020320

1. Compile error message

   /usr/home/webmaster/dkim-milter-0.1.1/obj.FreeBSD.4.8-RELEASE.i386/libar/libar.a(ar.o): In function `ar_init':
   ar.o(.text+0x1075): undefined reference to `ar_res_init'
   *** Error code 1

   Stop in /usr/home/webmaster/dkim-milter-0.1.1/obj.FreeBSD.4.8-RELEASE.i386/dkim-filter.
   *** Error code 1

   Stop in /usr/home/webmaster/dkim-milter-0.1.1.

2. Patch

   diff -c fix.c.org fix.c

   *** fix.c.org Tue Jul 19 07:27:37 2005
   --- fix.c Wed Aug 31 11:21:26 2005
   ***************
   *** 142,148 ****
           return 0;
     }
     #else /* NONSTANDARD_RES_STRUCTURE */
   ! # define ar_res_init res_init
     #endif /* NONSTANDARD_RES_STRUCTURE */
  
     #ifdef TEST
   --- 142,152 ----
           return 0;
     }
     #else /* NONSTANDARD_RES_STRUCTURE */
   ! int
   ! ar_res_init(void)
   ! {
   ! return res_init();
   ! }
     #endif /* NONSTANDARD_RES_STRUCTURE */
  
     #ifdef TEST

Thanks.



---------------------------------------------------------

Choi, Sung-hoon

DreamWiz Inc. - Development Team/Senior Manager

Major : Mail/Web/Network/System/Security
Phone : +82-2-3434-3541
MSN : shoon@dreamwiz.com
WWW : http://my.dreamwiz.com/shoon/
E-mail: shoon@dreamwiz.com