php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56111 apd make install breaks
Submitted: 2004-06-28 05:09 UTC Modified: 2013-02-18 00:35 UTC
From: xcomm at web dot de Assigned:
Status: No Feedback Package: apd (PECL)
PHP Version: 5CVS-2004-06-28 (dev) OS: Solaris 9 12/03 Sparc
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
48 + 6 = ?
Subscribe to this entry?

 
 [2004-06-28 05:09 UTC] xcomm at web dot de
Description:
------------
After hearing a lot of interesting talk at the Linuxtag in Karlsruhe (Greetings!) tried to use apd as suggested. 

But failed to get it installed using either (1) 'pear install apd' or 'phpize/configure/make install' with the (2) cvs.php.net/pecl/apd neither.

(1) pear install apd:
# pear install apd
downloading apd-0.4p2.tar ...
Starting to download apd-0.4p2.tar (-1 bytes)
.........................................done: 189,440 bytes
16 source files, building
running: phpize
Configuring for:
PHP Api Version:         20031224
Zend Module Api No:      20040412
Zend Extension Api No:   220040412
...
running: make
/bin/bash /var/tmp/pear-build-rasche/apd-0.4p2/libtool --mode=compile gcc  -I. -I/tmp/tmpTmaiXv/apd-0.4p2 -DPHP_ATOM_INC -I/var/tmp/pear-build-rasche/apd-0.4p2/include -I/var/tmp/pear-build-rasche/apd-0.4p2/main -I/tmp/tmpTmaiXv/apd-0.4p2 -I/usr/local/apache2/php/include/php -I/usr/local/apache2/php/include/php/main -I/usr/local/apache2/php/include/php/Zend -I/usr/local/apache2/php/include/php/TSRM  -DHAVE_CONFIG_H  -g -O2  -prefer-pic -c /tmp/tmpTmaiXv/apd-0.4p2/php_apd.c -o php_apd.lo
mkdir .libs
 gcc -I. -I/tmp/tmpTmaiXv/apd-0.4p2 -DPHP_ATOM_INC -I/var/tmp/pear-build-rasche/apd-0.4p2/include -I/var/tmp/pear-build-rasche/apd-0.4p2/main -I/tmp/tmpTmaiXv/apd-0.4p2 -I/usr/local/apache2/php/include/php -I/usr/local/apache2/php/include/php/main -I/usr/local/apache2/php/include/php/Zend -I/usr/local/apache2/php/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -c /tmp/tmpTmaiXv/apd-0.4p2/php_apd.c  -fPIC -DPIC -o .libs/php_apd.o
