RE: [PHP-DEV] bug #7162 details?
| From: | James Moore | Date: | Tue, 17 Oct 2000 19:07:40 +0000 |
| Subject: | RE: [PHP-DEV] bug #7162 details? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-35315@lists.php.net to get a copy of this message | ||
> Hi,
>
> I'm trying to get the newest PHP compiling on Solaris CC.
> I see that bug #7162 says its fixed in CVS, however, I'd
> like to get the minimal amount of changes needed to fix
> the problem.
>
> I'm a little nervous about grabbing the latest CVS.
>
> Jani, do you have the specific details on how to fix this
> compilation problem on Solaris?
>
> Thanks!
Genrally the CVS is fairly stable, especially at the moment as its still
fairly recent since the php4.0.3pl1 tarballs were rolled so there is no real
experimantal code there.
Otherwise here is Jani's fix's
1)
sniper Sat Oct 14 15:13:18 2000 EDT
Modified files:
/php4 acinclude.m4
Log:
Fix to #7162.
Index: php4/acinclude.m4
diff -u php4/acinclude.m4:1.108 php4/acinclude.m4:1.109
--- php4/acinclude.m4:1.108 Thu Oct 12 16:17:21 2000
+++ php4/acinclude.m4 Sat Oct 14 15:13:18 2000
@@ -1,4 +1,4 @@
-dnl $Id: acinclude.m4,v 1.108 2000/10/12 23:17:21 sas Exp $
+dnl $Id: acinclude.m4,v 1.109 2000/10/14 22:13:18 sniper Exp $
dnl
dnl This file contains local autoconf functions.
@@ -53,7 +53,7 @@
main() {
DIR *dir;
- char entry[sizeof(struct dirent)+257];
+ char entry[sizeof(struct dirent)+300];
struct dirent *pentry = (struct dirent *) &entry;
dir = opendir("/");
2)
sniper Sat Oct 14 17:58:29 2000 EDT
Modified files:
/php4 acinclude.m4
Log:
Fix the fix as Sascha suggested.
Index: php4/acinclude.m4
diff -u php4/acinclude.m4:1.109 php4/acinclude.m4:1.110
--- php4/acinclude.m4:1.109 Sat Oct 14 15:13:18 2000
+++ php4/acinclude.m4 Sat Oct 14 17:58:29 2000
@@ -1,4 +1,4 @@
-dnl $Id: acinclude.m4,v 1.109 2000/10/14 22:13:18 sniper Exp $
+dnl $Id: acinclude.m4,v 1.110 2000/10/15 00:58:29 sniper Exp $
dnl
dnl This file contains local autoconf functions.
@@ -51,9 +51,13 @@
#include <sys/types.h>
#include <dirent.h>
+#ifndef PATH_MAX
+#define PATH_MAX 1024
+#endif
+
main() {
DIR *dir;
- char entry[sizeof(struct dirent)+300];
+ char entry[sizeof(struct dirent)+PATH_MAX];
struct dirent *pentry = (struct dirent *) &entry;
dir = opendir("/");
Apply these in order and hopefully all will be well.
HTH
James