php-install Digest 17 Dec 2001 12:24:03 -0000 Issue 606
Topics (messages 5317 through 5320):
Re: Trouble with php-4.1.0 and apache-2.0.28beta
5317 by: Rasmus Lerdorf
Cannot compile PHP-4.1.0 with-mm
5318 by: Johnny HUI
Need help with running mail() on Win98
5319 by: Balraj Dhaliwal
Re: php compilation error on MacOSX10.1
5320 by: Nicolas Ross
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 ---
You'll probably need to use the latest Apache CVS code to get this to
work. Apache 2.0 is still very much a moving target and I wouldn't expect
it to be stable with PHP anytime soon.
-Rasmus
On Sun, 16 Dec 2001, Tim Kettler wrote:
> Hello,
>
> I just installed apache-2.0.28beta on my system and it is running without
> problems so far. But now I want to php enable the installation with the
> latest release (4.1.0). I configured, compiled and installed it with the
> following options as a DSO:
>
> ./configure --prefix=/usr \
> --with-apxs2=/usr/bin/apxs \
> --with-config-file-path=/etc
>
> This also went through without a problem. Next I added the needed options
> to my httpd.conf:
>
> <--snip-->
>
> LoadModule php4_module /usr/lib/apache/libphp4.so
>
> <--snip-->
>
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
> <--snip-->
>
> But now, when I try to view a php script my browser just wants to download
> the script. Also there are no error or other useful messages in the logs,
> that could give a hint what went wrong.
> I already searched through the archives and many other documents but could
> not find anything that I could have done wrong.
>
> Any hints and are welcome...
>
> Thanks in advance
> Tim Kettler
>
>
>
>
--- End Message ---
--- Begin Message ---
My config options are as follow:
./configure --disable-debug --enable-track-vars \
--with-xml --with-mm --with-apxs=/usr/local/apache/bin/apxs \
--with-mysql=/usr/local/mysql --enable-magic-quotes \
--with-png --with-gd --with-pgsql \
--with-oci8=$ORACLE_HOME --enable-sigchild
I don't have problem for 4.0.6- (--enable-sigchild was added for oci8
supporting in this build). But after updated to 4.1.0, I got the following
error message. I got mm-1.1.3 installed and I saw from the changelog that
PHP-4.1.0 has "Fixed and improved shared-memory session storage module
(Sascha)". Is this related?
========================================
/usr/local/lib/libmm.a(mm_global.o): In function `MM_create':
mm_global.o(.text+0x0): multiple definition of `MM_create'
Zend/.libs/libZend.al(mm_global.o)(.text+0x0): first defined here
/usr/local/lib/libmm.a(mm_global.o): In function `MM_permission':
mm_global.o(.text+0x40): multiple definition of `MM_permission'
Zend/.libs/libZend.al(mm_global.o)(.text+0x40): first defined here
/usr/local/lib/libmm.a(mm_global.o): In function `MM_destroy':
mm_global.o(.text+0x70): multiple definition of `MM_destroy'
Zend/.libs/libZend.al(mm_global.o)(.text+0x70): first defined here
/usr/local/lib/libmm.a(mm_global.o): In function `MM_lock':
mm_global.o(.text+0xa0): multiple definition of `MM_lock'
Zend/.libs/libZend.al(mm_global.o)(.text+0xa0): first defined here
/usr/local/lib/libmm.a(mm_global.o): In function `MM_unlock':
mm_global.o(.text+0xd0): multiple definition of `MM_unlock'
Zend/.libs/libZend.al(mm_global.o)(.text+0xd0): first defined here
/usr/local/lib/libmm.a(mm_global.o): In function `MM_malloc':
mm_global.o(.text+0xf0): multiple definition of `MM_malloc'
Zend/.libs/libZend.al(mm_global.o)(.text+0xf0): first defined here
/usr/local/lib/libmm.a(mm_global.o): In function `MM_realloc':
mm_global.o(.text+0x120): multiple definition of `MM_realloc'
Zend/.libs/libZend.al(mm_global.o)(.text+0x120): first defined here
/usr/local/lib/libmm.a(mm_global.o): In function `MM_free':
mm_global.o(.text+0x150): multiple definition of `MM_free'
Zend/.libs/libZend.al(mm_global.o)(.text+0x150): first defined here
/usr/local/lib/libmm.a(mm_global.o): In function `MM_calloc':
mm_global.o(.text+0x170): multiple definition of `MM_calloc'
Zend/.libs/libZend.al(mm_global.o)(.text+0x170): first defined here
/usr/local/lib/libmm.a(mm_global.o): In function `MM_strdup':
mm_global.o(.text+0x1a0): multiple definition of `MM_strdup'
Zend/.libs/libZend.al(mm_global.o)(.text+0x1a0): first defined here
/usr/local/lib/libmm.a(mm_global.o): In function `MM_sizeof':
mm_global.o(.text+0x1d0): multiple definition of `MM_sizeof'
Zend/.libs/libZend.al(mm_global.o)(.text+0x1d0): first defined here
/usr/local/lib/libmm.a(mm_global.o): In function `MM_maxsize':
mm_global.o(.text+0x200): multiple definition of `MM_maxsize'
Zend/.libs/libZend.al(mm_global.o)(.text+0x200): first defined here
/usr/local/lib/libmm.a(mm_global.o): In function `MM_available':
mm_global.o(.text+0x210): multiple definition of `MM_available'
Zend/.libs/libZend.al(mm_global.o)(.text+0x210): first defined here
/usr/local/lib/libmm.a(mm_global.o): In function `MM_error':
mm_global.o(.text+0x230): multiple definition of `MM_error'
Zend/.libs/libZend.al(mm_global.o)(.text+0x230): first defined here
/usr/local/lib/libmm.a(mm_alloc.o): In function `mm_create':
mm_alloc.o(.text+0x0): multiple definition of `mm_create'
Zend/.libs/libZend.al(mm_alloc.o)(.text+0x0): first defined here
/usr/local/lib/libmm.a(mm_alloc.o): In function `mm_maxsize':
mm_alloc.o(.text+0x6e0): multiple definition of `mm_maxsize'
Zend/.libs/libZend.al(mm_alloc.o)(.text+0x6e0): first defined here
/usr/local/lib/libmm.a(mm_alloc.o): In function `mm_permission':
mm_alloc.o(.text+0x70): multiple definition of `mm_permission'
Zend/.libs/libZend.al(mm_alloc.o)(.text+0x70): first defined here
/usr/local/lib/libmm.a(mm_alloc.o): In function `mm_destroy':
mm_alloc.o(.text+0xb0): multiple definition of `mm_destroy'
Zend/.libs/libZend.al(mm_alloc.o)(.text+0xb0): first defined here
/usr/local/lib/libmm.a(mm_alloc.o): In function `mm_lock':
mm_alloc.o(.text+0xf0): multiple definition of `mm_lock'
Zend/.libs/libZend.al(mm_alloc.o)(.text+0xf0): first defined here
/usr/local/lib/libmm.a(mm_alloc.o): In function `mm_unlock':
mm_alloc.o(.text+0x120): multiple definition of `mm_unlock'
Zend/.libs/libZend.al(mm_alloc.o)(.text+0x120): first defined here
/usr/local/lib/libmm.a(mm_alloc.o): In function `mm_display_info':
mm_alloc.o(.text+0x140): multiple definition of `mm_display_info'
Zend/.libs/libZend.al(mm_alloc.o)(.text+0x140): first defined here
/usr/local/lib/libmm.a(mm_alloc.o): In function `mm_malloc':
mm_alloc.o(.text+0x4a0): multiple definition of `mm_malloc'
Zend/.libs/libZend.al(mm_alloc.o)(.text+0x4a0): first defined here
/usr/local/lib/libmm.a(mm_alloc.o): In function `mm_realloc':
mm_alloc.o(.text+0x550): multiple definition of `mm_realloc'
Zend/.libs/libZend.al(mm_alloc.o)(.text+0x550): first defined here
/usr/local/lib/libmm.a(mm_alloc.o): In function `mm_free':
mm_alloc.o(.text+0x5e0): multiple definition of `mm_free'
Zend/.libs/libZend.al(mm_alloc.o)(.text+0x5e0): first defined here
/usr/local/lib/libmm.a(mm_alloc.o): In function `mm_calloc':
mm_alloc.o(.text+0x610): multiple definition of `mm_calloc'
Zend/.libs/libZend.al(mm_alloc.o)(.text+0x610): first defined here
/usr/local/lib/libmm.a(mm_alloc.o): In function `mm_strdup':
mm_alloc.o(.text+0x660): multiple definition of `mm_strdup'
Zend/.libs/libZend.al(mm_alloc.o)(.text+0x660): first defined here
/usr/local/lib/libmm.a(mm_alloc.o): In function `mm_sizeof':
mm_alloc.o(.text+0x6c0): multiple definition of `mm_sizeof'
Zend/.libs/libZend.al(mm_alloc.o)(.text+0x6c0): first defined here
/usr/local/lib/libmm.a(mm_alloc.o): In function `mm_available':
mm_alloc.o(.text+0x700): multiple definition of `mm_available'
Zend/.libs/libZend.al(mm_alloc.o)(.text+0x700): first defined here
/usr/local/lib/libmm.a(mm_alloc.o): In function `mm_error':
mm_alloc.o(.text+0x750): multiple definition of `mm_error'
Zend/.libs/libZend.al(mm_alloc.o)(.text+0x750): first defined here
/usr/local/lib/libmm.a(mm_core.o): In function `mm_core_align2page':
mm_core.o(.text+0xe0): multiple definition of `mm_core_align2page'
Zend/.libs/libZend.al(mm_core.o)(.text+0xe0): first defined here
/usr/local/lib/libmm.a(mm_core.o): In function `mm_core_align2word':
mm_core.o(.text+0x110): multiple definition of `mm_core_align2word'
Zend/.libs/libZend.al(mm_core.o)(.text+0x110): first defined here
/usr/local/lib/libmm.a(mm_core.o): In function `mm_core_maxsegsize':
mm_core.o(.text+0x120): multiple definition of `mm_core_maxsegsize'
Zend/.libs/libZend.al(mm_core.o)(.text+0x120): first defined here
/usr/local/lib/libmm.a(mm_core.o): In function `mm_core_create':
mm_core.o(.text+0x140): multiple definition of `mm_core_create'
Zend/.libs/libZend.al(mm_core.o)(.text+0x140): first defined here
/usr/local/lib/libmm.a(mm_core.o): In function `mm_core_permission':
mm_core.o(.text+0x370): multiple definition of `mm_core_permission'
Zend/.libs/libZend.al(mm_core.o)(.text+0x370): first defined here
/usr/local/lib/libmm.a(mm_core.o): In function `mm_core_delete':
mm_core.o(.text+0x3c0): multiple definition of `mm_core_delete'
Zend/.libs/libZend.al(mm_core.o)(.text+0x3c0): first defined here
/usr/local/lib/libmm.a(mm_core.o): In function `mm_core_size':
mm_core.o(.text+0x450): multiple definition of `mm_core_size'
Zend/.libs/libZend.al(mm_core.o)(.text+0x450): first defined here
/usr/local/lib/libmm.a(mm_core.o): In function `mm_core_lock':
mm_core.o(.text+0x470): multiple definition of `mm_core_lock'
Zend/.libs/libZend.al(mm_core.o)(.text+0x470): first defined here
/usr/local/lib/libmm.a(mm_core.o): In function `mm_core_unlock':
mm_core.o(.text+0x500): multiple definition of `mm_core_unlock'
Zend/.libs/libZend.al(mm_core.o)(.text+0x500): first defined here
/usr/local/lib/libmm.a(mm_lib.o): In function `mm_lib_error_set':
mm_lib.o(.text+0x0): multiple definition of `mm_lib_error_set'
Zend/.libs/libZend.al(mm_lib.o)(.text+0x0): first defined here
/usr/local/lib/libmm.a(mm_lib.o): In function `mm_lib_error_get':
mm_lib.o(.text+0x160): multiple definition of `mm_lib_error_get'
Zend/.libs/libZend.al(mm_lib.o)(.text+0x160): first defined here
/usr/local/lib/libmm.a(mm_lib.o): In function `mm_lib_version':
mm_lib.o(.text+0x180): multiple definition of `mm_lib_version'
Zend/.libs/libZend.al(mm_lib.o)(.text+0x180): first defined here
/usr/local/lib/libmm.a(mm_vers.o)(.data+0x0): multiple definition of
`mm_version
'
Zend/.libs/libZend.al(mm_vers.o)(.data+0x0): first defined here
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.1.0'
make: *** [all-recursive] Error 1
Thanks!
e-ghost!
--- End Message ---
--- Begin Message ---
I am having trouble getting mail() to work on a WIn98 machine. I
understand that on Unix the sendmail program will pick up the mail()
request from PHP, but what is required on Win98 to get mail() to work.
Currently, when I invoke the mail() function using a script called
do_sendfeedback.php, I get the following error:
Warning: Failed to Connect in c:\apache\htdocs/book/do_sendfeedback.php
on line 14
Line 14 contains the call to mail().
I am using Apache 1.3.22 and PHP 4.0.6 on Win98SE.
Balraj D.
--- End Message ---
--- Begin Message ---
First, set CFLAGS env to :
setenv CFLAGS -DEAPI
And then I edited libtool after configuring php, (libtool is generated by
configure) I changed the line CC="cc" to :
CC="cc -flat_namespace"
After that, make and everythings should be fine...
BTW, I works for mem but not with php 4.1.0...
----- Original Message -----
From: "mario" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, December 15, 2001 8:46 AM
Subject: [PHP-INST] php compilation error on MacOSX10.1
> After having updated the OS to version 10.1 I cannot recompile PHP. This
> is the contain of the debug.log file:
>
> CONFIGURE: './configure' '--with-pgsql' '--with-
> apxs=/usr/local/apache/sbin/apxs' '--with-zlib-dir' '--with-
> gd=/usr/local/gd' '--with-png-dir' '--with-pdflib=/usr/local/lib'
> '--enable-magic-quotes' '--enable-debug=no' '--disable-pear' '--with-xml'
> CC: gcc
> CFLAGS: -g -O2
> CPPFLAGS: -traditional-cpp -DDARWIN -DUSE_HSREGEX -DUSE_EXPAT
> -DSUPPORT_UTF8
> CXX:
> CXXFLAGS:
> INCLUDES: -I/usr/local/apache/include -I$(top_builddir)/Zend
> -I/usr/local/gd/ -I/usr/local/php/ext/mysql/libmysql
> LDFLAGS: -L/usr/local/lib -L/usr/local/lib -L/usr/local/gd/
> -L/usr/local/gd/ -L/usr/local/pgsql/lib -L/usr/local/pgsql/lib
> LIBS: -lpq -lgd -lpng -lz -lz -lm
> DLIBS:
> SAPI: apache
> PHP_RPATHS: /usr/local/lib /usr/local/gd/ /usr/local/pgsql/lib
> uname -a: Darwin localhost 1.4 Darwin Kernel Version 1.4: Sun Sep 9
> 15:39:59 PDT 2001; root:xnu/xnu-201.obj~1/RELEASE_PPC Power Macintosh
> powerpc
>
> gcc -o conftest -g -O2 -traditional-cpp -DDARWIN -DUSE_HSREGEX
> -DUSE_EXPAT -DSUPPORT_UTF8 -L/usr/local/lib -L/usr/local/lib
> -L/usr/local/gd/ -L/usr/local/gd/ -L/usr/local/pgsql/lib
> -L/usr/local/pgsql/lib conftest.c -lpq -lgd -lpng -lz -lz -lm 1>&5
> **************************************************************************
> ***
> Trying to run make, the command exits with these messages:
>
> Making all in .
> /bin/sh /usr/local/php/libtool --silent --mode=link cc -I.
> -I/usr/local/php/ -I/usr/local/php/main -I/usr/local/php
> -I/usr/local/apache/inm
> /usr/local/php/.libs/libphp4.lax/libZend.al
> /usr/local/php/.libs/libphp4.lax/libsapi.al
> /usr/local/php/.libs/libphp4.lax/libmain.al
> /usr/local/php/.libs/libphp4.lax/libregex.al
> /usr/local/php/.libs/libphp4.lax/libzlib.al
> /usr/local/php/.libs/libphp4.lax/libgd.al
> /usr/local/php/.libs/libphp4.lax/libmysql.al
> /usr/local/php/.libs/libphp4.lax/libpcre.al
> /usr/local/php/.libs/libphp4.lax/libpdf.al
> /usr/local/php/.libs/libphp4.lax/libpgsql.al
> /usr/local/php/.libs/libphp4.lax/libposix.al
> /usr/local/php/.libs/libphp4.lax/libsession.al
> /usr/local/php/.libs/libphp4.lax/libstandard.al
> /usr/local/php/.libs/libphp4.lax/libtsrm.al
> /usr/bin/ld: -undefined error must be used when -twolevel_namespace is
> in effect
> make[1]: *** [libphp4.la] Error 1
> make: *** [all-recursive] Error 1
> **************************************************************************
> ***
> Previously I have been able to compile everything without problems
> (except for the pdf support which was missing).
> An hint could come from the lines:
> checking for PostgreSQL support... yes
> ./configure: cd: no such file or directory: [41277]
>
> appearing among the ./configure output, but I can't understand which
> directory name is missing.
>
> Mario Fabretto
> via E. Fermi, 18
> 34070 Turriaco (GO)
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
--- End Message ---