Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

All Forums Register Login Search Subscriptions My Profile Inbox
Tool Warehouse FAQs Resources Help Member List Address Book Logout

SUA and apache+php

 
Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Windows Server 2003 R2 SUA >> SUA and apache+php Page: [1]
Login
Message << Older Topic   Newer Topic >>
SUA and apache+php - May 25, '06, 1:54:44 AM   
chuan_ch

 

Posts: 4
Joined: Mar. 21, '06,
Status: offline
I tried to config SUA with apache+php. I following the procedure in README.configure in apache source but fail. below is the error message, any body know how to work around this?
$ make
gcc -I/dev/fs/E/php-4.3.6/ext/mysql/libmysql -Iext/mysql/ -I/dev/fs/E/php-4.3.6/
ext/mysql/ -DPHP_ATOM_INC -I/dev/fs/E/php-4.3.6/include -I/dev/fs/E/php-4.3.6/ma
in -I/dev/fs/E/php-4.3.6 -I/dev/fs/E/php-4.3.6/Zend -I/dev/fs/E/php-4.3.6/ext/xm
l/expat -I/dev/fs/E/php-4.3.6/TSRM -g -O2 -c /dev/fs/E/php-4.3.6/ext/mysql/ph
p_mysql.c -o ext/mysql/php_mysql.o && echo > ext/mysql/php_mysql.lo
In file included from /usr/include/netdb.h:5,
from /dev/fs/E/php-4.3.6/ext/mysql/php_mysql.c:52:
/usr/include/sys/socket.h:112: error: conflicting types for `socklen_t'
/dev/fs/E/php-4.3.6/main/php.h:147: error: previous declaration of `socklen_t'
*** Error code 1

Stop.
Post #: 1
RE: SUA and apache+php - May 25, '06, 2:19:25 AM   
Rodney

 

Posts: 3695
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
In Interix 3.5 and prior socklen_t was not defined in <sys/socket.h>
As of version 5.2 (aka SUA) it is.
Remove the line in php.h that defines socklen_t.
It was only added to make the build happen.

(in reply to chuan_ch)
Post #: 2
RE: SUA and apache+php - May 25, '06, 2:30:10 AM   
chuan_ch

 

Posts: 4
Joined: Mar. 21, '06,
Status: offline
thanks Rodney, I remove the line in php.h and then rebuild, it failed with another error below:
$ make
gcc -Iext/posix/ -I/dev/fs/E/php-4.3.6/ext/posix/ -DPHP_ATOM_INC -I/dev/fs/E/ph
p-4.3.6/include -I/dev/fs/E/php-4.3.6/main -I/dev/fs/E/php-4.3.6 -I/dev/fs/E/php
-4.3.6/Zend -I/dev/fs/E/php-4.3.6/ext/xml/expat -I/dev/fs/E/php-4.3.6/TSRM -g
-O2 -c /dev/fs/E/php-4.3.6/ext/posix/posix.c -o ext/posix/posix.o && echo > ex
t/posix/posix.lo
/dev/fs/E/php-4.3.6/ext/posix/posix.c: In function `zif_posix_ctermid':
/dev/fs/E/php-4.3.6/ext/posix/posix.c:565: error: `L_ctermid' undeclared (first
use in this function)
/dev/fs/E/php-4.3.6/ext/posix/posix.c:565: error: (Each undeclared identifier is
reported only once
/dev/fs/E/php-4.3.6/ext/posix/posix.c:565: error: for each function it appears i
n.)
*** Error code 1

Stop.

(in reply to Rodney)
Post #: 3
RE: SUA and apache+php - May 25, '06, 2:39:49 AM   
Rodney

 

Posts: 3695
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
You re-ran configure.
Exactly what options did you run configure with?

(in reply to chuan_ch)
Post #: 4
RE: SUA and apache+php - May 25, '06, 2:54:43 AM   
chuan_ch

 

Posts: 4
Joined: Mar. 21, '06,
Status: offline
I guess it might be the --host problem. what value should I use for --host option when build it with R2 SUA?

(in reply to Rodney)
Post #: 5
RE: SUA and apache+php - May 25, '06, 3:59:56 AM   
Rodney

 

Posts: 3695
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Just tell it that it's Interix version 3.0 or 3.5 (just something 3.X).

You can update the config.guess that's with it for 5.2 (SUA) -- it's trival to do.
I'd suggest this way will be "cleaner". Add it beside the existing Interix entry.
x86:Interix*:5*)
    echo i586-pc-interix5
    exit 0 ;;

(in reply to chuan_ch)
Post #: 6
RE: SUA and apache+php - May 25, '06, 4:46:23 AM   
chuan_ch

 

Posts: 4
Joined: Mar. 21, '06,
Status: offline
I modify config.guess script as your said but still have this error.
I use options exactly as the README.config file in apache source says.(see below)
$ cd apache_1.3.29
$ ./configure --prefix=/usr/local/apache
$ cd ../php-4.3.6
$ ./configure --with-apache=../apache_1.3.29
$ make
$ make install

(in reply to Rodney)
Post #: 7
RE: SUA and apache+php - May 25, '06, 9:57:37 PM   
Rodney

 

Posts: 3695
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
Okay, today is Developer's FAQ day.
Please read through the FAQ's, specifically entry 4.02 dealing with configure.
That'll solve the problem.

(in reply to chuan_ch)
Post #: 8
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Windows Server 2003 R2 SUA >> SUA and apache+php Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.047