kjdev / php-ext-snappy

Snappy Extension for PHP
Other
131 stars 36 forks source link

Undefined symbol: _ZTVN10__cxxabiv117__class_type_infoE #1

Open hrishikesh-mishra opened 11 years ago

hrishikesh-mishra commented 11 years ago

Hi,

I am getting following error during make test: PHP Warning: PHP Startup: Unable to load dynamic library '/home/rishi/projects/php-ext-snappy/modules/snappy.so' - /home/rishi/projects/php-ext-snappy/modules/snappy.so: undefined symbol: _ZTVN10cxxabiv117class_type_infoE in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/home/rishi/projects/php-ext-snappy/modules/snappy.so' - /home/rishi/projects/php-ext-snappy/modules/snappy.so: undefined symbol: _ZTVN10cxxabiv117class_type_infoE in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/home/rishi/projects/php-ext-snappy/modules/snappy.so' - /home/rishi/projects/php-ext-snappy/modules/snappy.so: undefined symbol: _ZTVN10cxxabiv117class_type_infoE in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/home/rishi/projects/php-ext-snappy/modules/snappy.so' - /home/rishi/projects/php-ext-snappy/modules/snappy.so: undefined symbol: _ZTVN10cxxabiv117class_type_infoE in Unknown on line 0


Here is complete log: bin/bash /home/rishi/projects/php-ext-snappy/libtool --mode=install cp ./snappy.la /home/rishi/projects/php-ext-snappy/modules libtool: install: cp ./.libs/snappy.so /home/rishi/projects/php-ext-snappy/modules/snappy.so libtool: install: cp ./.libs/snappy.lai /home/rishi/projects/php-ext-snappy/modules/snappy.la

libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/sbin" ldconfig -n /home/rishi/projects/php-ext-snappy/modules

Libraries have been installed in: /home/rishi/projects/php-ext-snappy/modules

If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following:

See any operating system documentation about shared libraries for

more information, such as the ld(1) and ld.so(8) manual pages.

Build complete. Don't forget to run 'make test'.

PHP Warning: PHP Startup: Unable to load dynamic library '/home/rishi/projects/php-ext-snappy/modules/snappy.so' - /home/rishi/projects/php-ext-snappy/modules/snappy.so: undefined symbol: _ZTVN10cxxabiv117class_type_infoE in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/home/rishi/projects/php-ext-snappy/modules/snappy.so' - /home/rishi/projects/php-ext-snappy/modules/snappy.so: undefined symbol: _ZTVN10cxxabiv117class_type_infoE in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/home/rishi/projects/php-ext-snappy/modules/snappy.so' - /home/rishi/projects/php-ext-snappy/modules/snappy.so: undefined symbol: _ZTVN10cxxabiv117class_type_infoE in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/home/rishi/projects/php-ext-snappy/modules/snappy.so' - /home/rishi/projects/php-ext-snappy/modules/snappy.so: undefined symbol: _ZTVN10cxxabiv117class_type_infoE in Unknown on line 0

PHP : /usr/bin/php PHP_SAPI : cli PHP_VERSION : 5.3.10-1ubuntu3.7 ZEND_VERSION: 2.3.0 PHP_OS : Linux - Linux FAB-HO-186-L 3.5.0-39-generic #60~precise1-Ubuntu SMP Wed Aug 14 15:38:41 UTC 2013 x86_64 INI actual : /home/rishi/projects/php-ext-snappy/tmp-php.ini More .INIs :
CWD : /home/rishi/projects/php-ext-snappy Extra dirs :

VALGRIND : Not used

TIME START 2013-09-09 12:24:59

FAIL Test snappy_compress() function : basic functionality [tests/001.phpt] FAIL Test snappy_compress() function : error conditions [tests/002.phpt] FAIL Test snappy_compress() function : variation [tests/003.phpt] FAIL Test snappy_uncompress() function : basic functionality [tests/004.phpt] FAIL Test snappy_uncompress() function : error conditions [tests/005.phpt]

FAIL Test phpinfo() displays snappy info [tests/info.phpt]

TIME END 2013-09-09 12:25:00

TEST RESULT SUMMARY

Exts skipped : 0

Exts tested : 44

Number of tests : 6 6 Tests skipped : 0 ( 0.0%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 6 (100.0%) (100.0%) Expected fail : 0 ( 0.0%) ( 0.0%)

Tests passed : 0 ( 0.0%) ( 0.0%)

Time taken : 1 seconds

FAILED TEST SUMMARY

Test snappy_compress() function : basic functionality [tests/001.phpt] Test snappy_compress() function : error conditions [tests/002.phpt] Test snappy_compress() function : variation [tests/003.phpt] Test snappy_uncompress() function : basic functionality [tests/004.phpt] Test snappy_uncompress() function : error conditions [tests/005.phpt]

Test phpinfo() displays snappy info [tests/info.phpt]

You may have found a problem in PHP. This report can be automatically sent to the PHP QA team at http://qa.php.net/reports and http://news.php.net/php.qa.reports This gives us a better understanding of PHP's behavior. If you don't want to send the report immediately you can choose option "s" to save it. You can then email it to qa-reports@lists.php.net later. Do you want to send this report now? [Yns]: no

kjdev commented 11 years ago

Update config.m4. (db3abe6ef6b0e74c8deed0f285cdc9d8cff094ef) Added stdc++ library to the link.