ID: 9769
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Compile Problem
Description: Compile faliure --with-nsapi

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>

....

Previous Comments:
---------------------------------------------------------------------------

[2001-03-19 11:43:46] [EMAIL PROTECTED]
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:37:42] [EMAIL PROTECTED]
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 06:18:23] [EMAIL PROTECTED]
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-16 06:34:18] [EMAIL PROTECTED]
I guess you're trying to compile with Sun CC? 
Could you please try compiling it with GCC instead?

--Jani


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

[2001-03-16 03:12:43] [EMAIL PROTECTED]
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




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

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.

Full Bug description available at: http://bugs.php.net/?id=9769


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to