pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/38983: sendmail doesn't compile on i386-current



I had the same situation on 4.99.72 (macppc).
If you apply the patch attached, you may compile it.
(The patch changes 'bool' to 'int'.)

I don't belive this patch is the right fix, but at least
you may dig the problem anyway.

Following part may not work correctly.

(...mail/sendmail)> cat -n work/sendmail-8.14.3/include/sm/gen.h | sed -n 54,63p
    54  # if SM_CONF_STDBOOL_H
    55  #  include <stdbool.h>
    56  # else /* SM_CONF_STDBOOL_H */
    57  #  ifndef __cplusplus
    58      typedef int bool;
    59  #   define false        0
    60  #   define true         1
    61  #   define __bool_true_false_are_defined        1
    62  #  endif /* ! __cplusplus */
    63  # endif /* SM_CONF_STDBOOL_H */
ttyp1:makoto@bologna 20:57:09/081112(...mail/sendmail)> 

---
Makoto Fujiwara, 
Chiba, Japan, Narita Airport and Disneyland prefecture.

Index: distinfo
===================================================================
RCS file: /e/cvsync/cvsync/pkgsrc/mail/sendmail/distinfo,v
retrieving revision 1.37
diff -u -a -r1.37 distinfo
--- distinfo    14 Jun 2008 08:58:06 -0000      1.37
+++ distinfo    12 Nov 2008 11:50:47 -0000
@@ -15,3 +15,4 @@
 SHA1 (patch-aj) = e65e6fe44380de2f9c397c1a97677eb4ad285433
 SHA1 (patch-al) = f5d8cef8c4abba5d5ae813b754c16037190a7ef1
 SHA1 (patch-am) = d84eedbff0f037c1db341255dc9e1877866f12c7
+SHA1 (patch-an) = 02fed9150e9b38fec837b1ac28c5e8a65686a8c0
Index: patches/patch-an
===================================================================
RCS file: patches/patch-an
diff -N patches/patch-an
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-an    12 Nov 2008 11:50:40 -0000
@@ -0,0 +1,31 @@
+--- sendmail-8.14.3/libsm/heap.c-orig  2004-08-04 05:32:00.000000000 +0900
++++ libsm/heap.c       2008-11-12 20:46:44.000000000 +0900
+@@ -466,7 +466,7 @@
+ **            true iff successfully registered (not yet in table).
+ */
+ 
+-bool
++int
+ sm_heap_register(ptr, size, tag, num, group)
+       void *ptr;
+       size_t size;
+--- sendmail-8.14.3/libsm/debug.c-orig 2004-08-04 05:10:26.000000000 +0900
++++ libsm/debug.c      2008-11-12 20:46:27.000000000 +0900
+@@ -190,7 +190,7 @@
+ **            none.
+ */
+ 
+-static void
++void
+ sm_debug_reset()
+ {
+       SM_DEBUG_T *debug;
+@@ -385,7 +385,7 @@
+ **            Ensures that the debug object is initialized.
+ */
+ 
+-bool
++int
+ sm_debug_loadactive(debug, level)
+       SM_DEBUG_T *debug;
+       int level;


Home | Main Index | Thread Index | Old Index