| View previous topic :: View next topic |
| Author |
Message |
mith
Joined: 02 Nov 2003 Posts: 12 Location: ITALY
|
Posted: Sun Nov 02, 2003 13:41 Post subject: running xdebug |
|
|
Hello,
i downloaded the compiled package of Xdebug 1.2.0 from their site (http://www.xdebug.org) but I always get an error about dlcompat:
_zend_Failed loading /usr/lib/php/xdebug-4.3.2-1.2.0-macosx.so: dlcompat: dyld: /usr/sbin/httpd Undefined symbols:
/usr/lib/php/xdebug-4.3.2-1.2.0-macosx.so undefined reference to _OnUpdateBool expected to be defined in the executable
/usr/lib/php/xdebug-4.3.2-1.2.0-macosx.so undefined reference to _OnUpdateInt expect
How can I solve this? Any suggestion is welcome.
Mith |
|
| Back to top |
|
 |
neptho Guest
|
Posted: Tue Nov 11, 2003 14:40 Post subject: |
|
|
It looks like your compilation doesn't match your loaded version of PHP. Check your headers and libs, phpize, et al.
I just compiled 1.3.0-rc2, which registers fine, and might just find its way into my toolkit. Thanks for the heads up.
- S |
|
| Back to top |
|
 |
mith
Joined: 02 Nov 2003 Posts: 12 Location: ITALY
|
Posted: Tue Nov 11, 2003 17:06 Post subject: |
|
|
Could you provide the two lines you used to run configure for PHP and for xdebug?
I installed PHP as a shared library in a custom directory, /usr/local/andrea_php/ and then ran phpize and php-config from that path.
Any suggestion? |
|
| Back to top |
|
 |
neptho Guest
|
Posted: Wed Nov 12, 2003 0:51 Post subject: |
|
|
Errr, that shouldn't be necessary. I first aliased apple's proffered 'glibtoolize' to 'libtoolize' in /usr/local/bin.
%sudo ln -s /usr/bin/glibtoolize /usr/local/bin/llibtoolize
%gzip -dc xdebug*.tar.gz | tar xvf -
%cd xdebug*/
%/usr/local/php/bin/phpize
%./configure --enable-xdebug
%make install (mine copied to /usr/lib/php/extensions/no-debug-non-zts-20020429/)
%vi php.ini
(appended to end of file:)
zend_extension=/usr/lib/php/extensions/no-debug-non-zts-20020429/xdebug.so
%apachectl restart
I know the above is terse, but you should be able to follow it.  |
|
| Back to top |
|
 |
mith
Joined: 02 Nov 2003 Posts: 12 Location: ITALY
|
Posted: Wed Nov 12, 2003 11:28 Post subject: I LOVE YOU |
|
|
All I can say is:"I love you!".
I compiled xdebug and ran it successfully!!!
Now I only need to fix compilation of Turck MMCache. But that's another story!
EDIT: your trick, plus dwstevens' trick doesn't work.  |
|
| Back to top |
|
 |
mith
Joined: 02 Nov 2003 Posts: 12 Location: ITALY
|
Posted: Wed Nov 12, 2003 11:33 Post subject: Anyone needs it? |
|
|
| If anyone needs the .so compiled for PHP 4.3.3 (will it work with 4.3.4 too?) I can share it. |
|
| Back to top |
|
 |
neptho

Joined: 13 Nov 2003 Posts: 428 Location: Up a tree
|
Posted: Thu Nov 13, 2003 19:44 Post subject: Re: I LOVE YOU |
|
|
| mith wrote: | All I can say is:"I love you!".
EDIT: your trick, plus dwstevens' trick doesn't work.  |
What doesn't work? xdebug? If that's the case, here you go:
xdebug for 4.3.4 (release 1)
Xdebug 1.3RC2
APC for 4.3.4 (release 1) - It won't work until you increase your SHM.
APC 2.0b
Turk MMCache for 4.3.4 (release 1)
Turk MMCache v2.4.6 |
|
| Back to top |
|
 |
mith
Joined: 02 Nov 2003 Posts: 12 Location: ITALY
|
Posted: Fri Nov 14, 2003 13:39 Post subject: |
|
|
I begin thinking it's just me experiencing problems....
I have xdebug 1.2.0 compiled for my own PHP (4.3.3). SOMETIMES works, some other times gives me that same old error.
How did you compile mmcache? Did you modify the Makefile or simply ran 'make'? (after having linked the glibtoolize as you showed in your post)
I will get the latest PHP from Marc's site and you libs and play with them, but I would have liked to be able to make my own....
Thanks,
Mith |
|
| Back to top |
|
 |
neptho

Joined: 13 Nov 2003 Posts: 428 Location: Up a tree
|
Posted: Fri Nov 14, 2003 16:03 Post subject: |
|
|
| mith wrote: | I begin thinking it's just me experiencing problems....
How did you compile mmcache? Did you modify the Makefile or simply ran 'make'? (after having linked the glibtoolize as you showed in your post)
Thanks,
Mith |
I compiled mmcache fairly cleanly, actually - I phpized it, set the path to Marc's php-config (/usr/local/php/bin), then looked through the generated options. They looked fine, so I compiled, copied over, setup my shm, and it worked.
Previously, I was toying with my own shm allocations with an ancient release of mmcache - and I was screwing up - it was using some of Apple's headers, and I was linking against Marc's release.
Oops.
- n |
|
| Back to top |
|
 |
donalm
Joined: 23 Jul 2003 Posts: 7 Location: Auckland
|
Posted: Thu Dec 11, 2003 22:26 Post subject: mmcache mystery |
|
|
Hey y'all - I was trying to get an old mmcache I was using a while ago to work with Jaguar server 10.2.8, PHP 4.3.4 and apache 1.3.27 and when it all failed with "Undefined symbols" I found the page you are now reading.
I followed the instructions here, and experimented with the instructions on this page:
http://www.macosxhints.com/article.php?story=20031120185347801
- but still using Marc's PHP release.
Nothing I have tried has worked, but I also haven't been able to get PHP/Apache to throw an error on restart. At least the "Undefined symbols" stuff is over. I changed other values in php.ini and they were reflected in my phpinfo page, so it's not like I'm linking to the module in a redundant ini file or something quite that obvious.
And yet - no dice. It's like Apache is ignoring me! If anyone has suggestions on what to try, I'd be keen to hear them.
Do I need to point out that I am no Unix expert? I think not. |
|
| Back to top |
|
 |
neptho

Joined: 13 Nov 2003 Posts: 428 Location: Up a tree
|
Posted: Sat Dec 13, 2003 3:52 Post subject: Re: mmcache mystery |
|
|
| donalm wrote: | | Nothing I have tried has worked, but I also haven't been able to get PHP/Apache to throw an error on restart. At least the "Undefined symbols" stuff is over. I changed other values in php.ini and they were reflected in my phpinfo page, so it's not like I'm linking to the module in a redundant ini file or something quite that obvious. |
No notifications in your apache error_log about unable to load modules? Usually when you have a symbol mismatch between PHP revisions, you'll get something akin to:
| Code: | | PHP error: Unable to load 'module.so' in Unknown on line 0 |
It falls back semi-gracefully; your module just won't work. |
|
| Back to top |
|
 |
donalm
Joined: 23 Jul 2003 Posts: 7 Location: Auckland
|
Posted: Sat Dec 13, 2003 13:57 Post subject: And yet.... |
|
|
[Sat Dec 13 12:55:15 2003] [notice] SIGHUP received. Attempting to restart
[Sat Dec 13 12:55:15 2003] [warn] module mod_php4.c is already added, skipping
[Sat Dec 13 12:55:15 2003] [warn] module mod_hfs_apple.c is already added, skipping
[Sat Dec 13 12:55:15 2003] [warn] module mod_redirectacgi_apple.c is already added, skipping
[Sat Dec 13 12:55:16 2003] [notice] Apache/1.3.27 (Darwin) PHP/4.3.4 configured -- resuming normal operations
[Sat Dec 13 12:55:16 2003] [notice] Accept mutex: flock (Default: flock)
Like I said - it's ignoring me.
 |
|
| Back to top |
|
 |
mith
Joined: 02 Nov 2003 Posts: 12 Location: ITALY
|
Posted: Sat Dec 13, 2003 16:41 Post subject: configuring the proper php.ini |
|
|
Are you sure you're editing the appropriate php.ini? Entropy's PHP has its own ini file.
1) put a typo or some big mistake, this way you will be sure it's loading the correct file
2) instead of a restart try a stop, sync; sync; start. |
|
| Back to top |
|
 |
donalm
Joined: 23 Jul 2003 Posts: 7 Location: Auckland
|
Posted: Sat Dec 13, 2003 16:56 Post subject: Doh! |
|
|
Ok - I was looking at /var/log/httpd/error_log instead of /var/local/httpd/php_error_log
It's reporting:
[13-Dec-2003 15:55:01] PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/php/lib/php/extensions/mmcache.so' - (null) in Unknown on line 0
I'll see where I can go from there.
Thanks! |
|
| Back to top |
|
 |
|