----- Original Message -----
From: "Yasuo Ohgaki" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, February 07, 2002 2:03 AM
Subject: How to apply patch files


> > Here's what I get when trying to compile the latest snapshot of PHP with
> > your patch (on FreeBSD 4.2 -- I will try on Slackware 8 next):
> >
> >
OD_SSL=208104 -DEAPI -DUSE_EXPAT -I/usr/home/rick/snaps.php/php4-20020206180
> > 0/TSRM -g -O2 -prefer-pic  -c session.c
> > session.c: In function `php_session_start':
> > session.c:850: `php_session_none' undeclared (first use in this
function)
> > session.c:850: (Each undeclared identifier is reported only once
> > session.c:850: for each function it appears in.)
> > session.c:940: `var' undeclared (first use in this function)
> > session.c: In function `zif_session_set_save_handler':
> > session.c:1133: `php_session_none' undeclared (first use in this
function)
> > session.c: In function `zif_session_unset':
> > session.c:1421: `php_session_none' undeclared (first use in this
function)
> > *** Error code 1
>
>
> Hi, patch is not applied correctly.
>
> Change directory to php4 source root. then
>
> patch -p0 < session.diff
>
> (Since file path in the patch is "ext/session/<some_file_name_here>")
> Then you should be able to compile w/o any warnings and errors.
> You need to change directory and use appropriate -p option depends
> on patch.

No, I was in the correct location, but session.diff was accidentally mangled
somewhere between my mail prog and text editor. Tried it again and this time
it compiled fine ;-).

But, I am still not able to run Apache. Here is my configure statement:
./configure --prefix=/usr/local --with-mysql=/usr/local --with-pgsql --with-
apxs=/usr/local/apache/bin/apxs --enable-shmop --with-zlib --enable-wddx  --
enable-inline-optimization --x-includes=/usr/X11R6/ --x-libraries=/usr/X11R6
/ --with-gd=/usr/local/ --enable-gd-native-ttf --with-jpeg-dir=/usr/local --
with-png-dir=/usr/local --with-xpm-dir=/usr/local --with-freetype-dir=/usr/l
ocal --with-ttf --with-zlib-dir=shared --with-curl=/usr/local --with-xml --e
nable-ftp --enable-sockets --enable-sysvsem --enable-sysvshm --with-mm --wit
h-pear

Whenever I try to run Apache, I get the response "httpd could not be
started", and when I tail the error_log, I see this:
PHP Fatal error:  Unable to start session mm module in Unknown on line 0

If I do exactly the same config statement without the 'mm' directive, Apache
runs fine.

Maybe it's a FreeBSD problem. As I said before, I will also try this on my
Slackware box. Any other suggestions?

Thanks for the help,

Rick

>
> See also man page for patch.
>
> --
> Yasuo Ohgaki
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to