Re: [PHP-DEV] PHP 4.0 Bug #6677 Updated: Compile with native xlC varfs: duplicate def for int8

2001-02-02 Thread Alex Akilov

This problem does still exist.  However, the following workaround should
take care of it.  Unfortunately, I don't have the karma to commit it so
would some powerful being check out the following fix and take care of
it for me?  Thanks.

Index: ext/mysql/libmysql/global.h
===
RCS file: /repository/php4/ext/mysql/libmysql/global.h,v
retrieving revision 1.7
diff -u -r1.7 global.h
--- ext/mysql/libmysql/global.h 2001/01/23 16:48:49 1.7
+++ ext/mysql/libmysql/global.h 2001/02/02 19:52:49
@@ -544,7 +544,7 @@
 #else
 typedef char   *gptr;  /* Generic pointer */
 #endif
-#ifndef HAVE_INT_8_16_32
+#if !defined(HAVE_INT_8_16_32) && !defined(_H_INTTYPES)
 typedef char   int8;   /* Signed integer >= 8  bits */
 typedef short  int16;  /* Signed integer >= 16 bits */
 #endif
@@ -555,12 +555,12 @@
 typedef unsigned short uint16; /* Short for unsigned integer >= 16 bits
*/

 #if SIZEOF_INT == 4
-#ifndef HAVE_INT_8_16_32
+#if !defined(HAVE_INT_8_16_32) && !defined(_H_INTTYPES)
 typedef intint32;
 #endif
 typedef unsigned int   uint32; /* Short for unsigned integer >= 32 bits
*/
 #elif SIZEOF_LONG == 4
-#ifndef HAVE_INT_8_16_32
+#if !defined(HAVE_INT_8_16_32) && !defined(_H_INTTYPES)
 typedef long   int32;
 #endif
 typedef unsigned long  uint32; /* Short for unsigned integer >= 32 bits
*/


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] building php4 on windows && what's up with libmysql?

2001-01-23 Thread Alex Akilov

Jim,

I can't answer if cygwin is really necessary but it's quite useful
(especially for those that are used to unix style commands).  For
one it contains things like tar and gzip which were necessary
at one point to extract number.tar.gz as well as the PHP source
snapshots (although most Win unzip utilities can do the job also).
Maybe Sam Ruby, who I believe wrote the original set of instructions,
can chime in here.

Speaking of which, I tried to build with the latest CVS and I keep
getting the following link errors.  I guess I can open a bug report but
just curious if anyone knows off hand what happened.

Configuration: php4dllts - Win32
Release_TSDbg
Linking...
   Creating library ..\Release_TSDbg/php4ts.lib and object
..\Release_TSDbg/php4ts.exp
string.obj : error LNK2001: unresolved external symbol _add_index_zval
string.obj : error LNK2001: unresolved external symbol
_add_assoc_zval_ex
libmysql.lib(my_thr_init.obj) : error LNK2001: unresolved external
symbol _win_pthread_init
libmysql.lib(my_compress.obj) : error LNK2001: unresolved external
symbol _compress
libmysql.lib(my_compress.obj) : error LNK2001: unresolved external
symbol _uncompress
..\Release_TSDbg\php4ts.dll : fatal error LNK1120: 5 unresolved
externals
Error executing link.exe.

Alex


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] php.net\version4\downloads directory gone! How to build on win32 without?

2001-01-23 Thread Alex Akilov

Jim,

Only one minor correction.  The link in win32build to the bindlib
file is now pointing at "extra" but is still labeled "download".  No
biggie, but since we're striving for purfection :-).

Alex


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] php.net\version4\downloads directory gone! How to build on win32 without?

2001-01-23 Thread Alex Akilov

Ahh yes.  That's better.  Thanks Jim.

Alex


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] php.net\version4\downloads directory gone! How to build on win32 without?

2001-01-23 Thread Alex Akilov

James,

