#46020 [Com]: With Sun Java System Web Server 7.0 on HPUX, #define HPUX

2008-09-30 Thread krish dot v at gmail dot com
 ID:   46020
 Comment by:   krish dot v at gmail dot com
 Reported By:  river at wikimedia dot org
 Status:   Open
 Bug Type: Compile Failure
 Operating System: HP-UX 11.11
 PHP Version:  5.2.6
 New Comment:

This happened for my Sun one webserver 6.1 running in HP UX 11.11. I
tried your work around and it worked fine. Thanks for the help.

This is really a useful one.

Krish.


Previous Comments:


[2008-09-08 08:41:04] river at wikimedia dot org

Description:

When compiling --with-nsapi on HP-UX 11.11 using Sun Java System Web
Server 7.0 Update 3, compilation fails inside  because HPUX is
not #defined.  

A workaround is to build with 'CPPFLAGS=-DHPUX'.  I suggest detecting
HP-UX at compile time and defining HPUX if the NSAPI module is being
built.

Reproduce code:
---
I compiled PHP like this:

CPPFLAGS='-I/usr/local/include' LDFLAGS='-L/usr/local/lib
-Wl,+b,/usr/local/mysql/lib:/usr/local/lib' CC=gcc CXX=g++ ./configure
--prefix=/opt/php --with-mysql=/usr/local/mysql --enable-mbstring
--enable-fastcgi --with-nsapi=/opt/webserver7


Expected result:

I expected PHP to compile.

Actual result:
--
PHP didn't compile, with the following error:

In file included from /home/river/php/php-5.2.6/sapi/nsapi/nsapi.c:62:
/opt/webserver7/include/nsapi.h:315:24: error: sys/select.h: No such
file or directory

(This include is wrapped in "#ifndef HPUX", which HP's GCC doesn't
define by default.)





-- 
Edit this bug report at http://bugs.php.net/?id=46020&edit=1



#46276 [NEW]: Configure fails

2008-10-11 Thread krish dot v at gmail dot com
From: krish dot v at gmail dot com
Operating system: HP UX 11.11
PHP version:  5.2.6
PHP Bug Type: Compile Failure
Bug description:  Configure fails

Description:

Hi,

I am using php5.2.6 with Oracle 9.2.6 OCI. Below is my configure command
and error message.

./configure \
--enable-safe-mode \
--with-nsapi=/Application/agu/iPlanet61 \
--with-oci8=/oracle/product/9.2.0 \
--without-pear \
--enable-libxml \
--enable-libgcc \
--enable-ftp \
--enable-calendar \
--enable-track-vars \
--enable-trans-sid \
--enable-sigchild \
--enable-libgcc \

Error message in config log

configure:20028: checking whether libxml build works
configure:20055: gcc -o conftest -g -O2  -D_XOPEN_SOURCE_EXTENDED
-D_REENTRANT  -L/opt/hp-gcc-4.3.1/lib/gcc/hppa1.1-hp-hpux11.11/4.3.1
-L/opt/hp-gcc-4.3.1/lib/gcc/hppa1.1-hp-hpux11.11/4.3.1 -L/usr/local/lib
-L/usr/local/lib conftest.c

 -lm -lnsl  -lgcc -lxml2 -lz -liconv -lm 1>&5
configure: failed program was:
#line 20044 "configure"
#include "confdefs.h"


char xmlInitParser();
int main() {
  xmlInitParser();
  return 0;
}

This is a 64 Bit OS. 



Expected result:

This Bugs were reported but none were answered properly. Pls help.


-- 
Edit bug report at http://bugs.php.net/?id=46276&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=46276&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=46276&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=46276&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46276&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=46276&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=46276&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=46276&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=46276&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=46276&r=support
Expected behavior:http://bugs.php.net/fix.php?id=46276&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=46276&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=46276&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46276&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=46276&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46276&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=46276&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=46276&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=46276&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=46276&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=46276&r=mysqlcfg



#46295 [NEW]: Could not connect to oralce DB

2008-10-14 Thread krish dot v at gmail dot com
From: krish dot v at gmail dot com
Operating system: Sun Solaris 8
PHP version:  5.2CVS-2008-10-14 (CVS)
PHP Bug Type: OCI8 related
Bug description:  Could not connect to oralce DB

Description:

Hi,

When connecting to oracle DB. I am getting the below error message.

Warning: ocilogon() [function.ocilogon]: ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist SVR4 Error: 2: No such file
or directory in /Application/s1wbsvr61/docs/TestDB.php on line 10
Couldn't make a connection!

Db is up and running. Also i can able to connect through sqlplus.

And also ORACLE_SID and ORACLE_HOME set.


