Bug #63706 [Ver]: Cannot build PHP-5.5 with --enable-dtrace on Fedora 17
| From: | dsp@php.net | Date: | Sat, 15 Dec 2012 22:00:50 +0000 |
| Subject: | Bug #63706 [Ver]: Cannot build PHP-5.5 with --enable-dtrace on Fedora 17 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-175382@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63706&edit=1
ID: 63706
Updated by: dsp@php.net
Reported by: sebastian@php.net
Summary: Cannot build PHP-5.5 with --enable-dtrace on Fedora
17
Status: Verified
Type: Bug
Package: *General Issues
Operating System: Fedora 17
PHP Version: 5.5Git-2012-12-06 (Git)
Assigned To: dsp
Block user comment: N
Private report: N
New Comment:
go ahead and merge it then
Previous Comments:
------------------------------------------------------------------------
[2012-12-15 08:12:33] sebastian@php.net
The patch solves the issue for me: I can build PHP-5.5 with --enable-dtrace.
------------------------------------------------------------------------
[2012-12-11 07:12:10] remi@php.net
The following patch has been added/updated:
Patch Name: dtrace-cflags.patch
Revision: 1355209930
URL: https://bugs.php.net/patch-display.php?bug=63706&patch=dtrace-cflags.patch&revision=1355209930
------------------------------------------------------------------------
[2012-12-10 11:53:00] dsp@php.net
This might be one of the issues, but my investigations said that usually the
problem is that a main/main.o build is triggered by a prequisite of
zend_dtrace.d.o that shouldnt be there.
------------------------------------------------------------------------
[2012-12-10 11:49:33] remi@php.net
The issue seems to come from CFLAGS beeing exported, so used in the dtrace/gcc sub-process.
From Makefile
CFLAGS = $(CFLAGS_CLEAN) -prefer-non-pic -static
CFLAGS_CLEAN = -I/usr/include -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing
-Wno-pointer-sign -fvisibility=hidden
Obviously -prefer-non-pic is not a gcc option, but a libtool one.
The attached patch use CFLAGS_CLEAN instead of CFLAGS for dtrace build.
It solves the dtrace build issue on fedora (and rpm) build.
If you think it's ok, I will apply it.
------------------------------------------------------------------------
[2012-12-10 11:46:00] remi@php.net
The following patch has been added/updated:
Patch Name: dtrace-cflags.patch
Revision: 1355139960
URL: https://bugs.php.net/patch-display.php?bug=63706&patch=dtrace-cflags.patch&revision=1355139960
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=63706
--
Edit this bug report at https://bugs.php.net/bug.php?id=63706&edit=1