php-install Digest 23 Jul 2002 12:04:43 -0000 Issue 944

Topics (messages 7866 through 7874):

libphp4.so, Sun Solaris 8, relocation error
        7866 by: Thomas Langås

Re: php-sybase client core on mandrake 8.2
        7867 by: Matthew Kurowski

PHP 4.2.2 and Apache 1.3.26 Installation
        7868 by: Christopher Lyon

Installation problems PHP 4.2.2
        7869 by: Hans van Kilsdonk

Php-Install on AIX 4.3
        7870 by: Ajith Hewagamage

subscribe to the PHP installation mailing list
        7871 by: Ajith Hewagamage

php 4.2.2 problem
        7872 by: Philipp Steinkrüger
        7873 by: Philipp Steinkrüger

Re: [PHP-DEV] libphp4.so, Sun Solaris 8, relocation error
        7874 by: Thomas Langås

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
OS:
Sun Solaris 8

Problem:
dilbert:/local/apache# bin/httpd  
Syntax error on line 244 of /local/apache/conf/httpd.conf:
Cannot load /local/apache/libexec/libphp4.so into server: ld.so.1: bin/httpd: fatal: 
relocation error: file 
/local/apache/libexec/libphp4.so: symbol __floatdidf: referenced symbol not found

Output from ldd:
dilbert:/usr/src/web/php-4.2.2# ldd -d  /local/apache/libexec/libphp4.so 
        libdl.so.1 =>    /lib/libdl.so.1
        libpam.so.1 =>   /lib/libpam.so.1
        libxmlrpc.so.0 =>        /local/lib/libxmlrpc.so.0
        libexpat.so.0 =>         /local/lib/libexpat.so.0
        libpdf.so.1 =>   /local/lib/libpdf.so.1
        libz.so.1 =>     /lib/libz.so.1
        libsched.so.1 =>         /lib/libsched.so.1
        libgen.so.1 =>   /lib/libgen.so.1
        libsocket.so.1 =>        /lib/libsocket.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        libmysqlclient.so.10 =>  /local/lib/mysql/libmysqlclient.so.10
        libldap.so.2 =>  /local/lib/libldap.so.2
        liblber.so.2 =>  /local/lib/liblber.so.2
        libintl.so.1 =>  /lib/libintl.so.1
        libt1.so.1 =>    /local/lib/libt1.so.1
        libm.so.1 =>     /lib/libm.so.1
        libxml2.so.2 =>  /local/lib/libxml2.so.2
        libgdbm.so.2 =>  /local/lib/libgdbm.so.2
        libcrypt_i.so.1 =>       /lib/libcrypt_i.so.1
        libresolv.so.2 =>        /lib/libresolv.so.2
        libclntsh.so.8.0 =>      /local/oracle/lib/libclntsh.so.8.0
        libc.so.1 =>     /lib/libc.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libwtc8.so =>    /local/oracle/lib/libwtc8.so
        libaio.so.1 =>   /lib/libaio.so.1
        /usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
        symbol not found: __floatdidf           (/local/apache/libexec/libphp4.so)
        symbol not found: ap_block_alarms               
(/local/apache/libexec/libphp4.so)
        symbol not found: ap_unblock_alarms             
(/local/apache/libexec/libphp4.so)
        symbol not found: ap_user_name          (/local/apache/libexec/libphp4.so)
        symbol not found: ap_max_requests_per_child             
(/local/apache/libexec/libphp4.so)
        symbol not found: ap_server_root                
(/local/apache/libexec/libphp4.so)
        symbol not found: ap_user_id            (/local/apache/libexec/libphp4.so)
        symbol not found: ap_group_id           (/local/apache/libexec/libphp4.so)
        symbol not found: top_module            (/local/apache/libexec/libphp4.so)


Output from crle:
dilbert:/usr/src/web/php-4.2.2# crle

Configuration file [3]: /var/ld/ld.config  
  Default Library Path (ELF):   
/local/lib:/lib:/usr/lib:/store/lib:/local/oracle_client/lib:/local/oracle/lib
  Trusted Directories (ELF):    
/local/lib:/lib:/usr/lib:/store/lib:/local/oracle_client/lib:/local/oracle/lib

