php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9769 Compile faliure --with-nsapi
Submitted: 2001-03-15 12:21 UTC Modified: 2001-04-27 07:31 UTC
From: dortega at telenium dot es Assigned:
Status: Closed Package: iPlanet related
PHP Version: 4.0.4pl1 OS: SunOS 5
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dortega at telenium dot es
New email:
PHP Version: OS:

 

 [2001-03-15 12:21 UTC] dortega at telenium dot es
I tried to compile PHP with Netscape Enterprise Server, Oracle 8.0.5 andSunOs 5.5

./configure --with-gd=no --with-nsapi=/opt/netscape/suitespot --with-oracle=$ORACLE_HOME --with-config-file-path=$HOME/www/php --enable-debug=no --without-mysql


Making all in Zend
make[1]: Entering directory `/user/gedweb/php-4.0.4pl1/Zend'
/bin/sh ../libtool --silent --mode=compile CC -DHAVE_CONFIG_H -I. -I. -I../main   -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DXML_BYTE_ORDER=21 -I../TSRM  -g -mt -c zend_language_scanner_cc.cc
"zend_compile.h", line 31: Error: Could not open include file <istream.h>.
"zend_operators.h", line 84: Error: The function "finite" must have a prototype.
"zend_language_scanner_cc.cc", line 2614: Error: stdiobuf is not defined.
"zend_language_scanner_cc.cc", line 2617: Error: Type name expected instead of "stdiobuf".
"zend_language_scanner_cc.cc", line 2617: Error: No storage class or type for this declaration.
"zend_language_scanner_cc.cc", line 2617: Error: "," expected instead of "*".
"zend_language_scanner_cc.cc", line 2616: Error: istream is not a direct base class of istdiostream.
"zend_language_scanner_cc.cc", line 2616: Error: Cannot use __FILE* to initialize int.
"zend_language_scanner_cc.cc", line 2616: Error: Formal argument sb of type std::basic_streambuf<char, std::char_traits<char>>* in call to std::basic_ios<char, std::char_traits<char>>::init(std::basic_streambuf<char, std::char_traits<char>>*) is being passed int*.
"zend_language_scanner_cc.cc", line 2727: Error: stdiofile is not a member of std::basic_streambuf<char, std::char_traits<char>>.
"zend_language_scanner_cc.cc", line 3964: Warning: String literal converted to char* in assignment.
"zend_language_scanner_cc.cc", line 4578: Error: Cannot assign std::basic_istream<char, std::char_traits<char>>* to istream*.
"zend_language_scanner_cc.cc", line 4682: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 4786: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 4859: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 4873: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 4993: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 5114: Error: Cannot assign istream* to std::basic_istream<char, std::char_traits<char>>*.
"zend_language_scanner_cc.cc", line 5125: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 5134: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 5165: Error: Cannot assign std::basic_istream<char, std::char_traits<char>>* to istream*.
"zend_language_scanner_cc.cc", line 5227: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 5241: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
13 Error(s) and 10 Warning(s) detected.
make[1]: *** [zend_language_scanner_cc.lo] Error 1
make[1]: Leaving directory `/user/gedweb/php-4.0.4pl1/Zend'
make: *** [all-recursive] Error 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-15 23:02 UTC] sniper@php.net
This is fixed in CVS. Try latest CVS snapshot from http://snaps.php.net/

--Jani

 [2001-03-16 03:12 UTC] dortega at telenium dot es
I try to compile the latest CVS php version (php4-00103152245) and it fail during make.

The configure options are the same.


Making all in Zend
make[1]: Entering directory `/user/gedweb/php4-200103152245/Zend'
/bin/sh ../libtool --silent --mode=compile CC -DHAVE_CONFIG_H -I. -I. -I../main   -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -I../TSRM  -g -mt -c zend_language_scanner_cc.cc
"zend_istdiostream.h", line 8: Error: stdiobuf is not defined.
"zend_istdiostream.h", line 11: Error: Type name expected instead of "stdiobuf".
"zend_istdiostream.h", line 11: Error: No storage class or type for this declaration.
"zend_istdiostream.h", line 11: Error: "," expected instead of "*".
"zend_istdiostream.h", line 10: Error: istream is not a direct base class of istdiostream.
"zend_istdiostream.h", line 10: Error: Cannot use __FILE* to initialize int.
"zend_istdiostream.h", line 10: Error: Formal argument sb of type std::basic_streambuf<char, std::char_traits<char>>* in call to std::basic_ios<char, std::char_traits<char>>::init(std::basic_streambuf<char, std::char_traits<char>>*) is being passed int*.
"zend_language_scanner_cc.cc", line 2817: Error: stdiofile is not a member of std::basic_streambuf<char, std::char_traits<char>>.
"zend_language_scanner_cc.cc", line 4050: Warning: String literal converted to char* in assignment.
"zend_language_scanner_cc.cc", line 4699: Error: Cannot assign std::basic_istream<char, std::char_traits<char>>* to istream*.
"zend_language_scanner_cc.cc", line 4803: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 4907: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 4980: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 4994: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 5114: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 5235: Error: Cannot assign istream* to std::basic_istream<char, std::char_traits<char>>*.
"zend_language_scanner_cc.cc", line 5246: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 5255: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 5286: Error: Cannot assign std::basic_istream<char, std::char_traits<char>>* to istream*.
"zend_language_scanner_cc.cc", line 5348: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 5362: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
11 Error(s) and 10 Warning(s) detected.
make[1]: *** [zend_language_scanner_cc.lo] Error 1
make[1]: Leaving directory `/user/gedweb/php4-200103152245/Zend'
make: *** [all-recursive] Error 1



 [2001-03-16 06:34 UTC] sniper@php.net
