Re: 2 problems with extension
| From: | Adam Klobukowski | Date: | Fri, 13 Jun 2008 20:21:31 +0000 |
| Subject: | Re: 2 problems with extension | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-5528@lists.php.net to get a copy of this message | ||
Antony Dovgal pisze:
On 13.06.2008 00:21, Adam Klobukowski wrote:After /etc/init.d/apache2 restart In /var/log/apache2/error.logg /usr/sbin/apache2: symbol lookup error: /usr/lib/php5/20060613+lfs/myext.so: undefined symbol: yamiNetInitialize This symbol is provided by library I'd like to link with my extension. And now, config.m4: PHP_ARG_ENABLE(myext, whether to enable myext support,Please don't stop in the middle of the sentence =) Which symbols does it complain about? Hint: paste ALL the output you get.PHP_ADD_LIBRARY_WITH_PATH() Look for examples in PECL/*/*.m4I have /usr/lib/libyamic.a I've added to my config.m4: PHP_ADD_LIBRARY_WITH_PATH(yamic, /usr/lib, GRA_SHARED_LIBADD) And now, PHP complains aboaut unresolve symbols in my extension :(
[ --enable-myext Enable myext support])if test "$PHP_myext" != "no"; then PHP_ADD_LIBRARY_WITH_PATH(yamic, /usr/lib, MYEXT_SHARED_LIBADD) PHP_NEW_EXTENSION(myext, _source1.c _source2.c _source3.c _myext.c _source4.c _source5.c _source6.c _source7.c _source8.c, $ext_shared) fi Adam Klobukowski