Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jul 2009 14:51:02 +0200 (CEST)
From:      Helge Oldach <freebsd-coldsync-jul09@oldach.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        arensb+freebsd-ports@ooblick.com
Subject:   ports/137124: [patch] ports/palm/coldsync segfaults with gcc 4.x
Message-ID:  <200907251251.n6PCp2j4093480@sep.oldach.net>
Resent-Message-ID: <200907251300.n6PD092M013183@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907251251.n6PCp2j4093480>