Command line:
  crle -c /var/ld/ld.config -l 
/local/lib:/lib:/usr/lib:/store/lib:/local/oracle_client/lib:/local/oracle/lib -s 
/local/lib:/lib:/usr/lib:/store/lib:/local/oracle_client/lib:/local/oracle/lib


Configure-line used:
./configure --with-mysql=/local --with-oracle=/local/oracle --with-ldap=/local 
--with-gd=/local --with-zlib 
--with-exec-dir=/local/bin --with-versioning --with-gdbm=/local --with-mod_charset 
--with-dbase --with-filepro 
--with-xml=/local --with-ttf --with-t1lib=/local --without-snmp --enable-calendar 
--enable-pic --enable-inline-optimization 
--enable-magic-quotes --enable-track-vars --enable-safe-mode --enable-sysvsem 
--enable-sysvshm --enable-trans-sid --enable-yp 
--enable-ftp --with-apxs=/local/apache/bin/apxs --enable-static --with-sablot=/local 
--with-config-file-path=/local/apache/conf/php4 --with-pdflib=shared --enable-bcmath 
--with-sysvsem --with-iconv 
--with-gettext --enable-shared --with-xslt=sablot --with-curl=/local 
--with-xmlrpc=/local --with-dom=/local 
--enable-xlst=/local --with-openssl=/local --prefix=/local --with-pdflib=/local 
--with-expat-dir=/local --enable-sigchild

A few environment vars:
LD_LIBRARY_PATH=/local/lib:/lib:/usr/lib:/store/lib:/local/oracle_client/lib:/local/oracle/lib
PATH=/bin:/usr/bin:/usr/ucb:/usr/bin/X11:/usr/local/bin:/store/bin:/usr/ccs/bin:/sbin:/usr/sbin

Anyone around with a possible solution, or does anyone
need more info to help solve the problem?  I would be
happy to provide more info, and I would be very
gratefull for a solution to this problem.


-- 
Thomas
--- End Message ---
--- Begin Message ---
> I have a very odd problem on a stock Mandrake Linux 8.2 installation...
> everything is as installed without modification except for the following 3
> packages (which were kindly sent to me from A. Moloksher):
>
> freetds-0.53.1-1mdk
> freetds-devel-0.53.1-1mdk
> php-sybase-4.1.2-1mdk
>
> Connection to a MS SQL 2000 or MS SQL 7 server work as does the db select.
> ANY query whatsoever produces a core dump (listed below). I've tried
queries
> and stored procedure calls to the same result. (I show a console session
> below but the effect is the same through a browser.)

Changing the global tds protocol to 7.0 at port 1433 stopped the segfaults:
odd since my [sql70] definition was valid and specified the same items...
next time I will make a scacrifice _before_ hand...

N.B., so far I've had success accessing both SQL 7 and SQL 2000 flawlessly
under this config (above).

Also have tested with the same positive results against SQL 7 using
freetds-0.53.2mdk.

Thanks again Alexander for the precompiled sybase.o - sometimes the easiest
way is the best way and you took alot of stress out of my life when Apache
was clearly trying to put me in an early grave!  ;-)

Best,

Matthew Kurowski

--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
OS:
Red Hat 7.3
 
I am having a bit of a problem getting the two of these things
working. I have extracted both PHP and Apache, ran ./configure
- -with-mysql -with-apache=/usr/local/apache_1.3.26 from the php
directory. Then I ran make and make install. Once that was done I ran
the Apache ./configure, make and make install. I went to edit the
httpd.conf file and added the application/x-httpd-phpX .phpx stuff.
Once I was done with all of that I went to test to see if PHP was
working via some test pages and it looks like a no go. I am getting
just the raw html php code. Anybody have an idea of what I am missing
or what didn't get loaded?
 
 
 
 
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
 
iQA/AwUBPTzvcO7EIRdMOIylEQL3mgCfR59HfDLq3lnON6Fi8F8c5uu5Fe0AnRMz
We/80ljqpZK34fDw+tr3zV/k
=1Zvv
-----END PGP SIGNATURE-----
--- End Message ---
--- Begin Message ---
Hello everyone,

