NetBSD Problem Report #35697

From root@intrepid.dnsalias.com  Sun Feb 18 22:14:14 2007
Return-Path: <root@intrepid.dnsalias.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 9A12163B8F2
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 18 Feb 2007 22:14:14 +0000 (UTC)
Message-Id: <E1HIuIO-0006Ea-PN@intrepid.warped.com>
Date: Sun, 18 Feb 2007 14:14:12 -0800
From: scotte@warped.com
Reply-To: scotte@warped.com
To: gnats-bugs@NetBSD.org
Subject: X11 build fails with SSP
X-Send-Pr-Version: 3.95

>Number:         35697
>Category:       bin
>Synopsis:       Built of Xt fails if USE_SSP=yes
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    xsrc-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 18 22:15:14 +0000 2007
>Closed-Date:    Tue Jun 19 01:17:18 +0000 2018
>Last-Modified:  Tue Jun 19 01:17:18 +0000 2018
>Originator:     Scott Ellis
>Release:        NetBSD 4.99.9
>Organization:

>Environment:


System: NetBSD intrepid 4.99.9 NetBSD 4.99.9 (INTREPID.AMD64) #1: Sat Feb 17 11:24:39 PST 2007 scotte@intrepid:/nbu/source/netbsd/src/obj.amd64/nbu/source/netbsd/src/sys/arch/amd64/compile/INTREPID.AMD64 amd64
Architecture: x86_64
Machine: amd64
>Description:

Attempting to build X11 (MKX11=yes) with SSP enabled (USE_SSP=yes) results in:

#   compile  Xt/Convert.o
/data/scotte/netbsd_build/amd64/tooldir/bin/x86_64--netbsd-gcc -O2 -pipe  -Werro
r -march=k8 -fno-strict-aliasing -fstack-protector -Wstack-protector --param ssp
-buffer-size=1   -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API  -DXNO_MTSAFE_PWDAPI
-DUSE_POLL -DUSE_SNPRINTF -DLIBXT -I. -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO
-I/data/scotte/netbsd_build/amd64/destdir/usr/X11R6/include -D__AMD64__   -nostd
inc -isystem /data/scotte/netbsd_build/amd64/destdir/usr/include -c    /usr/xsrc
/xfree/xc/lib/Xt/Convert.c -o Convert.o
cc1: warnings being treated as errors
/usr/xsrc/xfree/xc/lib/Xt/Convert.c: In function '_XtConvert':
/usr/xsrc/xfree/xc/lib/Xt/Convert.c:872: warning: not protecting local variables
: variable length buffer


>How-To-Repeat:

Enable USE_SSP=yes and MKX11=yes, and attempt to build using build.sh
>Fix:


>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: bin-bug-people->jnemeth
Responsible-Changed-By: jnemeth@netbsd.org
Responsible-Changed-When: Sun, 18 Feb 2007 22:46:43 +0000
Responsible-Changed-Why:
this problem is already on my list...


State-Changed-From-To: open->analyzed
State-Changed-By: jnemeth@netbsd.org
State-Changed-When: Sun, 18 Feb 2007 22:46:43 +0000
State-Changed-Why:
I have a list of files causing the problem


From: jnemeth@victoria.tc.ca (John Nemeth)
To: gnats-bugs@NetBSD.org, gnats-admin@NetBSD.org,
	netbsd-bugs@NetBSD.org
Cc: 
Subject: Re: bin/35697: X11 build fails with SSP
Date: Sun, 18 Feb 2007 14:45:42 -0800

 On Jun 5, 10:22am, scotte@warped.com wrote:
 } >Description:
 } 	
 } Attempting to build X11 (MKX11=yes) with SSP enabled (USE_SSP=yes) results in:
 } 
 } #   compile  Xt/Convert.o
 } /data/scotte/netbsd_build/amd64/tooldir/bin/x86_64--netbsd-gcc -O2 -pipe  -Werro
 } r -march=k8 -fno-strict-aliasing -fstack-protector -Wstack-protector --param ssp
 } -buffer-size=1   -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API  -DXNO_MTSAFE_PWDAPI
 } -DUSE_POLL -DUSE_SNPRINTF -DLIBXT -I. -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO
 } -I/data/scotte/netbsd_build/amd64/destdir/usr/X11R6/include -D__AMD64__   -nostd
 } inc -isystem /data/scotte/netbsd_build/amd64/destdir/usr/include -c    /usr/xsrc
 } /xfree/xc/lib/Xt/Convert.c -o Convert.o
 } cc1: warnings being treated as errors
 } /usr/xsrc/xfree/xc/lib/Xt/Convert.c: In function '_XtConvert':
 } /usr/xsrc/xfree/xc/lib/Xt/Convert.c:872: warning: not protecting local variables
 } : variable length buffer

      Lots of things in X11 cause this failure.  I have a list of 152
 files from sparc64 and am planning on working on it.

 }-- End of excerpt from scotte@warped.com

From: christos@zoulas.com (Christos Zoulas)
To: jnemeth@victoria.tc.ca (John Nemeth), gnats-bugs@NetBSD.org,
	gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Cc: 
Subject: Re: bin/35697: X11 build fails with SSP
Date: Sun, 18 Feb 2007 17:51:37 -0500

 On Feb 18,  2:45pm, jnemeth@victoria.tc.ca (John Nemeth) wrote:
 -- Subject: Re: bin/35697: X11 build fails with SSP

 The problem is that it is difficult to just disable the error
 for all of X, because there is no way to append at COPTS.

 christos

Responsible-Changed-From-To: jnemeth->xsrc-manager
Responsible-Changed-By: jnemeth@NetBSD.org
Responsible-Changed-When: Thu, 20 Nov 2008 05:38:49 +0000
Responsible-Changed-Why:
Don't want this one anymore, so over to xsrc people.


State-Changed-From-To: analyzed->suspended
State-Changed-By: jnemeth@NetBSD.org
State-Changed-When: Thu, 20 Nov 2008 05:38:49 +0000
State-Changed-Why:
XFree86 is in the process of being deprecated, so not going to worry about
this problem.


State-Changed-From-To: suspended->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Tue, 19 Jun 2018 01:17:18 +0000
State-Changed-Why:
Code failing to build was removed. SSP is on by default. Not much use in keeping this bug not-closed.
Thanks for the report.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.