#1731 apd make install breaks
Submitted: 2004-06-28 09:09 UTC
From: xcomm at web dot de Assigned:
Status: Feedback Package:
PHP Version: 5CVS-2004-06-28 (dev) OS: Solaris 9 12/03 Sparc
Roadmaps: (Not assigned)    
Subscription  


 [2004-06-28 09: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

Comments

 [2004-07-13 02: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 20:13 UTC] johannes at php dot net
Did you try APD 1.0 with PHP5, yet? Afaik there are some issues fixed.
 [2004-10-02 21: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 23:01 UTC] gschlossnagle at php dot 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?
 [2009-05-05 12:25 UTC] nirvana74v (Ved Prakash)
Hi, I have the latest PHP 5 installed on my system yet I am not able to build apd /bin/sh /usr/local/src/apd-1.0.1/libtool --mode=compile gcc -I. -I/usr/local/src/apd-1.0.1 -DPHP_ATOM_INC -I/usr/local/src/apd-1.0.1/include -I/usr/local/src/apd-1.0.1/main -I/usr/local/src/apd-1.0.1 -I/usr/local/phpnew/include/php -I/usr/local/phpnew/include/php/main -I/usr/local/phpnew/include/php/TSRM -I/usr/local/phpnew/include/php/Zend -I/usr/local/phpnew/include/php/ext -I/usr/local/phpnew/include/php/ext/date/lib -I/usr/local/phpnew/include/php -DHAVE_CONFIG_H -g -O0 -c /usr/local/src/apd-1.0.1/php_apd.c -o php_apd.lo mkdir .libs gcc -I. -I/usr/local/src/apd-1.0.1 -DPHP_ATOM_INC -I/usr/local/src/apd-1.0.1/include -I/usr/local/src/apd-1.0.1/main -I/usr/local/src/apd-1.0.1 -I/usr/local/phpnew/include/php -I/usr/local/phpnew/include/php/main -I/usr/local/phpnew/include/php/TSRM -I/usr/local/phpnew/include/php/Zend -I/usr/local/phpnew/include/php/ext -I/usr/local/phpnew/include/php/ext/date/lib -I/usr/local/phpnew/include/php -DHAVE_CONFIG_H -g -O0 -c /usr/local/src/apd-1.0.1/php_apd.c -fPIC -DPIC -o .libs/php_apd.o /usr/local/src/apd-1.0.1/php_apd.c:957: error: conflicting types for 'onStatement' /usr/local/src/apd-1.0.1/php_apd.c:65: error: previous declaration of 'onStatement' was here make: *** [php_apd.lo] Error 1 PHP 5.2.9 (cli) (built: May 4 2009 04:57:14) (DEBUG) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies with XCache v1.2.1, Copyright (c) 2005-2007, by mOo Can we have this error resolved please? Ved