I'm experiencing some problems when installing PHP 4.2.2. I have PHP
4.2.1 installed on our server, with the following options:

 './configure' '--prefix=/usr' '--with-apxs=/usr/sbin/apxs' \
 '--with-gd=/usr/local' '--with-gettext=/usr' '--enable-safe-mode' \
 '--with-config-file-path=/etc/httpd' '--with-exec-dir=/usr/bin' \
 '--with-zlib' '--enable-magic-quotes' '--with-regex=system' \
 '--with-ttf=/usr' '--enable-track-vars' '--enable-xml' \
 '--disable-debug' '--with-libdir=/usr/lib' '--with-pgsql=shared' \
 '--with-ldap' '--with-imap' '--enable-shared-pdflib' \
 '--with-pdflib=/usr/local' '--with-jpeg-dir=/usr/local/lib' \
 '--with-png-dir=/usr' '--enable-ftp' '--with-curl=/usr/local/lib'

When I install PHP 4.2.2. with the same options, the install goes ok.
But when I try to reload Apache, I get the following error:

Cannot load /home/lib/apache/libphp4.so into server:
/home/lib/apache/libphp4.so: undefined symbol: php_startup_internal_extensions

Does anyone know how to solve this problem? Thanks in advance.

Kind regards,
 - Hans

--- End Message ---
--- Begin Message ---

I need a help to Install PHP on AIX 4.3 and Apache 1.3.26.

PHP ver     : 4.2.1

Apache ver : 1.3.26

AIX            : 4.3

         When I try to run " make" command it gives errors on "pcre.c" .........some C 
files..... Does anybody knows why this happen ?

 

Aj.

 

           



---------------------------------
Do You Yahoo!?
Yahoo! Health - Feel better, live better
--- End Message ---
--- Begin Message ---
  


---------------------------------
Do You Yahoo!?
Yahoo! Health - Feel better, live better
--- End Message ---
--- Begin Message ---
Hi All,

i am having a problem with the new php 4.2.2 and mysql support.
I sucked mysql-3.23 binary from mysql.com and installed it. its working
fine with my apache 1.3.26 and php 4.2.1. now i tried to install php 4.2.2 with the 
same ./configure line i used with php 4.2.1. this is what i used:


./configure --with-apache=../apache_1.3.26 --with-mysql=/usr/local/mysql 
--with-gd=../gd-1.8.4 --with-msql --with-openssl --with-zlib --with-png 
--with-png-dir=/usr --with-jpeg-dir=/usr/local --prefix=/usr/local/php-version 
--exec-prefix=/usr/local/php-version

this worked with php 4.2.1. /usr/local/mysql is a root of mysql and
includes the dirs "include" "lib", etc. "lib" includes libmysqlclient.a.

after 4.2.2 configure failed i tried to add /usr/local/mysql/lib to ld.so.conf and ran 
ldconfig, but that didnt help.

interesting configure-lines:
        checking for MySQL support... yes
        checking for mysql_close in -lmysqlclient... no
        checking for mysql_error in -lmysqlclient... no

then configure exits with: 
        configure: error: mysql configure failed. Please check  config.log for more 
information.

Here is the relevant config.log part:

mysql_close()
; return 0; }
configure:40115: checking for mysql_error in -lmysqlclient
configure:40134: gcc -o conftest -g -O2
        -L/usr/lib -L/usr/local/mysql/lib
        -Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib 
-Wl,-rpath,/usr/src/gd-1.8.4 -L/usr/src/gd-1.8.4 -Wl,-rpath,/usr/local/Hughes/lib 
-L/usr/local/Hughes/lib -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient  -lz -lmsql 
-lgd -lpng -lz
-ljpeg -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 
1>&5/usr/bin/ld: cannot find -lmsql
collect2: ld returned 1 exit status
configure: failed program was:
#line 40123 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_error();

int main() {
mysql_error()
; return 0; }


Hope you can help me !

Best Regards,
Philipp
--- End Message ---
--- Begin Message ---
Hi All,

