ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Неотключаемый _FORTIFY_SOURCE
@ 2012-06-08 21:24 Vitaly Lipatov
  2012-06-08 21:55 ` Dmitry V. Levin
  0 siblings, 1 reply; 5+ messages in thread
From: Vitaly Lipatov @ 2012-06-08 21:24 UTC (permalink / raw)
  To: devel

На gcc 4.6 (например, gcc4.6-4.6.3-alt2) воспроизводится следующее:

$ touch a.h
$ gcc -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -v -E -dM a.h 2>/dev/null | 
grep FORTIFY
#define _FORTIFY_SOURCE 2

Хотя ожидалось бы получить 0, как на

Как это было на gcc4.5-4.5.3-alt3
$ gcc -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -v -E -dM a.h 2>/dev/null | 
grep FORTIFY
#define _FORTIFY_SOURCE 0

Таким образом получается, что отключить его невозможно.

-- 
С уважением,
Виталий Липатов,
Etersoft


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [devel] Неотключаемый _FORTIFY_SOURCE
  2012-06-08 21:24 [devel] Неотключаемый _FORTIFY_SOURCE Vitaly Lipatov
@ 2012-06-08 21:55 ` Dmitry V. Levin
  2012-06-12  7:23   ` Michael Shigorin
  2012-06-18 13:31   ` Michael Shigorin
  0 siblings, 2 replies; 5+ messages in thread
From: Dmitry V. Levin @ 2012-06-08 21:55 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 712 bytes --]

On Sat, Jun 09, 2012 at 01:24:03AM +0400, Vitaly Lipatov wrote:
> На gcc 4.6 (например, gcc4.6-4.6.3-alt2) 
> воспроизводится следующее:
> 
> $ touch a.h
> $ gcc -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -v -E -dM a.h 2>/dev/null | 
> grep FORTIFY
> #define _FORTIFY_SOURCE 2
> 
> Хотя ожидалось бы получить 0, как на
> 
> Как это было на gcc4.5-4.5.3-alt3
> $ gcc -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -v -E -dM a.h 2>/dev/null | 
> grep FORTIFY
> #define _FORTIFY_SOURCE 0
> 
> Таким образом получается, что отключить 
> его невозможно.

$ gcc -xc - -O2 -E -dM -U_FORTIFY_SOURCE </dev/null |grep FORTIFY
#define _FORTIFY_SOURCE 2

Это blocker для сборки glibc любой версии. :(


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [devel] Неотключаемый _FORTIFY_SOURCE
  2012-06-08 21:55 ` Dmitry V. Levin
@ 2012-06-12  7:23   ` Michael Shigorin
  2012-06-18 13:31   ` Michael Shigorin
  1 sibling, 0 replies; 5+ messages in thread
From: Michael Shigorin @ 2012-06-12  7:23 UTC (permalink / raw)
  To: ALT Devel discussion list

On Sat, Jun 09, 2012 at 01:55:22AM +0400, Dmitry V. Levin wrote:
> > Таким образом получается, что отключить его невозможно.
> Это blocker для сборки glibc любой версии. :(

led@ упоминал, что в openSUSE не прибили гвоздями к компилятору,
вот только как именно передают -- запамятовал. (и в любом разе
игнорирование CFLAGS сишным makefile -- это бага)

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [devel] Неотключаемый _FORTIFY_SOURCE
  2012-06-08 21:55 ` Dmitry V. Levin
  2012-06-12  7:23   ` Michael Shigorin
@ 2012-06-18 13:31   ` Michael Shigorin
  2012-06-18 13:37     ` Dmitry V. Levin
  1 sibling, 1 reply; 5+ messages in thread
From: Michael Shigorin @ 2012-06-18 13:31 UTC (permalink / raw)
  To: ALT Devel discussion list

On Sat, Jun 09, 2012 at 01:55:22AM +0400, Dmitry V. Levin wrote:
> $ gcc -xc - -O2 -E -dM -U_FORTIFY_SOURCE </dev/null |grep FORTIFY
> #define _FORTIFY_SOURCE 2
> 
> Это blocker для сборки glibc любой версии. :(

Развесил https://bugzilla.altlinux.org/27461

PS: а какую именно любую версию пока предполагается собирать?

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [devel] Неотключаемый _FORTIFY_SOURCE
  2012-06-18 13:31   ` Michael Shigorin
@ 2012-06-18 13:37     ` Dmitry V. Levin
  0 siblings, 0 replies; 5+ messages in thread
From: Dmitry V. Levin @ 2012-06-18 13:37 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 559 bytes --]

On Mon, Jun 18, 2012 at 04:31:56PM +0300, Michael Shigorin wrote:
> On Sat, Jun 09, 2012 at 01:55:22AM +0400, Dmitry V. Levin wrote:
> > $ gcc -xc - -O2 -E -dM -U_FORTIFY_SOURCE </dev/null |grep FORTIFY
> > #define _FORTIFY_SOURCE 2
> > 
> > Это blocker для сборки glibc любой версии. :(
> 
> Развесил https://bugzilla.altlinux.org/27461

Уже исправлено в 4.6.3-alt3.

> PS: а какую именно любую версию пока предполагается собирать?

2.16, но не собирались все версии с поддержкой _FORTIFY_SOURCE,
в том числе и текущая сизифная.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-06-18 13:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-08 21:24 [devel] Неотключаемый _FORTIFY_SOURCE Vitaly Lipatov
2012-06-08 21:55 ` Dmitry V. Levin
2012-06-12  7:23   ` Michael Shigorin
2012-06-18 13:31   ` Michael Shigorin
2012-06-18 13:37     ` Dmitry V. Levin

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git