install error on mac10.8.5

I use xampp installed on mac. the place of xampp is in /applications/xampp I load the source code and build it to but when I install it to the php as a php extension. It comes this error: [29-Sep-2013 08:32:02 Europe/Berlin] PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20100525/' - dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20100525/, 9): Symbol not found: _output_globals Referenced from: /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20100525/ Expected in: flat namespace in /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20100525/ in Unknown on line 0

Please help me to check it.