Not so sure all of it is in CVS.  For example, there used to be
a bindlib.dsp/dsw and a bunch of source files (e.g. res*.c)
that I seem to recall which I can't find anywhere anymore.  In fact,
the bindlib_w32 directory in CVS doesn't seem to contain much
in terms of actual files.

Either way, the win32build instructions should have been corrected.

Alex


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] php.net\version4\downloads directory gone! How to build on win32 without?

2001-01-23 Thread Alex Akilov

The version4\download directory used to contain some of the files that
are referred to in the version4\win32build.php instructions.  Though
one of the files (number.tar.gz) can still be found in the base download

directory, it appears that the bindlib_w32 has now vanished.
Makes building on win32 kinda hard.  I hope whoever deleted it can
put it back or at least update the win32build instructions so that we
can
continue to use that platform.

Alex


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] **** Access denied: Insufficient Karma (lyric|phpweb/include)

2001-01-17 Thread Alex Akilov

I'm having the same problem and so is Bill Stoddard.  Our id's are
akilov and stoddard respectively.

Did we all get bounced for insufficient activity of late?

Here's the change I was trying to commit:

Index: ext/java/config.m4
===
RCS file: /repository/php4/ext/java/config.m4,v
retrieving revision 1.21
diff -u -r1.21 config.m4
--- ext/java/config.m4  2000/12/19 00:14:57 1.21
+++ ext/java/config.m4  2001/01/17 22:23:04
@@ -10,6 +10,12 @@
   if test "$withval" != "no"; then
 JAVA_SHARED="libphp_java.la"

+pltform=`uname -s 2>/dev/null`
+java_libext="libjava.so"
+case "$pltform" in
+  AIX) java_libext="libjava.a" ;;
+  HP-UX) java_libext="libjava.sl" ;;
+esac
 # substitute zip for systems which don't have jar in the PATH
 if JAVA_JAR=`which jar 2>/dev/null`; then
   JAVA_JAR="$JAVA_JAR cf"
@@ -29,6 +35,7 @@
   JAVA_INCLUDE=-I$withval/include/kaffe
   JAVA_CLASSPATH=$withval/share/kaffe/Klasses.jar
   JAVA_LIB=kaffevm
+  java_libext=kaffevm

   test -f $withval/lib/$JAVA_LIB && JAVA_LIBPATH=$withval/lib
   test -f $withval/lib/kaffe/$JAVA_LIB &&
JAVA_LIBPATH=$withval/lib/kaffe
@@ -38,7 +45,7 @@
 JAVA_JAR='zip -q0'
   fi

-elif test -f $withval/lib/libjava.so; then
+elif test -f $withval/lib/$java_libext; then
   JAVA_LIB=java
   JAVA_LIBPATH=$withval/lib
   JAVA_INCLUDE="-I$withval/include"
@@ -63,10 +70,12 @@
 test -f $i/classes.zip && JAVA_CLASSPATH="$i/classes.zip"
 test -f $i/rt.jar  && JAVA_CLASSPATH="$i/rt.jar"

-   if test -f $i/libjava.so; then
+if test -f $i/$java_libext; then
   JAVA_LIB=java
   JAVA_LIBPATH=$i
+  test -d $i/hotspot && AC_ADD_LIBPATH($i/hotspot)
   test -d $i/classic && AC_ADD_LIBPATH($i/classic)
+  test -d $i/server && AC_ADD_LIBPATH($i/server)
   test -d $i/native_threads &&
AC_ADD_LIBPATH($i/native_threads)
 fi
   done
@@ -81,7 +90,7 @@

 AC_DEFINE(HAVE_JAVA,1,[ ])
 AC_ADD_LIBPATH($JAVA_LIBPATH)
-JAVA_CFLAGS="$JAVA_CFLAGS
'-DJAVALIB=\"$JAVA_LIBPATH/lib$JAVA_LIB.so\"'"
+JAVA_CFLAGS="$JAVA_CFLAGS
'-DJAVALIB=\"$JAVA_LIBPATH/$java_libext\"'"

 if test "$PHP_SAPI" != "servlet"; then
   PHP_EXTENSION(java, shared)

Alex


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]