-- 
Edit bug report at http://bugs.php.net/?id=46295&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=46295&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=46295&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=46295&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=46295&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=46295&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=46295&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=46295&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=46295&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=46295&r=support
Expected behavior:http://bugs.php.net/fix.php?id=46295&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=46295&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=46295&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=46295&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=46295&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46295&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=46295&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=46295&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=46295&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=46295&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=46295&r=mysqlcfg



#46295 [Fbk->Opn]: Could not connect to oralce DB

2008-10-14 Thread krish dot v at gmail dot com
 ID:   46295
 User updated by:  krish dot v at gmail dot com
 Reported By:  krish dot v at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: OCI8 related
 Operating System: Sun Solaris 8
 PHP Version:  5.2CVS-2008-10-14 (CVS)
 Assigned To:  sixd
 New Comment:

Yes i did. Also i set the env inside the script also..here is my 
script.

";^M
echo "Coffee NameRoast 
TypeQuantity";^M
^M
// format results by row^M
while (OCIFetch($sql_statement)){^M
echo "";^M
for ($i = 0; $i < $num_columns; $i++) {^M
$column_value = OCIResult($sql_statement,$i);^M
echo "$column_value";^M
}^M
echo "";^M
}^M
^M
echo "";^M
^M
// free resources and close connection^M
OCIFreeStatement($sql_result);^M
OCILogoff($connection);^M
?>


Previous Comments:


[2008-10-14 23:11:17] [EMAIL PROTECTED]

Did you make sure to set the Oracle environment (ORACLE_HOME,
ORACLE_SID, ...) BEFORE starting the server and have set proper group
memberships to the web-server user?

------------------------

[2008-10-14 22:33:42] krish dot v at gmail dot com

Description:

Hi,

When connecting to oracle DB. I am getting the below error message.

Warning: ocilogon() [function.ocilogon]: ORA-01034: ORACLE not
available ORA-27101: shared memory realm does not exist SVR4 Error: 2:
No such file or directory in /Application/s1wbsvr61/docs/TestDB.php on
line 10
Couldn't make a connection!

Db is up and running. Also i can able to connect through sqlplus.

And also ORACLE_SID and ORACLE_HOME set.






-- 
Edit this bug report at http://bugs.php.net/?id=46295&edit=1



#46321 [NEW]: Make fails with lots of OCI errors

2008-10-16 Thread krish dot v at gmail dot com
From: krish dot v at gmail dot com
Operating system: HP UX 11.11
PHP version:  5.2.6
PHP Bug Type: *Compile Issues
Bug description:  Make fails with lots of OCI errors

Description:

Hi,

I could not complie php5.2.6 with OCI8. Attched is the error messages
during make.

/tmp/php/php-5.2.6/ext/oci8/oci8.c:1412: error: 'php_oci_connection' has
no member named 'hash_key'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1412: error: 'php_oci_connection' has
no member named 'hash_key'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1412: warning: passing argument 1 of
'strlen' from incompatible pointer type
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1412: warning: passing argument 2 of
'_zend_hash_add_or_update' from incompatible pointer type
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1413: error: 'zend_oci_globals' has no
member named 'num_persistent'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1413: error: lvalue required as
increment operand
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1415: error: 'php_oci_connection' has
no member named 'rsrc_id'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1416: error: 'php_oci_connection' has
no member named 'rsrc_id'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1418: error: 'php_oci_connection' has
no member named 'hash_key'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1418: error: 'php_oci_connection' has
no member named 'hash_key'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1418: warning: passing argument 1 of
'strlen' from incompatible pointer type
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1418: warning: passing argument 2 of
'_zend_hash_add_or_update' from incompatible pointer type
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1419: error: 'zend_oci_globals' has no
member named 'num_links'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1419: error: lvalue required as
increment operand
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1421: error: 'php_oci_connection' has
no member named 'rsrc_id'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1422: error: 'zend_oci_globals' has no
member named 'num_links'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1422: error: lvalue required as
increment operand
/tmp/php/php-5.2.6/ext/oci8/oci8.c: In function
'php_oci_connection_ping':
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1438: error: 'zend_oci_globals' has no
member named 'debug_mode'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1438: error: 'zend_oci_globals' has no
member named 'in_call'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1438: error: 'zend_oci_globals' has no
member named 'errcode'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1438: error: 'php_oci_connection' has
no member named 'server'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1438: error: 'zend_oci_globals' has no
member named 'err'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1438: error: 'text' undeclared (first
use in this function)
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1438: error: expected expression before
')' token
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1438: error: invalid operands to binary
* (have 'struct zend_ini_entry *' and 'struct zend_ini_entry *')
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1438: error: 'zend_oci_globals' has no
member named 'in_call'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1441: error: 'zend_oci_globals' has no
member named 'errcode'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1441: error: 'OCI_SUCCESS' undeclared
(first use in this function)
/tmp/php/php-5.2.6/ext/oci8/oci8.c: In function
'php_oci_connection_status':
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1455: error: 'ub4' undeclared (first
use in this function)
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1455: error: expected ';' before 'ss'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1458: error: 'zend_oci_globals' has no
member named 'debug_mode'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1458: error: 'zend_oci_globals' has no
member named 'in_call'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1458: error: 'zend_oci_globals' has no
member named 'errcode'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1458: error: 'dvoid' undeclared (first
use in this function)
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1458: error: expected expression before
')' token
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1458: error: invalid operands to binary
* (have 'struct zend_ini_entry *' and 'struct zend_ini_entry *')
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1458: error: 'zend_oci_globals' has no
member named 'in_call'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1460: error: 'zend_oci_globals' has no
member named 'errcode'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1460: error: 'OCI_SUCCESS' undeclared
(first use in this fu

#46321 [Fbk->Opn]: Make fails with lots of OCI errors

2008-10-19 Thread krish dot v at gmail dot com
 ID:   46321
 User updated by:  krish dot v at gmail dot com
 Reported By:  krish dot v at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: OCI8 related
 Operating System: HP UX 11.11
 PHP Version:  5.2.6
 New Comment:

HI sixd

Thanks for your comments. Actually oracle instant client has some
issues. Its always crashing.


Previous Comments:


[2008-10-19 17:07:41] [EMAIL PROTECTED]

The Oracle environment looks like it is missing the Oracle header files
- note the error saying OCI_SUCCESS is not declared. Install the Oracle
client option.  Or consider using Oracle Instant Client 10g or 11g - you
will still be able to connect to an Oracle 9.2 database.  
I am able to build 5.2.6 with Oracle 9.2.



[2008-10-19 14:16:15] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/





[2008-10-16 22:03:59] krish dot v at gmail dot com

Description:

Hi,

I could not complie php5.2.6 with OCI8. Attched is the error messages
during make.

/tmp/php/php-5.2.6/ext/oci8/oci8.c:1412: error: 'php_oci_connection'
has no member named 'hash_key'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1412: error: 'php_oci_connection'
has no member named 'hash_key'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1412: warning: passing argument 1 of
'strlen' from incompatible pointer type
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1412: warning: passing argument 2 of
'_zend_hash_add_or_update' from incompatible pointer type
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1413: error: 'zend_oci_globals' has
no member named 'num_persistent'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1413: error: lvalue required as
increment operand
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1415: error: 'php_oci_connection'
has no member named 'rsrc_id'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1416: error: 'php_oci_connection'
has no member named 'rsrc_id'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1418: error: 'php_oci_connection'
has no member named 'hash_key'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1418: error: 'php_oci_connection'
has no member named 'hash_key'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1418: warning: passing argument 1 of
'strlen' from incompatible pointer type
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1418: warning: passing argument 2 of
'_zend_hash_add_or_update' from incompatible pointer type
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1419: error: 'zend_oci_globals' has
no member named 'num_links'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1419: error: lvalue required as
increment operand
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1421: error: 'php_oci_connection'
has no member named 'rsrc_id'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1422: error: 'zend_oci_globals' has
no member named 'num_links'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1422: error: lvalue required as
increment operand
/tmp/php/php-5.2.6/ext/oci8/oci8.c: In function
'php_oci_connection_ping':
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1438: error: 'zend_oci_globals' has
no member named 'debug_mode'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1438: error: 'zend_oci_globals' has
no member named 'in_call'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1438: error: 'zend_oci_globals' has
no member named 'errcode'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1438: error: 'php_oci_connection'
has no member named 'server'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1438: error: 'zend_oci_globals' has
no member named 'err'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1438: error: 'text' undeclared
(first use in this function)
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1438: error: expected expression
before ')' token
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1438: error: invalid operands to
binary * (have 'struct zend_ini_entry *' and 'struct zend_ini_entry *')
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1438: error: 'zend_oci_globals' has
no member named 'in_call'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1441: error: 'zend_oci_globals' has
no member named 'errcode'
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1441: error: 'OCI_SUCCESS'
undeclared (first use in this function)
/tmp/php/php-5.2.6/ext/oci8/oci8.c: In function
'php_oci_connection_status':
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1455: error: 'ub4' undeclared (first
use in this function)
/tmp/php/php-5.2.6/ext/oci8/oci8.c:1455: error: expected ';' before
'ss'
/tmp/php/php-5.2.6/ext/oci8/o