Solaris 2.6 make problem - php_network.h:47: parse error before ` socklen_t'
| From: | ERA) | Date: | Mon, 11 Feb 2002 11:05:45 +0000 |
| Subject: | Solaris 2.6 make problem - php_network.h:47: parse error before ` socklen_t' | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-84249@lists.php.net to get a copy of this message | ||
I´m using php-general@lists.php.net since php-install seems dead :-)
> Hi,
>
> I am using:
>
> * SunOS wcsw707 5.6 Generic_105181-26 sun4u sparc SUNW,Ultra-60
> * php-4.1.1.tar.gz
> * apache_1.3.23
>
>
> I am trying to use DSO in apache. I have done:
>
> ./configure --prefix=/home/eraonel/apache_1.3.23 --enable-module=so
> make
> make clean
> make install
>
> That works ok!
>
> Then I do in dir. php4.1.1:
>
> * ./configure --with-apxs=/home/eraonel/apache_1.3.23/bin/apxs
> * make clean
> * make
>
> Here is my problem:
>
> Making all in main
> make[1]: Entering directory `/home/eraonel/php-4.1.1/main'
> make[2]: Entering directory `/home/eraonel/php-4.1.1/main'
> /bin/sh /home/eraonel/php-4.1.1/libtool --silent --mode=compile gcc -I.
> -I/home/eraonel/php-4.1.1/main -I/home/eraonel/php-4.1.1/main -I/home/eraonel/php-4.1.1
> -I/home/eraonel/apache_1.3.23/include -I/home/eraonel/php-4.1.1/Zend
> -I/home/eraonel/php-4.1.1/ext/mysql/libmysql -I/home/eraonel/php-4.1.1/ext/xml/expat
> -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=260 -DUSE_EXPAT -I/home/eraonel/php-4.1.1/TSRM -g -O2
> -prefer-pic -c main.c
> In file included from /home/eraonel/php-4.1.1/ext/standard/fsock.h:32,
> from /home/eraonel/php-4.1.1/ext/standard/php_standard.h:43,
> from main.c:52:
> php_network.h:47: parse error before `socklen_t'
> make[2]: *** [main.lo] Error 1
> make[2]: Leaving directory `/home/eraonel/php-4.1.1/main'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/eraonel/php-4.1.1/main'
> make: *** [all-recursive] Error 1
>
>
> Anyone with a hint?
>
> I checked the file php_network.h ( in same directory as main.c) and found the following line:
>
> 47 PHPAPI int php_connect_nonb(int sockfd, struct sockaddr *addr, socklen_t
> addrlen, struct timeval *timeout);
>
> //Mikael