i am having a problem with the new php 4.2.2 and mysql support.
I sucked mysql-3.23 binary from mysql.com and installed it. its working
fine with my apache 1.3.26 and php 4.2.1. now i tried to install php 4.2.2 with the 
same ./configure line i used with php 4.2.1. this is what i used:


./configure --with-apache=../apache_1.3.26 --with-mysql=/usr/local/mysql 
--with-gd=../gd-1.8.4 --with-msql --with-openssl --with-zlib --with-png 
--with-png-dir=/usr --with-jpeg-dir=/usr/local --prefix=/usr/local/php-version 
--exec-prefix=/usr/local/php-version

this worked with php 4.2.1. /usr/local/mysql is a root of mysql and
includes the dirs "include" "lib", etc. "lib" includes libmysqlclient.a.

after 4.2.2 configure failed i tried to add /usr/local/mysql/lib to ld.so.conf and ran 
ldconfig, but that didnt help.

interesting configure-lines:
        checking for MySQL support... yes
        checking for mysql_close in -lmysqlclient... no
        checking for mysql_error in -lmysqlclient... no

then configure exits with: 
        configure: error: mysql configure failed. Please check  config.log for more 
information.

Here is the relevant config.log part:

mysql_close()
; return 0; }
configure:40115: checking for mysql_error in -lmysqlclient
configure:40134: gcc -o conftest -g -O2
        -L/usr/lib -L/usr/local/mysql/lib
        -Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib 
-Wl,-rpath,/usr/src/gd-1.8.4 -L/usr/src/gd-1.8.4 -Wl,-rpath,/usr/local/Hughes/lib 
-L/usr/local/Hughes/lib -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient  -lz -lmsql 
-lgd -lpng -lz
-ljpeg -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lresolv -lcrypt 
1>&5/usr/bin/ld: cannot find -lmsql
collect2: ld returned 1 exit status
configure: failed program was:
#line 40123 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_error();

int main() {
mysql_error()
; return 0; }


Hope you can help me !

Best Regards,
Philipp
--- End Message ---
--- Begin Message ---
Thomas Langås:
> Output from ldd:
> dilbert:/usr/src/web/php-4.2.2# ldd -d  /local/apache/libexec/libphp4.so 
>         libdl.so.1 =>    /lib/libdl.so.1
>         libpam.so.1 =>   /lib/libpam.so.1
>         libxmlrpc.so.0 =>        /local/lib/libxmlrpc.so.0
>         libexpat.so.0 =>         /local/lib/libexpat.so.0
>         libpdf.so.1 =>   /local/lib/libpdf.so.1
>         libz.so.1 =>     /lib/libz.so.1
>         libsched.so.1 =>         /lib/libsched.so.1
>         libgen.so.1 =>   /lib/libgen.so.1
>         libsocket.so.1 =>        /lib/libsocket.so.1
>         libnsl.so.1 =>   /lib/libnsl.so.1
>         libmysqlclient.so.10 =>  /local/lib/mysql/libmysqlclient.so.10
>         libldap.so.2 =>  /local/lib/libldap.so.2
>         liblber.so.2 =>  /local/lib/liblber.so.2
>         libintl.so.1 =>  /lib/libintl.so.1
>         libt1.so.1 =>    /local/lib/libt1.so.1
>         libm.so.1 =>     /lib/libm.so.1
>         libxml2.so.2 =>  /local/lib/libxml2.so.2
>         libgdbm.so.2 =>  /local/lib/libgdbm.so.2
>         libcrypt_i.so.1 =>       /lib/libcrypt_i.so.1
>         libresolv.so.2 =>        /lib/libresolv.so.2
>         libclntsh.so.8.0 =>      /local/oracle/lib/libclntsh.so.8.0
>         libc.so.1 =>     /lib/libc.so.1
>         libmp.so.2 =>    /lib/libmp.so.2
>         libwtc8.so =>    /local/oracle/lib/libwtc8.so
>         libaio.so.1 =>   /lib/libaio.so.1
>         /usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
>         symbol not found: __floatdidf           (/local/apache/libexec/libphp4.so)

When I added "LDFLAGS += -lgcc" to the topdir-Makefile, this went away
and everything seems to work now. Why isn't this included by default?

-- 
Thomas
--- End Message ---

Reply via email to