Package: bsdmainutils
Severity: normal
Tags: patch
When building 'bsdmainutils' on amd64 with gcc-4.0,
I get the following error:
cc -include ../../freebsd.h -g -O2 -c -o calendar.o calendar.c
In file included from calendar.c:53:
calendar.h:37: error: array type has incomplete element type
make[2]: *** [calendar.o] Error 1
make[1]: *** [all] Error 2
make[1]: Leaving directory `/bsdmainutils-6.0.17'
make: *** [build-stamp] Error 2
With the attached patch 'bsdmainutils' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/bsdmainutils-6.0.17/usr.bin/calendar/calendar.h
./usr.bin/calendar/calendar.h
--- ../tmp-orig/bsdmainutils-6.0.17/usr.bin/calendar/calendar.h 2004-11-01
18:00:48.000000000 +0100
+++ ./usr.bin/calendar/calendar.h 2005-03-15 20:18:00.679014604 +0100
@@ -34,7 +34,7 @@
extern int doall;
extern int bodun_always;
extern time_t f_time;
-extern struct iovec header[];
+extern struct iovec *header;
extern struct tm *tp;
extern char *calendarFile;
extern char *calendarHome;
diff -urN ../tmp-orig/bsdmainutils-6.0.17/usr.bin/calendar/io.c
./usr.bin/calendar/io.c
--- ../tmp-orig/bsdmainutils-6.0.17/usr.bin/calendar/io.c 2004-11-01
18:00:48.000000000 +0100
+++ ./usr.bin/calendar/io.c 2005-03-15 20:18:13.497530027 +0100
@@ -60,7 +60,7 @@
#include "calendar.h"
-struct iovec header[] = {
+struct iovec *header = {
{"From: ", 6},
{NULL, 0},
{" (Reminder Service)\nTo: ", 24},
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]