/tmp/tmpTmaiXv/apd-0.4p2/php_apd.c: In function `apd_get_active_function_name':
/tmp/tmpTmaiXv/apd-0.4p2/php_apd.c:384: error: structure has no member named `ce'
/tmp/tmpTmaiXv/apd-0.4p2/php_apd.c:385: error: structure has no member named `ce'
/tmp/tmpTmaiXv/apd-0.4p2/php_apd.c:389: error: request for member `ptr' in something not a structure or union
/tmp/tmpTmaiXv/apd-0.4p2/php_apd.c:390: error: request for member `ptr' in something not a structure or union
/tmp/tmpTmaiXv/apd-0.4p2/php_apd.c: At top level:
/tmp/tmpTmaiXv/apd-0.4p2/php_apd.c:656: warning: excess elements in struct initializer
/tmp/tmpTmaiXv/apd-0.4p2/php_apd.c:656: warning: (near initialization for `apd_module_entry')
/tmp/tmpTmaiXv/apd-0.4p2/php_apd.c:681: error: `OnUpdateInt' undeclared here (not in a function)
/tmp/tmpTmaiXv/apd-0.4p2/php_apd.c:681: error: initializer element is not constant
/tmp/tmpTmaiXv/apd-0.4p2/php_apd.c:681: error: (near initialization for `ini_entries[1].on_modify')
/tmp/tmpTmaiXv/apd-0.4p2/php_apd.c:681: error: initializer element is not constant
/tmp/tmpTmaiXv/apd-0.4p2/php_apd.c:681: error: (near initialization for `ini_entries[1]')
/tmp/tmpTmaiXv/apd-0.4p2/php_apd.c:683: error: initializer element is not constant
/tmp/tmpTmaiXv/apd-0.4p2/php_apd.c:683: error: (near initialization for `ini_entries[2]')
/tmp/tmpTmaiXv/apd-0.4p2/php_apd.c: In function `apd_execute_internal':
/tmp/tmpTmaiXv/apd-0.4p2/php_apd.c:760: error: request for member `ptr' in something not a structure or union
make: *** [php_apd.lo] Error 1
`make' failed

(2) cvs.php.net/pecl/apd
#gmake install

/bin/bash /usr/local/pecl/apd/libtool --mode=compile gcc  -I. -I/usr/local/pecl/apd -DPHP_ATOM_INC -I/usr/local/pecl/apd/include -I/usr/local/pecl/apd/main -I/usr/local/pecl/apd -I/usr/local/apache2/php/include/php -I/usr/local/apache2/php/include/php/main -I/usr/local/apache2/php/include/php/Zend -I/usr/local/apache2/php/include/php/TSRM  -DHAVE_CONFIG_H  -g -O2  -prefer-pic -c /usr/local/pecl/apd/php_apd.c -o php_apd.lo 
 gcc -I. -I/usr/local/pecl/apd -DPHP_ATOM_INC -I/usr/local/pecl/apd/include -I/usr/local/pecl/apd/main -I/usr/local/pecl/apd -I/usr/local/apache2/php/include/php -I/usr/local/apache2/php/include/php/main -I/usr/local/apache2/php/include/php/Zend -I/usr/local/apache2/php/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -c /usr/local/pecl/apd/php_apd.c  -fPIC -DPIC -o .libs/php_apd.o
/usr/local/pecl/apd/php_apd.c:957: error: conflicting types for `onStatement'
/usr/local/pecl/apd/php_apd.c:65: error: previous declaration of `onStatement'
gmake: *** [php_apd.lo] Error 1

Thank you in advance!
Regards, Jan



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-12 22:48 UTC] xcomm at web dot de
Just tried the new apd-0.9 with php5-20040713.

pear install apd and manually phpize - ./configure - gmake are resulting in the some error:

 gcc -I. -I/usr/local/apd -DPHP_ATOM_INC -I/usr/local/apd/include -I/usr/local/apd/main -I/usr/local/apd -I/usr/local/apache2/php/include/php -I/usr/local/apache2/php/include/php/main -I/usr/local/apache2/php/include/php/Zend -I/usr/local/apache2/php/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -c /usr/local/apd/php_apd.c  -fPIC -DPIC -o .libs/php_apd.o
In file included from /usr/local/apd/php_apd.c:21:
/usr/local/apd/php_apd.h:35:23: apd_array.h: No such file or directory
In file included from /usr/local/apd/php_apd.c:21:
/usr/local/apd/php_apd.h:140: error: parse error before "apd_array_t"
/usr/local/apd/php_apd.h:140: warning: no semicolon at end of struct or union
/usr/local/apd/php_apd.h:141: warning: data definition has no type or storage class
/usr/local/apd/php_apd.h:144: error: parse error before '}' token
/usr/local/apd/php_apd.h:144: warning: data definition has no type or storage class
/usr/local/apd/php_apd.h:196: error: parse error before "apd_summary_t"
/usr/local/apd/php_apd.h:196: warning: no semicolon at end of struct or union
/usr/local/apd/php_apd.h:198: error: parse error before '}' token
/usr/local/apd/php_apd.h:198: warning: data definition has no type or storage class
/usr/local/apd/php_apd.c: In function `apd_pprof_output_footer':
/usr/local/apd/php_apd.c:150: error: parse error before ')' token
/usr/local/apd/php_apd.c:159: error: parse error before ')' token
/usr/local/apd/php_apd.c:160: error: parse error before ')' token
/usr/local/apd/php_apd.c:161: error: parse error before ')' token
/usr/local/apd/php_apd.c: In function `apd_dump_fprintf':
/usr/local/apd/php_apd.c:178: error: parse error before ')' token
/usr/local/apd/php_apd.c:179: error: parse error before ')' token
/usr/local/apd/php_apd.c:180: error: parse error before ')' token
/usr/local/apd/php_apd.c:182: error: parse error before ')' token
/usr/local/apd/php_apd.c: In function `apd_pprof_fprintf':
/usr/local/apd/php_apd.c:196: error: parse error before ')' token
/usr/local/apd/php_apd.c:204: error: parse error before ')' token
/usr/local/apd/php_apd.c:205: error: parse error before ')' token
/usr/local/apd/php_apd.c: In function `apd_interactive':
/usr/local/apd/php_apd.c:234: error: parse error before ')' token
/usr/local/apd/php_apd.c:235: error: parse error before ')' token
/usr/local/apd/php_apd.c:237: error: parse error before ')' token
/usr/local/apd/php_apd.c:241: error: parse error before ')' token
/usr/local/apd/php_apd.c:247: error: parse error before ')' token
/usr/local/apd/php_apd.c:251: error: parse error before ')' token
/usr/local/apd/php_apd.c:263: error: parse error before ')' token
/usr/local/apd/php_apd.c:277: error: parse error before ')' token
/usr/local/apd/php_apd.c: In function `apd_get_active_function_name':
/usr/local/apd/php_apd.c:306: error: structure has no member named `ce'
/usr/local/apd/php_apd.c:307: error: structure has no member named `ce'
/usr/local/apd/php_apd.c:313: error: request for member `ptr' in something not a structure or union
/usr/local/apd/php_apd.c:314: error: request for member `ptr' in something not a structure or union
/usr/local/apd/php_apd.c: In function `trace_function_entry':
/usr/local/apd/php_apd.c:359: error: parse error before ')' token
/usr/local/apd/php_apd.c:363: error: parse error before ')' token
/usr/local/apd/php_apd.c:365: error: parse error before ')' token
/usr/local/apd/php_apd.c:366: error: parse error before ')' token
/usr/local/apd/php_apd.c:367: error: parse error before ')' token
/usr/local/apd/php_apd.c:369: error: parse error before ')' token
/usr/local/apd/php_apd.c:371: error: parse error before ')' token
/usr/local/apd/php_apd.c:372: error: parse error before ')' token
/usr/local/apd/php_apd.c:375: error: parse error before ')' token
/usr/local/apd/php_apd.c:376: error: parse error before ')' token
/usr/local/apd/php_apd.c:377: error: parse error before ')' token
/usr/local/apd/php_apd.c:378: error: parse error before ')' token
/usr/local/apd/php_apd.c: In function `trace_function_exit':
/usr/local/apd/php_apd.c:392: error: parse error before ')' token
/usr/local/apd/php_apd.c:400: error: parse error before ')' token
/usr/local/apd/php_apd.c:401: error: parse error before ')' token
/usr/local/apd/php_apd.c:404: error: parse error before ')' token
/usr/local/apd/php_apd.c:405: error: parse error before ')' token
/usr/local/apd/php_apd.c:406: error: parse error before ')' token
/usr/local/apd/php_apd.c: In function `log_time':
/usr/local/apd/php_apd.c:418: error: parse error before ')' token
/usr/local/apd/php_apd.c:420: error: parse error before ')' token
/usr/local/apd/php_apd.c:421: error: parse error before ')' token
/usr/local/apd/php_apd.c:422: error: parse error before ')' token
/usr/local/apd/php_apd.c:424: error: parse error before ')' token
/usr/local/apd/php_apd.c:424: error: parse error before ')' token
/usr/local/apd/php_apd.c:428: error: parse error before ')' token
/usr/local/apd/php_apd.c:429: error: parse error before ')' token
/usr/local/apd/php_apd.c: In function `set_dumpdir':
/usr/local/apd/php_apd.c:460: error: parse error before ')' token
/usr/local/apd/php_apd.c:463: error: parse error before ')' token
/usr/local/apd/php_apd.c: At top level:
/usr/local/apd/php_apd.c:470: error: `OnUpdateInt' undeclared here (not in a function)
/usr/local/apd/php_apd.c:470: error: initializer element is not constant
/usr/local/apd/php_apd.c:470: error: (near initialization for `ini_entries[1].on_modify')
/usr/local/apd/php_apd.c:470: error: parse error before ')' token
/usr/local/apd/php_apd.c:470: error: initializer element is not constant
/usr/local/apd/php_apd.c:470: error: (near initialization for `ini_entries[1].mh_arg1')
/usr/local/apd/php_apd.c:470: error: initializer element is not constant
/usr/local/apd/php_apd.c:470: error: (near initialization for `ini_entries[1]')
/usr/local/apd/php_apd.c:471: error: initializer element is not constant
/usr/local/apd/php_apd.c:471: error: (near initialization for `ini_entries[2]')
/usr/local/apd/php_apd.c:478: error: parse error before '*' token
/usr/local/apd/php_apd.c: In function `php_apd_init_globals':
/usr/local/apd/php_apd.c:480: error: `apd_globals' undeclared (first use in this function)
/usr/local/apd/php_apd.c:480: error: (Each undeclared identifier is reported only once
/usr/local/apd/php_apd.c:480: error: for each function it appears in.)
/usr/local/apd/php_apd.c: At top level:
/usr/local/apd/php_apd.c:490: error: parse error before '*' token
/usr/local/apd/php_apd.c: In function `php_apd_free_globals':
/usr/local/apd/php_apd.c:492: error: `apd_globals' undeclared (first use in this function)
/usr/local/apd/php_apd.c: In function `zm_activate_apd':
/usr/local/apd/php_apd.c:548: error: parse error before ')' token
/usr/local/apd/php_apd.c:549: error: parse error before ')' token
/usr/local/apd/php_apd.c:550: error: parse error before ')' token
/usr/local/apd/php_apd.c:551: error: parse error before ')' token
/usr/local/apd/php_apd.c:552: error: parse error before ')' token
/usr/local/apd/php_apd.c:553: error: parse error before ')' token
/usr/local/apd/php_apd.c:554: error: parse error before ')' token
/usr/local/apd/php_apd.c:556: error: parse error before ')' token
/usr/local/apd/php_apd.c:557: error: parse error before ')' token
/usr/local/apd/php_apd.c:558: error: parse error before ')' token
/usr/local/apd/php_apd.c:559: error: parse error before ')' token
/usr/local/apd/php_apd.c:560: error: parse error before ')' token
/usr/local/apd/php_apd.c:561: error: parse error before ')' token
/usr/local/apd/php_apd.c:562: error: parse error before ')' token
/usr/local/apd/php_apd.c:562: error: parse error before ')' token
/usr/local/apd/php_apd.c:563: error: parse error before ')' token
/usr/local/apd/php_apd.c:563: error: parse error before ')' token
/usr/local/apd/php_apd.c:569: error: parse error before ')' token
/usr/local/apd/php_apd.c:570: error: parse error before ')' token
/usr/local/apd/php_apd.c: In function `zm_deactivate_apd':
/usr/local/apd/php_apd.c:577: error: parse error before ')' token
/usr/local/apd/php_apd.c:578: error: parse error before ')' token
/usr/local/apd/php_apd.c:578: error: parse error before ')' token
/usr/local/apd/php_apd.c:579: error: parse error before ')' token
/usr/local/apd/php_apd.c:580: error: parse error before ')' token
/usr/local/apd/php_apd.c:582: error: parse error before ')' token
/usr/local/apd/php_apd.c:583: error: parse error before ')' token
/usr/local/apd/php_apd.c:585: error: parse error before ')' token
/usr/local/apd/php_apd.c:588: error: parse error before ')' token
/usr/local/apd/php_apd.c:589: error: parse error before ')' token
/usr/local/apd/php_apd.c:590: error: parse error before ')' token
/usr/local/apd/php_apd.c: In function `apd_pprof_header':
/usr/local/apd/php_apd.c:722: error: parse error before ')' token
/usr/local/apd/php_apd.c:728: error: parse error before ')' token
/usr/local/apd/php_apd.c:729: error: parse error before ')' token
/usr/local/apd/php_apd.c:732: error: parse error before ')' token
/usr/local/apd/php_apd.c:733: error: parse error before ')' token
/usr/local/apd/php_apd.c:735: error: parse error before ')' token
/usr/local/apd/php_apd.c:736: error: parse error before ')' token
/usr/local/apd/php_apd.c:737: error: parse error before ')' token
/usr/local/apd/php_apd.c:740: error: parse error before ')' token
/usr/local/apd/php_apd.c:741: error: parse error before ')' token
/usr/local/apd/php_apd.c:743: error: parse error before ')' token
/usr/local/apd/php_apd.c:744: error: parse error before ')' token
/usr/local/apd/php_apd.c: In function `zif_apd_set_browser_trace':
/usr/local/apd/php_apd.c:753: error: parse error before ')' token
/usr/local/apd/php_apd.c:755: error: parse error before ')' token
/usr/local/apd/php_apd.c:756: error: parse error before ')' token
/usr/local/apd/php_apd.c:757: error: parse error before ')' token
/usr/local/apd/php_apd.c:758: error: parse error before ')' token
/usr/local/apd/php_apd.c:759: error: parse error before ')' token
/usr/local/apd/php_apd.c:760: error: parse error before ')' token
/usr/local/apd/php_apd.c:761: error: parse error before ')' token
/usr/local/apd/php_apd.c: In function `zif_apd_set_pprof_trace':
/usr/local/apd/php_apd.c:781: error: parse error before ')' token
/usr/local/apd/php_apd.c:782: error: parse error before ')' token
/usr/local/apd/php_apd.c:789: error: parse error before ')' token
/usr/local/apd/php_apd.c:796: error: parse error before ')' token
/usr/local/apd/php_apd.c:802: error: parse error before ')' token
/usr/local/apd/php_apd.c:803: error: parse error before ')' token
/usr/local/apd/php_apd.c: In function `zif_apd_set_session_trace_socket':
/usr/local/apd/php_apd.c:832: error: parse error before ')' token
/usr/local/apd/php_apd.c:836: error: parse error before ')' token
/usr/local/apd/php_apd.c:845: error: parse error before ')' token
/usr/local/apd/php_apd.c:846: error: parse error before ')' token
/usr/local/apd/php_apd.c:848: error: parse error before ')' token
/usr/local/apd/php_apd.c:857: error: parse error before ')' token
/usr/local/apd/php_apd.c:860: error: parse error before ')' token
/usr/local/apd/php_apd.c:874: error: parse error before ')' token
/usr/local/apd/php_apd.c:878: error: parse error before ')' token
/usr/local/apd/php_apd.c:882: error: parse error before ')' token
/usr/local/apd/php_apd.c: In function `zif_apd_breakpoint':
/usr/local/apd/php_apd.c:902: error: parse error before ')' token
/usr/local/apd/php_apd.c: In function `zif_apd_continue':
/usr/local/apd/php_apd.c:912: error: parse error before ')' token
/usr/local/apd/php_apd.c: In function `zif_apd_echo':
/usr/local/apd/php_apd.c:931: error: parse error before ')' token
/usr/local/apd/php_apd.c:934: error: parse error before ')' token
/usr/local/apd/php_apd.c:935: error: parse error before ')' token
/usr/local/apd/php_apd.c: At top level:
/usr/local/apd/php_apd.c:957: error: conflicting types for `onStatement'
/usr/local/apd/php_apd.c:65: error: previous declaration of `onStatement'
/usr/local/apd/php_apd.c: In function `onStatement':
/usr/local/apd/php_apd.c:959: error: parse error before ')' token
/usr/local/apd/php_apd.c:959: error: parse error before ')' token
gmake: *** [php_apd.lo] Error 1


any suggestions appreciated!

Thanks, Jan
 [2004-09-13 16:13 UTC] johannes@php.net
Did you try APD 1.0 with PHP5, yet? Afaik there are some 
issues fixed.
 [2004-10-02 17:49 UTC] xcomm at web dot de
Dear Johannes,

Tried APD 1.0.1 but still getting this errors about the 'onStatement' at 957 previous declared 65:

bash-2.05# pear install apd
downloading apd-1.0.1.tgz ...
Starting to download apd-1.0.1.tgz (36,643 bytes)
..........done: 36,643 bytes
15 source files, building
running: phpize
Configuring for:
PHP Api Version:         20031224
Zend Module Api No:      20040412
Zend Extension Api No:   220040412
building in /var/tmp/pear-build-defaultuser/apd-1.0.1
running: /tmp/tmpDSaG7u/apd-1.0.1/configure

...

running: make
/bin/bash /var/tmp/pear-build-defaultuser/apd-1.0.1/libtool --mode=compile gcc  -I. -I/tmp/tmpDSaG7u/apd-1.0.1 -DPHP_ATOM_INC -I/var/tmp/pear-build-defaultuser/apd-1.0.1/include -I/var/tmp/pear-build-defaultuser/apd-1.0.1/main -I/tmp/tmpDSaG7u/apd-1.0.1 -I/usr/local/apache2/php/include/php -I/usr/local/apache2/php/include/php/main -I/usr/local/apache2/php/include/php/Zend -I/usr/local/apache2/php/include/php/TSRM  -DHAVE_CONFIG_H  -g -O2  -prefer-pic -c /tmp/tmpDSaG7u/apd-1.0.1/php_apd.c -o php_apd.lo
mkdir .libs
 gcc -I. -I/tmp/tmpDSaG7u/apd-1.0.1 -DPHP_ATOM_INC -I/var/tmp/pear-build-defaultuser/apd-1.0.1/include -I/var/tmp/pear-build-defaultuser/apd-1.0.1/main -I/tmp/tmpDSaG7u/apd-1.0.1 -I/usr/local/apache2/php/include/php -I/usr/local/apache2/php/include/php/main -I/usr/local/apache2/php/include/php/Zend -I/usr/local/apache2/php/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -c /tmp/tmpDSaG7u/apd-1.0.1/php_apd.c  -fPIC -DPIC -o .libs/php_apd.o
/tmp/tmpDSaG7u/apd-1.0.1/php_apd.c:957: error: conflicting types for 'onStatement'
/tmp/tmpDSaG7u/apd-1.0.1/php_apd.c:65: error: previous declaration of 'onStatement' was here
/tmp/tmpDSaG7u/apd-1.0.1/php_apd.c:957: error: conflicting types for 'onStatement'
/tmp/tmpDSaG7u/apd-1.0.1/php_apd.c:65: error: previous declaration of 'onStatement' was here
make: *** [php_apd.lo] Error 1
`make' failed

Thanks, Jan
 [2004-10-02 19:01 UTC] gschlossnagle@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5-win32-latest.zip

Just fixed the prototypes in CVS (it's a TSRM issues).  
Can you give it a shot with that and tell me how it 
goes?
 [2013-02-18 00:35 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Feb 18 09:01:26 2020 UTC