php-install Digest 8 Feb 2002 05:44:39 -0000 Issue 689
Topics (messages 5958 through 5961):
Re: Compile errors php/apache/ldap
5958 by: Corey Anson
./configure problems with php4.1.1
5959 by: Cary_Anderson.dot.ca.gov
Apache - Mysql [installed successfully] - php errors on make
5960 by: John Cuthbert
Calling a php function from html file.
5961 by: Archer Vallesfin
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 ---
I was able to find the answer to my problem on the openldap website.
I am posting the answer here for future reference.
In the file src/Configuration.tmpl change the values to:
EXTRA_LDFLAGS=-L/u01/app/openldap-2.0.21/libraries
EXTRA_LIBS=-lldap -llber
EXTRA_INCLUDES=-I/u01/app/openldap-2.0.21/include
The path /u01/app is the location I extracted the source files for
openldap.
Corey Anson wrote:
> Could someone please point me in the right direction or shed some light
> on my problem.
>
> Solaris 2.6
> Apache 1.3.22
> OpenLDAP 2.0.21
> php 4.1.1
> mod ssl 2.8.5
> postgresql 7.1.3
> gcc 2.95.3
> libgcc 3.0.3
>
> I did the install for openldap with the following configure:
> CC=gcc ./configure --enable-ldbm=no --enable-ldap
>
> I then installed mod ssl with:
> ./configure --with-apache=/u01/app/apache_1.3.22
>
> Then I moved on to php with:
> ./configure --prefix=/u01/app/php --with-openssl
> --with-apache=/u01/app/apache_1.3.22 --with-dom --with-gd
> --enable-dg-native-ttf --with-ldap --enable-mailparse
> --with-pgsql=/u01/app/pgsql --with-snmp --enable-ucd-snmp-hack
> --with-zlib-dir=/usr/local
>
> For apache I used this:
> ./configure --prefix=/u01/app/apache-1.3 --enable-module=so
> --enable-module=rewrite --enable-module=info --enable-module=ssl
> --activate-module=src/modules/php4/libphp4.a --enable-module=php4
> --enable-shared=ssl
>
> The make for apache compiles upto ldap and php which produces an
> Undefined first referenced
> symbol in file
> ldap_first_reference modules/php4/libphp4.a(ldap.o)
> ldap_count_values_len modules/php4/libphp4.a(ldap.o)
> ldap_memfree modules/php4/libphp4.a(ldap.o)
> .
> .
> .
> ldap_count_entries modules/php4/libphp4.a(ldap.o)
> ld: fatal: Symbol referencing errors. No output written to httpd
> collect2: ld returned 1 exit status
> make[2]: *** [target_static] Error 1
> make[2]: Leaving directory `/u01/app/apache_1.3.22/src'
> make[1]: *** [build-std] Error 2
> make[1]: Leaving directory `/u01/app/apache_1.3.22'
> make: *** [build] Error 2
>
>
> orion:/u01/app/apache_1.3.22 >echo $PATH
> .:/usr/openwin/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:
> /bin:/sbin:/usr/ucb:/usr/ccs/bin:/opt/sudo:
>
> orion:/u01/app/apache_1.3.22 >echo $LD_LIBRARY_PATH
> /usr/openwin/lib:/usr/lib:/usr/local/lib:/u01/app/apache-1.3/libexec:
> /etc/lib:/u01/app/php/lib/php/:/usr/include:/usr/local/include
>
> If anybody knows where I can RTFM or an answer then please let me know.
>
> Thanks
> Corey Anson
> [EMAIL PROTECTED]
>
--- End Message ---
--- Begin Message ---
Trying to install php on an irix 6.5.13 server and I am getting the
following error after implementing the following ./configure
I have successfully installed zlib1.13, gd1.0.2, libpng1.2.0, jpeg-6b,
mysql3.23.47, and freetype2.0.4, and apache1.3.22
Not sure what my problem is here
Any help would be greatly appreciated.
Cary Anderson
SGI Sys Admin
Caltrans
==========================================================
CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure \
--with-apxs=/usr/local/apache2/bin/apxs \
--with-gd \
--with-jpeg \
--with-zlib \
--with-png \
--with-freetype \
--with-mysql=/usr/local/mysql
============================================================
+--------------------------------------------------------------------+
| *** ATTENTION *** |
| |
| Something is likely to be messed up here, because the configure |
| script was not able to detect a simple feature on your platform. |
| This is often caused by incorrect configuration parameters. Please |
| see the file debug.log for error messages. |
| |
| If you are unable to fix this, send the file debug.log to the |
| [EMAIL PROTECTED] mailing list and include appropiate |
| information about your setup. |
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+--------------------------------------------------------------------+
Thank you for using PHP.
# more debug.log
CONFIGURE: './configure' '--with-apxs=/usr/local/apache2/bin/apxs' '
--with-gd' '--with-jpeg' '--with-zlib' '--with-png' '--with-fr
eetype' '--with-mysql=/usr/local/mysql'
CC: gcc
CFLAGS: -g -O2
CPPFLAGS: -I/usr/local/include -D_XPG_IV -DIRIX -DUSE_HSREGEX -DUSE_EXPAT
CXX:
CXXFLAGS:
INCLUDES: -I/usr/local/apache2/include -I$(top_builddir)/Zend
-I/usr/local/mysql/include
LDFLAGS: -L/usr/local/lib -Wl,-rpath,/usr/local/mysql/lib
-L/usr/local/mysql/lib
LIBS: -lmysqlclient -lz -lgd -lz -lcrypt -lm -ldl -lsocket -lsocket
-lcrypt
DLIBS:
SAPI: apache
PHP_RPATHS: /usr/local/mysql/lib
uname -a: IRIX wave 6.5 07091542 IP32
gcc -o conftest -g -O2 -I/usr/local/include -D_XPG_IV -DIRIX -DUSE_HSREGEX
-DUSE_EXPAT -L/usr/local/lib -Wl,-rpath,/usr/local/mysql/
lib -L/usr/local/mysql/lib conftest.c -lmysqlclient -lz -lgd -lz -lcrypt
-lm -ldl -lsocket -lsocket -lcrypt 1>&5
ld32: WARNING 84: /usr/local/mysql/lib/libmysqlclient.a is not used for
resolving any symbol.
ld32: WARNING 84: /usr/local/lib/libgd.so is not used for resolving any
symbol.
ld32: WARNING 84: /usr/lib32/libcrypt.so is not used for resolving any
symbol.
ld32: WARNING 84: /usr/lib32/libdl.so is not used for resolving any symbol.
ld32: WARNING 84: /usr/lib32/libsocket.so is not used for resolving any
symbol.
ld32: WARNING 134: weak definition of setkey in /usr/lib32/libcrypt.so
preempts that weak definition in /usr/lib32/mips3/libc.so.
ld32: WARNING 134: weak definition of encrypt in /usr/lib32/libcrypt.so
preempts that weak definition in /usr/lib32/mips3/libc.so.
ld32: WARNING 85: definition of _crypt in /usr/lib32/libcrypt.so preempts
that definition in /usr/lib32/mips3/libc.so.
ld32: WARNING 134: weak definition of crypt in /usr/lib32/libcrypt.so
preempts that weak definition in /usr/lib32/mips3/libc.so.
ld32: WARNING 85: definition of _setkey in /usr/lib32/libcrypt.so preempts
that definition in /usr/lib32/mips3/libc.so.
ld32: WARNING 85: definition of _encrypt in /usr/lib32/libcrypt.so preempts
that definition in /usr/lib32/mips3/libc.so.
--- End Message ---
--- Begin Message ---
Hello, I am trying to get php to work [trying indicating Im not getting
anywhere :(]
I run ./configure with the various options I want and it doesnt give any
errors, then I run make (or jump into make install) either way, I get an
error:
make[1]: Entering directory `/root/php-4.1.1'
/bin/sh /root/php-4.1.1/libtool --silent --mode=link gcc -I.
-I/root/php-4.1.1/ -I/root/php-4.1.1/main -I/root/php-4.1.1
-I/usr/local/apache/include -I/root/php-4.1.1/Zend
-I/root/php-4.1.1/ext/mysql/libmysql -I/root/php-4.1.1/ext/xml/expat
-DLINUX=22 -DUSE_HSREGEX -DNO_DL_NEEDED -I/root/php-4.1.1/TSRM -g -O2
-prefer-pic -o libphp4.la -rpath /root/php-4.1.1/libs -avoid-version
stub.lo Zend/libZend.la sapi/apache/libsapi.la main/libmain.la
regex/libregex.la ext/mysql/libmysql.la ext/pcre/libpcre.la
ext/posix/libposix.la ext/session/libsession.la ext/standard/libstandard.la
ext/xml/libxml.la TSRM/libtsrm.la -ldl -lcrypt -lresolv -lm -ldl -lnsl
-lresolv -lcrypt
stub.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/root/php-4.1.1'
make: *** [all-recursive] Error 1
[root@localhost php-4.1.1]#
Anyone know how to fix this please ?
--
Head of Project Totally Confused And Lost
www.jsa3d.co.uk | www.rrpg.co.uk
--- End Message ---
--- Begin Message ---
Good Day!
How can I call a function from a PHP file when
the caller of the function is an HTML.
sample:
Myphp.php
[
- function Add()
{
.....
}
]
Myhtml.html
[
<html>
<title> Sample </title>
<body>
// I would like to call Add() function here.... How???
</body>
</html>
]
--- End Message ---