ports/69022: [PATCH] mail/mailsync: fix compiling with gcc3.x
Andrey Slusar
vasallia at ukr.net
Wed Jul 14 01:40:19 UTC 2004
>Number: 69022
>Category: ports
>Synopsis: [PATCH] mail/mailsync: fix compiling with gcc3.x
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Jul 14 01:40:18 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Andrey Slusar
>Release: FreeBSD 5.2-CURRENT i386
>Organization:
Santinel
>Environment:
System: FreeBSD santinel.home.ua 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Sat Jul 12 11:05:40 EEST 2008 root at santinel.home.ua:/usr/obj/usr/src/sys/ANRAY i386
>Description:
Mainainer CC'ed.
This port required gcc2.95 on build. I am fixed this and added
supporting user defined ${CFLAGS}.
>How-To-Repeat:
>Fix:
--- mailsync.diff begins here ---
diff -ruN /usr/ports/mail/mailsync/Makefile mailsync/Makefile
--- /usr/ports/mail/mailsync/Makefile Wed Feb 4 07:07:22 2004
+++ mailsync/Makefile Wed Jul 14 04:08:55 2004
@@ -22,7 +22,6 @@
USE_GMAKE= yes
USE_REINPLACE= yes
-USE_GCC= 2.95
ALL_TARGET= default
diff -ruN /usr/ports/mail/mailsync/files/patch-Makefile mailsync/files/patch-Makefile
--- /usr/ports/mail/mailsync/files/patch-Makefile Thu Feb 27 21:54:58 2003
+++ mailsync/files/patch-Makefile Wed Jul 14 04:04:23 2004
@@ -1,5 +1,5 @@
---- Makefile.orig Thu Oct 24 16:03:07 2002
-+++ Makefile Wed Feb 26 23:39:48 2003
+--- Makefile.orig Thu Oct 24 17:03:07 2002
++++ Makefile Wed Jul 14 04:02:48 2004
@@ -1,32 +1,32 @@
# compiling with g++-3 worked for me with the commented ## lines - tpo
@@ -22,7 +22,8 @@
##CC = g++-3.0
# flags for your compiler
- CFLAGS = -g -O2 -Wall -I$(C)
+-CFLAGS = -g -O2 -Wall -I$(C)
++CFLAGS += -Wall -fno-operator-names -I$(C)
# required libraries
-LDFLAGS = -lm -lssl -lgssapi_krb5
diff -ruN /usr/ports/mail/mailsync/files/patch-mailsync.c mailsync/files/patch-mailsync.c
--- /usr/ports/mail/mailsync/files/patch-mailsync.c Thu Feb 27 21:54:58 2003
+++ mailsync/files/patch-mailsync.c Wed Jul 14 03:52:41 2004
@@ -1,6 +1,14 @@
--- mailsync.c.orig Thu Nov 7 12:05:46 2002
-+++ mailsync.c Mon Feb 3 22:59:09 2003
-@@ -30,8 +30,8 @@
++++ mailsync.c Wed Jul 14 03:52:22 2004
+@@ -20,6 +20,7 @@
+ extern int errno; // Just in case
+ #include <sys/stat.h> // Stat()
+
++#include <cassert>
+ #include <string>
+ #include <set>
+ #include <map>
+@@ -30,8 +31,8 @@
using std::vector;
using std::make_pair;
--- mailsync.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list