Skip to content

Missing stdc++ in during linking? #4

Description

@skwirrel

"make test" failed for me (running on Ubuntu 12.10) with

Warning: PHP Startup: Unable to load dynamic library '/www/sass/sassphp/modules/sass.so' - /www/sass/sassphp/modules/sass.so: undefined symbol: _ZTVN10__cxxabiv117__class_type_infoE in Unknown on line 0

I suspect this may be similar to...
kjdev/php-ext-snappy#1

After some digging I re-ran the libtool link command with an additional "-lstdc++" thus...

libtool --mode=link cc -DPHP_ATOM_INC -I/www/sass/sassphp/include -I/www/sass/sassphp/main -I/www/sass/sassphp -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib  -DHAVE_CONFIG_H  -g -O2  -lsass -L/www/sass/sassphp/lib/libsass/ -lstdc++ -o sass.la -export-dynamic -avoid-version -prefer-pic -module -rpath /www/sass/sassphp/modules  src/sass.lo src/utilities.lo 

Followed by the libtool install...

libtool --mode=install cp ./sass.la /www/sass/sassphp/modules

When I reran make-test it all worked fine.

I appreaciate this isn't the final solution - I guess there is some magic needs adding to the .m4 file or some such but I'm afraid this is at the very edge of my understanding. I hope this helps.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions