ports/137124: [patch] ports/palm/coldsync segfaults with gcc 4.x

Helge Oldach freebsd-coldsync-jul09 at oldach.net
Sat Jul 25 13:00:10 UTC 2009


>Number:         137124
>Category:       ports
>Synopsis:       [patch] ports/palm/coldsync segfaults with gcc 4.x
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 25 13:00:09 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Helge Oldach
>Release:        FreeBSD 7.2-721 i386
>Organization:
>Environment:

System: FreeBSD localhost 7.2-721 FreeBSD 7.2-721 #0: Fri Jul 24 17:03:02 CEST 2009 toor at localhost:/usr/obj/usr/src/sys/HMO i386


>Description:

coldsync segfaults when compiled with -O1 or above, using gcc 4.x
(i.e. on FreeBSD 7 and above). Apparently this is one of the known
optimization issues introduced with gcc 4 that are covered by similar
handling in the ports tree.

>How-To-Repeat:

>Fix:

Disable optimization.

--- ports/palm/coldsync/Makefile.ctm	2008-06-06 23:20:13.000000000 +0200
+++ ports/palm/coldsync/Makefile	2009-07-25 14:24:00.000000000 +0200
@@ -54,7 +54,7 @@
 
 .include <bsd.port.pre.mk>
 
-CFLAGS+=	-D__BSD_VISIBLE=1
+CFLAGS+=	-O0 -D__BSD_VISIBLE=1
 CONFIGURE_ARGS+=	--disable-pedantic --without-perl --with-usb
 
 post-patch:
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list