installing dynamic extension: http

This is a discussion on installing dynamic extension: http within the PHP Language forums, part of the PHP Programming Forums category; I am unable to get my downloaded extension from pecl to link up with php properly. seems like the php....


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-12-2006
zpinhead
 
Posts: n/a
Default installing dynamic extension: http

I am unable to get my downloaded extension from pecl to link up with
php
properly. seems like the php.so
I could not use pear install http. pear claimed the extension was
already
installed. that is certainly not true.

I downloaded the http extension from pecl.

cvs -d:pserver:cvsread@cvs.php.net:/repository co pecl/http

I did a phpize,
and configure. my zlibrary is old, so I said skip it.

../configure --without-http-zlib-compression

did a make - everthing compiled okay.

then I did a make install:
(actually sudo make install)
executing bashrc file
executing bashrc file
Installing shared extensions:
/usr/local/lib/php/extensions/no-debug-non-zts-20050922/
executing bashrc file
executing bashrc file
executing bashrc file
Installing header files: /usr/local/include/php/

then I tried make test
and got this:

libdev: make test
/bin/bash /users/es287/develop/pecl/pecl/http/libtool --mode=install cp
../http.la /users/es287/develop/pecl/pecl/http/modules
executing bashrc file
cp ./.libs/http.so /users/es287/develop/pecl/pecl/http/modules/http.so
chmod +x /users/es287/develop/pecl/pecl/http/modules/http.so
cp ./.libs/http.lai /users/es287/develop/pecl/pecl/http/modules/http.la
----------------------------------------------------------------------
Libraries have been installed in:
/users/es287/develop/pecl/pecl/http/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:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- use the `-RLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
executing bashrc file

executing bashrc file
Build complete.
executing bashrc file
(It is safe to ignore warnings about tempnam and tmpnam).
executing bashrc file

executing bashrc file

Warning: Unknown: Unable to load dynamic library 'modules/http.so' -
ld.so.1: /usr/local/bin/php: fatal: relocation error: file
modules/http.so: symbol OnUpdateBool: referenced symbol not found in
Unknown on line 0

Warning: Unknown: Unable to load dynamic library 'modules/http.so' -
ld.so.1: /usr/local/bin/php: fatal: relocation error: file
modules/http.so: symbol OnUpdateBool: referenced symbol not found in
Unknown on line 0

================================================== ===================
CWD : /develop/es287/pecl/pecl/http
PHP : /usr/local/bin/php
PHP_SAPI : cli
PHP_VERSION : 5.1.4
ZEND_VERSION: 2.1.0
PHP_OS : SunOS - SunOS libdev 5.8 Generic_108528-23 sun4u
INI actual : /usr/local/lib/php.ini
More .INIs :
Extra dirs :
================================================== ===================
Running selected tests.
SKIP HttpMessage [tests/HttpMessage_001.phpt] reason: need ext/http
all the tests are skipped. Because the extension did not load
properly,
I assume.
Thanks a lot,
zippy

Reply With Quote
  #2 (permalink)  
Old 09-12-2006
zpinhead
 
Posts: n/a
Default Re: installing dynamic extension: http

sorry that my thinking did not match my writing very clearly.
I was trying to say, that there is some problem linking the php.so
that is loaded into apache, and the http.so file.
I don't actually know what happens in the apache environment - I have
not gotten any further than testing from the command line, as shown
below.

Zippy


zpinhead wrote:
> I am unable to get my downloaded extension from pecl to link up with
> php
> properly. seems like the php.so
> I could not use pear install http. pear claimed the extension was
> already
> installed. that is certainly not true.
>
> I downloaded the http extension from pecl.
>
> cvs -d:pserver:cvsread@cvs.php.net:/repository co pecl/http
>
> I did a phpize,
> and configure. my zlibrary is old, so I said skip it.
>
> ./configure --without-http-zlib-compression
>
> did a make - everthing compiled okay.
>
> then I did a make install:
> (actually sudo make install)
> executing bashrc file
> executing bashrc file
> Installing shared extensions:
> /usr/local/lib/php/extensions/no-debug-non-zts-20050922/
> executing bashrc file
> executing bashrc file
> executing bashrc file
> Installing header files: /usr/local/include/php/
>
> then I tried make test
> and got this:
>
> libdev: make test
> /bin/bash /users/es287/develop/pecl/pecl/http/libtool --mode=install cp
> ./http.la /users/es287/develop/pecl/pecl/http/modules
> executing bashrc file
> cp ./.libs/http.so /users/es287/develop/pecl/pecl/http/modules/http.so
> chmod +x /users/es287/develop/pecl/pecl/http/modules/http.so
> cp ./.libs/http.lai /users/es287/develop/pecl/pecl/http/modules/http.la
> ----------------------------------------------------------------------
> Libraries have been installed in:
> /users/es287/develop/pecl/pecl/http/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:
> - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
> during execution
> - use the `-RLIBDIR' linker flag
>
> See any operating system documentation about shared libraries for
> more information, such as the ld(1) and ld.so(8) manual pages.
> ----------------------------------------------------------------------
> executing bashrc file
>
> executing bashrc file
> Build complete.
> executing bashrc file
> (It is safe to ignore warnings about tempnam and tmpnam).
> executing bashrc file
>
> executing bashrc file
>
> Warning: Unknown: Unable to load dynamic library 'modules/http.so' -
> ld.so.1: /usr/local/bin/php: fatal: relocation error: file
> modules/http.so: symbol OnUpdateBool: referenced symbol not found in
> Unknown on line 0
>
> Warning: Unknown: Unable to load dynamic library 'modules/http.so' -
> ld.so.1: /usr/local/bin/php: fatal: relocation error: file
> modules/http.so: symbol OnUpdateBool: referenced symbol not found in
> Unknown on line 0
>
> ================================================== ===================
> CWD : /develop/es287/pecl/pecl/http
> PHP : /usr/local/bin/php
> PHP_SAPI : cli
> PHP_VERSION : 5.1.4
> ZEND_VERSION: 2.1.0
> PHP_OS : SunOS - SunOS libdev 5.8 Generic_108528-23 sun4u
> INI actual : /usr/local/lib/php.ini
> More .INIs :
> Extra dirs :
> ================================================== ===================
> Running selected tests.
> SKIP HttpMessage [tests/HttpMessage_001.phpt] reason: need ext/http
> all the tests are skipped. Because the extension did not load
> properly,
> I assume.
> Thanks a lot,
> zippy


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:00 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0