I guess you're trying to compile with Sun CC? 
Could you please try compiling it with GCC instead?

--Jani

 [2001-03-19 06:18 UTC] dortega at telenium dot es
I installed GCC 2.7.2.1 and i tried to compile the  15/3/2001 CVS version. 

./configure 
--with-gd=no 
--with-nsapi=/opt/netscape/suitespot 
--with-oracle=/disco2/oracle/product/8.0.5 
--with-config-file-path=/user/gedweb/www/php 
--enable-debug=no 
--without-mysql 
--enable-libgcc


Making all in Zend
make[1]: Entering directory `/user/gedweb/php4-200103152245/Zend'
/bin/sh ../libtool --silent --mode=compile CC -DHAVE_CONFIG_H -I. -I. -I../main   -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -I../TSRM  -g -mt -c zend_language_scanner_cc.cc
"zend_istdiostream.h", line 8: Error: stdiobuf is not defined.
"zend_istdiostream.h", line 11: Error: Type name expected instead of "stdiobuf".
"zend_istdiostream.h", line 11: Error: No storage class or type for this declaration.
"zend_istdiostream.h", line 11: Error: "," expected instead of "*".
"zend_istdiostream.h", line 10: Error: istream is not a direct base class of istdiostream.
"zend_istdiostream.h", line 10: Error: Cannot use __FILE* to initialize int.
"zend_istdiostream.h", line 10: Error: Formal argument sb of type std::basic_streambuf<char, std::char_traits<char>>* in call to std::basic_ios<char, std::char_traits<char>>::init(std::basic_streambuf<char, std::char_traits<char>>*) is being passed int*.
"zend_language_scanner_cc.cc", line 2817: Error: stdiofile is not a member of std::basic_streambuf<char, std::char_traits<char>>.
"zend_language_scanner_cc.cc", line 4050: Warning: String literal converted to char* in assignment.
"zend_language_scanner_cc.cc", line 4699: Error: Cannot assign std::basic_istream<char, std::char_traits<char>>* to istream*.
"zend_language_scanner_cc.cc", line 4803: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 4907: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 4980: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 4994: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 5114: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 5235: Error: Cannot assign istream* to std::basic_istream<char, std::char_traits<char>>*.
"zend_language_scanner_cc.cc", line 5246: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 5255: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 5286: Error: Cannot assign std::basic_istream<char, std::char_traits<char>>* to istream*.
"zend_language_scanner_cc.cc", line 5348: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
"zend_language_scanner_cc.cc", line 5362: Warning: String literal converted to char* in formal argument message in call to zend_fatal_scanner_error(char*).
11 Error(s) and 10 Warning(s) detected.
make[1]: *** [zend_language_scanner_cc.lo] Error 1
make[1]: Leaving directory `/user/gedweb/php4-200103152245/Zend'
make: *** [all-recursive] Error 1


 [2001-03-19 11:37 UTC] sniper@php.net
Are you sure you're compiling with gcc? 
Check that configure check for it says you're really
using gcc. And remember to delete config.cache before
configure!!

--Jani

 [2001-03-19 11:43 UTC] sniper@php.net
Are you sure you're compiling with gcc? 
Check that configure check for it says you're really
using gcc. And remember to delete config.cache before
configure!!

--Jani

 [2001-03-26 06:23 UTC] dortega at telenium dot es
I installed the last version of gcc and I compiled OK.
Now I've got a libphp4.so in /opt/netscape/suitespot/bin. I've modified the obj.conf file and the LD_LIBRARY_PATH in the start script, but the server fails on startup.

Error message on startup:

Status:
[https-intermonPHP4]: pclose() failed. (2: unknown early startup error)
[https-intermonPHP4]: server terminated: signal 6 

Error
An error occurred during startup.
The server https-intermonPHP4 was not started


This is my obj.conf:

# Netscape Communications Corporation - obj.conf
# You can edit this file, but comments and formatting changes
# might be lost when the admin server makes changes.

Init fn="flex-init" access="/opt/netscape/suitespot/https-intermonPHP4/logs/access" format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length%"
Init fn="load-types" mime-types="mime.types"
Init fn="load-modules" funcs="php4_init,php4_close,php4_execute,php4_auth_trans" shlib="/opt/netscape/suitespot/bin/libphp4.so"
Init fn="php4_init" errorString="Failed to initialise PHP"
...

<Object name="default">
....

ObjectType fn="type-by-extension"
ObjectType fn="force-type" type="text/plain"
Service fn="php4_execute" type="magnus-internal/x-httpd-php"
Service method="(GET|HEAD)" type="magnus-internal/imagemap" fn="imagemap"
Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
Service fn="CM_Delete" method="DELETE"
....

</Object>

....

<Object name="x-httpd-php">
ObjectType fn="force-type" type="magnus-internal/x-httpd-php"
Service fn="php4_execute"
</Object>

....
 [2001-04-27 07:31 UTC] dortega at telenium dot es
I install bison-1.27-sol25-sparc-local, libstdc++-2.8.1-local and gcc-2.95.3-sol25-sparc-local sun packages.

I execute ./configure "--with-all-my-options". This urn OK. Then i modify the main/php_config.h and i add the line:

#define IEEEFP_H

And i execute 

make

make install 

and compile OK.

thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC