php-install Digest 28 Apr 2002 13:39:31 -0000 Issue 808
Topics (messages 6758 through 6762):
Sablotron/XSLT problems
6758 by: Bill Bradford
6759 by: Bill Bradford
6760 by: Bill Bradford
Problem with msession when compiling Apache 1.3.24 and PHP 4.2.0 (FreeBSD 4.5)
6761 by: Carsten Gehling
INstall on solaris 8 sparc/..
6762 by: Stephen D. Myles
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 ---
Trying to get some of the XML/XSLT examples out of the "Programming
PHP" book to work, but compiling PHP w/Sablotron (by the instructions, as a
DSO module) doesent seem to work right. Here's what I get when I try to
start up Apache with the generated libphp4.so:
root@chip:/www/apache/libexec> apachectl start
Syntax error on line 207 of /www/apache/conf/httpd.conf:
Cannot load /www/apache/libexec/libphp4.so into server: ld.so.1:
/www/apache/bin/httpd: fatal: relocation error: file /usr/local/lib/libsablot.so.0:
symbol __gxx_personality_v0: referenced symbol not found
/usr/bin/apachectl start: httpd could not be started
This is Solaris 8 (latest patches), Apache 1.3.24, PHP 4.2.0.
Any suggestions would be greatly appreciated; I've been working on this
for about two days now and have tried on two different SPARC systems with
identical results.
Bill
--
Bill Bradford "Fear leads to anger. Anger leads to hate. Hate leads
[EMAIL PROTECTED] to using Windows for mission-critical applications."
Austin, TX -- What Yoda *meant* to say
--- End Message ---
--- Begin Message ---
On Sat, Apr 27, 2002 at 09:59:32PM -0500, Bill Bradford wrote:
> root@chip:/www/apache/libexec> apachectl start
> Syntax error on line 207 of /www/apache/conf/httpd.conf:
> Cannot load /www/apache/libexec/libphp4.so into server: ld.so.1:
>/www/apache/bin/httpd: fatal: relocation error: file /usr/local/lib/libsablot.so.0:
>symbol __gxx_personality_v0: referenced symbol not found
> /usr/bin/apachectl start: httpd could not be started
A followup, from config.log. This is sablot 0.90.
configure:66224: checking whether to enable XML support
configure:66263: result: yes
configure:66268: checking external libexpat install dir
configure:66308: result: no
configure:66962: checking for XMLRPC-EPI support
configure:67002: result: no
configure:67007: checking libexpat dir for XMLRPC-EPI
configure:67047: result: no
configure:69417: checking whether to enable xslt support
configure:69456: result: yes
configure:69461: checking for XSLT Sablotron backend
configure:69501: result: yes
configure:69506: checking libexpat dir for Sablotron XSL support
configure:69546: result: no
configure:69551: checking enable JavaScript for Sablotron
configure:69591: result: no
configure:69819: checking for Sablotron libraries in the default path
configure:69825: result: found Sablotron in /usr/local
configure:69992: checking for iconv
configure:70029: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=2
80 -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib -L/usr/local/lib conftest.c -le
xpat -lcrypt -lresolv -lresolv -lresolv -lm -ldl -lnsl -lsocket -lsocket -lcryp
t >&5
configure:70032: $? = 0
configure:70035: test -s conftest
configure:70038: $? = 0
configure:70048: result: yes
configure:70500: checking for SablotSetEncoding in -lsablot
configure:70527: gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=2
80 -R/usr/ucblib -L/usr/ucblib -R/usr/local/lib -L/usr/local/lib conftest.c -ls
ablot -lexpat -lcrypt -lresolv -lresolv -lresolv -lm -ldl -lnsl -lsocket -lsoc
ket -lcrypt -lexpat >&5
Undefined first referenced
symbol in file
vtable for __cxxabiv1::__si_class_type_info/usr/local/lib/libsablot.so
vtable for __cxxabiv1::__vmi_class_type_info/usr/local/lib/libsablot.so
operator new[](unsigned) /usr/local/lib/libsablot.so
__cxa_call_unexpected /usr/local/lib/libsablot.so
vtable for __cxxabiv1::__class_type_info/usr/local/lib/libsablot.so
operator delete(void*) /usr/local/lib/libsablot.so
operator new(unsigned) /usr/local/lib/libsablot.so
__gxx_personality_v0 /usr/local/lib/libsablot.so
operator delete[](void*) /usr/local/lib/libsablot.so
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:70530: $? = 1
configure: failed program was:
#line 70508 "configure"
#include "confdefs.h"
Bill
--
Bill Bradford "Fear leads to anger. Anger leads to hate. Hate leads
[EMAIL PROTECTED] to using Windows for mission-critical applications."
Austin, TX -- What Yoda *meant* to say
--- End Message ---
--- Begin Message ---
On Sat, Apr 27, 2002 at 10:02:28PM -0500, Bill Bradford wrote:
> On Sat, Apr 27, 2002 at 09:59:32PM -0500, Bill Bradford wrote:
> > root@chip:/www/apache/libexec> apachectl start
> > Syntax error on line 207 of /www/apache/conf/httpd.conf:
> > Cannot load /www/apache/libexec/libphp4.so into server: ld.so.1:
>/www/apache/bin/httpd: fatal: relocation error: file /usr/local/lib/libsablot.so.0:
>symbol __gxx_personality_v0: referenced symbol not found
> > /usr/bin/apachectl start: httpd could not be started
Okay, this was a GCC 3.0.4 bug. Recompiled EVERYTHING with 2.95.3, and now
I'm getting:
root@chip:/usr/local/src/php-4.2.0> apachectl start
Syntax error on line 207 of /www/apache/conf/httpd.conf:
Cannot load /www/apache/libexec/libphp4.so into server: ld.so.1:
/www/apache/bin/httpd: fatal: relocation error: file /usr/local/lib/libsablot.so.0:
symbol __pure_virtual: referenced symbol not found
/usr/bin/apachectl start: httpd could not be started
>From researching, __pure_virtual is a c++ library symbol, but *everything* else
compiles and works fine (I rebuilt GCC from scratch).
Suggestions? Sablot 0.90, Apache 1.3.24, PHP 4.2.0, latest expat.
Bill
--
Bill Bradford "Fear leads to anger. Anger leads to hate. Hate leads
[EMAIL PROTECTED] to using Windows for mission-critical applications."
Austin, TX -- What Yoda *meant* to say
--- End Message ---
--- Begin Message ---
I have problems compiling Apache 1.3.24 after configuring PHP 4.2.0
The technical stuff:
OS: FreeBSD 4.5 (tiny)
Apache: 1.3.24
PHP: 4.2.0
MySQL: 2.23.49 (just to be verbose)
I've configured PHP with the following options:
./configure --with-mysql=/usr/local/mysql --with-apache=/usr/local/src/apach
e_1.3.24 --with-config-file-path=/usr/www/conf --with-msession=/usr/local/ph
oenix/msession
"gmake" and "gmake install" runs fine for PHP
Apache is configured like this:
./configure --with-layout=Apache --prefix=/usr/local/apache
--activate-module=src/modules/php4/libphp4.a --enable-module=rewrite
But gmake produces errors, when it tries to compile msession.o - one of
these errors are:
----------------------------
modules/php4/libphp4.a(msession.o): In function `zif_msession_call':
/usr/local/src/php-4.2.0/ext/msession/msession.c(.text+0x27c3): undefined
reference to `FormatRequestStrings'
----------------------------
The other errors are similar, only the function names are different.
I've tried to configure PHP *without* the path to msession (ie.
just --with-msession) - but it didn't help.
I've searched the archives, but didn't find anything related to this
problem.
Mohawk Soft dosn't state anything yet about php 4.2.0 on their website.
What should I do?
- Carsten
--- End Message ---
--- Begin Message ---
Hi ther I am having some problems compiling the latest version of the source
code on a solaris box
The inital configure runs fine but when I go for the make this is what happens.
# make
Making all in Zend
Making all in main
gcc -I. -I/usr/local/dev/php-4.2.0/main -I/usr/local/dev/php-4.2.0/main -I/usr/l
ocal/dev/php-4.2.0 -I/usr/local/dev/php-4.2.0/Zend -I/usr/local/dev/php-4.2.0/ex
t/mysql/libmysql -I/usr/local/dev/php-4.2.0/ext/xml/expat -D_POSIX_PTHREAD_SEMA
NTICS -I/usr/local/dev/php-4.2.0/TSRM -g -O2 -c internal_functions.c && touch i
nternal_functions.lo
/bin/sh /usr/local/dev/php-4.2.0/libtool --silent --mode=link gcc -I. -I/usr/lo
cal/dev/php-4.2.0/main -I/usr/local/dev/php-4.2.0/main -I/usr/local/dev/php-4.2.
0 -I/usr/local/dev/php-4.2.0/Zend -I/usr/local/dev/php-4.2.0/ext/mysql/libmysql
-I/usr/local/dev/php-4.2.0/ext/xml/expat -D_POSIX_PTHREAD_SEMANTICS -I/usr/loca
l/dev/php-4.2.0/TSRM -g -O2 -prefer-non-pic -static -o libmain.la main.lo snp
rintf.lo php_sprintf.lo safe_mode.lo fopen_wrappers.lo alloca.lo php_ini.lo SA
PI.lo rfc1867.lo php_content_types.lo strlcpy.lo strlcat.lo mergesort.lo reentr
ancy.lo php_variables.lo php_ticks.lo streams.lo network.lo php_open_temporary_
file.lo php_logos.lo output.lo internal_functions.lo
gcc -I. -I/usr/local/dev/php-4.2.0/main -I/usr/local/dev/php-4.2.0/main -I/usr/l
ocal/dev/php-4.2.0 -I/usr/local/dev/php-4.2.0/Zend -I/usr/local/dev/php-4.2.0/ex
t/mysql/libmysql -I/usr/local/dev/php-4.2.0/ext/xml/expat -D_POSIX_PTHREAD_SEMA
NTICS -I/usr/local/dev/php-4.2.0/TSRM -g -O2 -c internal_functions_cli.c && tou
ch internal_functions_cli.lo
/bin/sh /usr/local/dev/php-4.2.0/libtool --silent --mode=link gcc -I. -I/usr/lo
cal/dev/php-4.2.0/main -I/usr/local/dev/php-4.2.0/main -I/usr/local/dev/php-4.2.
0 -I/usr/local/dev/php-4.2.0/Zend -I/usr/local/dev/php-4.2.0/ext/mysql/libmysql
-I/usr/local/dev/php-4.2.0/ext/xml/expat -D_POSIX_PTHREAD_SEMANTICS -I/usr/loca
l/dev/php-4.2.0/TSRM -g -O2 -prefer-non-pic -static -o libmain_cli.la main.lo
snprintf.lo php_sprintf.lo safe_mode.lo fopen_wrappers.lo alloca.lo php_ini.l
o SAPI.lo rfc1867.lo php_content_types.lo strlcpy.lo strlcat.lo mergesort.lo re
entrancy.lo php_variables.lo php_ticks.lo streams.lo network.lo php_open_tempor
ary_file.lo php_logos.lo output.lo internal_functions_cli.lo
Making all in ext
Making all in ctype
Making all in mysql
Making all in libmysql
gcc -I. -I/usr/local/dev/php-4.2.0/ext/mysql/libmysql -I/usr/local/dev/php-4.2.0
/main -I/usr/local/dev/php-4.2.0 -I/usr/local/dev/php-4.2.0/Zend -I/usr/local/de
v/php-4.2.0/ext/mysql/libmysql -I/usr/local/dev/php-4.2.0/ext/xml/expat -D_POSI
X_PTHREAD_SEMANTICS -I/usr/local/dev/php-4.2.0/TSRM -g -O2 -c libmysql.c && tou
ch libmysql.lo
In file included from libmysql.c:5:
global.h:136:22: operator 'EOL' has no left operand
In file included from libmysql.c:5:
global.h:256: warning: redefinition of `uint'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.2/include/sys/types.h:505: warni
ng: `uint' previously declared here
global.h:257: warning: redefinition of `ushort'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.2/include/sys/types.h:504: warni
ng: `ushort' previously declared here
global.h:258: warning: redefinition of `ulong'
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.0.2/include/sys/types.h:506: warni
ng: `ulong' previously declared here
In file included from libmysql.c:5:
global.h:498:22: operator 'EOL' has no left operand
In file included from libmysql.c:5:
global.h:590: warning: redefinition of `ulong'
global.h:258: warning: `ulong' previously declared here
In file included from libmysql.c:12:
m_string.h:205:36: operator '==' has no right operand
libmysql.c: In function `net_field_length_ll':
libmysql.c:397: warning: left shift count >= width of type
*** Error code 1
make: Fatal error: Command failed for target `libmysql.lo'
Current working directory /usr/local/dev/php-4.2.0/ext/mysql/libmysql
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/local/dev/php-4.2.0/ext/mysql/libmysql
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/local/dev/php-4.2.0/ext/mysql
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /usr/local/dev/php-4.2.0/ext
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
#
Any ideas?
cheers
smyles
--- End Message ---