php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62319 cannot compile xhprof on Solaris
Submitted: 2012-06-14 05:45 UTC Modified: 2017-10-24 08:25 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: eugene at zhegan dot in Assigned:
Status: Suspended Package: xhprof (PECL)
PHP Version: Irrelevant OS: Solaris 10 x86
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: eugene at zhegan dot in
New email:
PHP Version: OS:

 

 [2012-06-14 05:45 UTC] eugene at zhegan dot in
Description:
------------
Cannot compile the extension using either GNU or Sun compiler, building crashes:

[root@japet /home/emz/src/xhprof-0.9.2/extension]# make
/bin/bash /home/emz/src/xhprof-0.9.2/extension/libtool --mode=compile /bin/cc  -I. -I/home/emz/src/xhprof-0.9.2/extension -DPHP_ATOM_INC -I/home/emz/src/xhprof-0.9.2/extension/include -I/home/emz/src/xhprof-0.9.2/extension/main -I/home/emz/src/xhprof-0.9.2/extension -I/usr/local/php5.3.10/include/php -I/usr/local/php5.3.10/include/php/main -I/usr/local/php5.3.10/include/php/TSRM -I/usr/local/php5.3.10/include/php/Zend -I/usr/local/php5.3.10/include/php/ext -I/usr/local/php5.3.10/include/php/ext/date/lib  -DHAVE_CONFIG_H  -m64   -c /home/emz/src/xhprof-0.9.2/extension/xhprof.c -o xhprof.lo 
mkdir .libs
 /bin/cc -I. -I/home/emz/src/xhprof-0.9.2/extension -DPHP_ATOM_INC -I/home/emz/src/xhprof-0.9.2/extension/include -I/home/emz/src/xhprof-0.9.2/extension/main -I/home/emz/src/xhprof-0.9.2/extension -I/usr/local/php5.3.10/include/php -I/usr/local/php5.3.10/include/php/main -I/usr/local/php5.3.10/include/php/TSRM -I/usr/local/php5.3.10/include/php/Zend -I/usr/local/php5.3.10/include/php/ext -I/usr/local/php5.3.10/include/php/ext/date/lib -DHAVE_CONFIG_H -m64 -c /home/emz/src/xhprof-0.9.2/extension/xhprof.c  -KPIC -DPIC -o .libs/xhprof.o
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 209: syntax error before or at: cpu_set_t
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 367: improper member use: enabled
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 369: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 369: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 369: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 395: improper member use: enabled
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 397: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 397: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 397: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 415: improper member use: cpu_num
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 419: warning: implicit function declaration: sched_getaffinity
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 419: undefined symbol: cpu_set_t
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 419: undefined struct/union member: prev_mask
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 428: improper member use: cpu_frequencies
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 431: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 434: improper member use: entry_free_list
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 491: improper member use: cpu_num
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 495: improper member use: cpu_frequencies
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 498: improper member use: cpu_num
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 501: improper member use: cpu_frequencies
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 616: improper member use: ever_enabled
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 617: improper member use: ever_enabled
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 618: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 620: improper member use: profiler_level
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 623: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 624: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 625: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 625: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 625: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 627: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 627: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 627: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 627: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 628: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 633: improper member use: cpu_frequencies
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 635: warning: implicit function declaration: restore_cpu_affinity
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 635: undefined struct/union member: prev_mask
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 639: warning: implicit function declaration: bind_to_cpu
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 639: improper member use: cpu_num
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 642: improper member use: mode_cb
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 655: improper member use: mode_cb
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 658: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 659: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 660: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 660: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 660: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 661: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 663: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 664: improper member use: profiler_level
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 665: improper member use: ever_enabled
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 979: improper member use: entry_free_list
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1000: improper member use: entry_free_list
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1003: improper member use: entry_free_list
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1021: improper member use: entry_free_list
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1022: improper member use: entry_free_list
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1062: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1062: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1062: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1062: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1062: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1062: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1075: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1119: improper member use: last_sample_time
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1120: improper member use: last_sample_time
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1128: improper member use: stats_count
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1153: improper member use: last_sample_tsc
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1154: improper member use: sampling_interval_tsc
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1157: improper member use: last_sample_tsc
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1157: improper member use: sampling_interval_tsc
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1160: improper member use: last_sample_time
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1201: undefined symbol: cpu_set_t
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1201: syntax error before or at: new_mask
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1203: warning: implicit function declaration: CPU_ZERO
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1203: undefined symbol: new_mask
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1204: warning: implicit function declaration: CPU_SET
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1206: warning: implicit function declaration: sched_setaffinity
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1297: improper member use: cpu_frequencies
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1297: improper member use: cpu_num
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1298: improper member use: cpu_frequencies
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1303: improper member use: cpu_num
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1319: improper member use: cpu_frequencies
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1332: syntax error before or at: *
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1333: undefined symbol: prev_mask
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1348: improper member use: cpu_frequencies
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1349: improper member use: cpu_frequencies
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1350: improper member use: cpu_frequencies
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1352: undefined struct/union member: prev_mask
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1438: improper member use: cpu_frequencies
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1441: improper member use: last_sample_tsc
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1444: improper member use: last_sample_time
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1445: improper member use: last_sample_time
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1446: improper member use: last_sample_time
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1449: improper member use: last_sample_time
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1451: improper member use: last_sample_tsc
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1453: improper member use: last_sample_tsc
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1457: improper member use: sampling_interval_tsc
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1533: improper member use: cpu_frequencies
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1614: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1614: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1614: improper member use: mode_cb
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1614: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1614: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1616: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1617: improper member use: mode_cb
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1617: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1617: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1617: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1617: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1617: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1642: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1642: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1642: improper member use: mode_cb
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1642: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1642: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1661: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1662: improper member use: mode_cb
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1662: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1662: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1662: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1662: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1662: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1688: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1688: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1688: improper member use: mode_cb
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1688: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1688: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1690: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1691: improper member use: mode_cb
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1691: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1691: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1691: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1691: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1691: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1711: improper member use: enabled
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1714: improper member use: enabled
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1736: improper member use: mode_cb
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1737: improper member use: mode_cb
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1738: improper member use: mode_cb
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1739: improper member use: mode_cb
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1745: improper member use: mode_cb
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1746: improper member use: mode_cb
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1749: improper member use: mode_cb
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1750: improper member use: mode_cb
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1751: improper member use: mode_cb
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1759: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1759: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1759: improper member use: mode_cb
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1759: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1759: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1768: improper member use: ever_enabled
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1773: improper member use: enabled
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1791: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1792: improper member use: mode_cb
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1792: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1792: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1792: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1792: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1792: improper member use: entries
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1801: undefined struct/union member: prev_mask
"/home/emz/src/xhprof-0.9.2/extension/xhprof.c", line 1804: improper member use: enabled
cc: acomp failed for /home/emz/src/xhprof-0.9.2/extension/xhprof.c
*** Error code 1
make: Fatal error: Command failed for target `xhprof.lo'


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-14 18:56 UTC] sixd@php.net
Try with the code from https://github.com/facebook/xhprof
 [2012-06-14 18:56 UTC] sixd@php.net
-Assigned To: +Assigned To: scottmac
 [2012-06-15 14:41 UTC] maksim at woyager dot ru
The Same problem. Both 0.9.2 and github versions.
Maybe useful note for porting http://developers.sun.com/solaris/articles/solaris_linux_app.html (Process/Processor Management).
 [2012-06-18 04:59 UTC] eugene at zhegan dot in
Yeah, it's clear that it crashes because it lacks the platform-specific code, which was added for FreeBSD and Mac OS X. I saw similar report here about OpenBSD (which afaik doesn't support SMP at all), so all of the other platforms need porting. Unfortunately, my skills are too low to do that.
 [2017-10-24 06:10 UTC] kalle@php.net
-Status: Assigned +Status: Open -Assigned To: scottmac +Assigned To:
 [2017-10-24 08:25 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-10-24 08:25 UTC] kalle@php.net
This package has not had a release for over 4 years, and the last bit of git activity was over 2 years ago, so I think its safe to say this extension is no longer in active development. If development picks back up, then please re-open this report
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Mar 24 13:01:25 2019 UTC