Edit report at https://bugs.php.net/bug.php?id=63706&edit=1

 ID:                 63706
 Updated by:         sebast...@php.net
 Reported by:        sebast...@php.net
 Summary:            Cannot build PHP-5.5 with --enable-dtrace on Fedora
                     17
-Status:             Verified
+Status:             Closed
 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:

Automatic comment on behalf of remi
Revision: 
http://git.php.net/?p=php-src.git;a=commit;h=717b367085d55528cad82716bc5ad9736831540f
Log: Fixed bug #63706: Cannot build PHP-5.5 with --enable-dtrace on Fedora 17


Previous Comments:
------------------------------------------------------------------------
[2012-12-15 22:00:50] d...@php.net

go ahead and merge it then

------------------------------------------------------------------------
[2012-12-15 08:12:33] sebast...@php.net

The patch solves the issue for me: I can build PHP-5.5 with --enable-dtrace.

------------------------------------------------------------------------
[2012-12-11 07:12:10] r...@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] d...@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] r...@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.

------------------------------------------------------------------------


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

Reply via email to