[PHP-DEV] Bug #11710 Updated: library -lstdc++ / -lg++ not found

2001-06-27 Thread bquinton

ID: 11710
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Compile Problem
Operating system: Solaris 2.7
PHP Version: 4.0.6
Description: library -lstdc++ / -lg++ not found

Look like it's a problem with Sun's ld not being knowing what rpath is. If I LD=c++ 
then configure then make. Everything seems fine.

Previous Comments:
---

[2001-06-26 16:34:58] [EMAIL PROTECTED]
Last linking of php fails. This appears to be a problem with the -rpath = 
/usr/local/homes/beacon/src/php-4.0.6/libs
when changed from -rpath to -R everything compiles fine.

bash-2,00$ /bin/sh /usr/local/homes/beacon/src/php-4.0.6/libtool --silent --mode=link 
c++  -I. -I/usr/local/homes/beacon/src/php-4.0.6/ 
-I/usr/local/homes/beacon/src/php-4.0.6/main -I/usr/local/homes/beacon/src/php-4.0.6 
-I/usr/local/netscape/plugins/include -I/usr/local/homes/beacon/src/php-4.0.6/Zend 
-I/usr/local/include -I/usr/local/homes/beacon/mysql/include 
-I/usr/local/homes/beacon/src/php-4.0.6/ext/xml/expat/xmltok 
-I/usr/local/homes/beacon/src/php-4.0.6/ext/xml/expat/xmlparse 
-I/usr/local/homes/beacon/src/php-4.0.6/TSRM  -D_POSIX_PTHREAD_SEMANTICS 
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -I../TSRM 
-g -O2   -o libphp4.la -rpath /usr/local/homes/beacon/src/php-4.0.6/libs 
-avoid-version -L/usr/ucblib -L/usr/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1 
-L/usr/local/lib -L/usr/local/homes/beacon/mysql/lib  -R/usr/ucblib 
-R/usr/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1 -R/usr/local/lib 
-R/usr/local/homes/beacon/mysql/lib stub.lo Zend/libZend.la sapi/nsapi/libsapi.la 
main/libmain.la regex/libregex.la ext/calendar/libcalendar.la ext/ctype/libctype.la 
ext/ftp/libftp.la ext/mhash/libmhash.la ext/mysql/libmysql.la ext/pcre/libpcre.la 
ext/posix/libposix.la ext/recode/librecode.la ext/session/libsession.la 
ext/standard/libstandard.la ext/xml/libxml.la TSRM/libtsrm.la -lpam -lrecode -lstdc++ 
-lg++ -ldl -lmysqlclient 
-lmhash -lcrypt -lresolv -lresolv -lm -ldl -lnsl -lsocket -lpthread -lsocket -lgcc
ld: fatal: library -lstdc++: not found
ld: fatal: library -lg++: not found
ld: fatal: library -lstdc++: not found
ld: fatal: library -lg++: not found
ld: fatal: File processing errors. No output written to .libs/libphp4.so


---


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


-- 
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]




[PHP-DEV] Bug #11710: library -lstdc++ / -lg++ not found

2001-06-26 Thread bquinton

From: [EMAIL PROTECTED]
Operating system: Solaris 2.7
PHP version:  4.0.6
PHP Bug Type: Compile Problem
Bug description:  library -lstdc++ / -lg++ not found

Last linking of php fails. This appears to be a problem with the -rpath = 
/usr/local/homes/beacon/src/php-4.0.6/libs
when changed from -rpath to -R everything compiles fine.

bash-2,00$ /bin/sh /usr/local/homes/beacon/src/php-4.0.6/libtool --silent --mode=link 
c++  -I. -I/usr/local/homes/beacon/src/php-4.0.6/ 
-I/usr/local/homes/beacon/src/php-4.0.6/main -I/usr/local/homes/beacon/src/php-4.0.6 
-I/usr/local/netscape/plugins/include -I/usr/local/homes/beacon/src/php-4.0.6/Zend 
-I/usr/local/include -I/usr/local/homes/beacon/mysql/include 
-I/usr/local/homes/beacon/src/php-4.0.6/ext/xml/expat/xmltok 
-I/usr/local/homes/beacon/src/php-4.0.6/ext/xml/expat/xmlparse 
-I/usr/local/homes/beacon/src/php-4.0.6/TSRM  -D_POSIX_PTHREAD_SEMANTICS 
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -I../TSRM 
-g -O2   -o libphp4.la -rpath /usr/local/homes/beacon/src/php-4.0.6/libs 
-avoid-version -L/usr/ucblib -L/usr/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1 
-L/usr/local/lib -L/usr/local/homes/beacon/mysql/lib  -R/usr/ucblib 
-R/usr/gnu/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1 -R/usr/local/lib 
-R/usr/local/homes/beacon/mysql/lib stub.lo Zend/libZend.la sapi/nsapi/libsapi.la 
main/libmain.la regex/libregex.la ext/calendar/libcalendar.la ext/ctype/libctype.la 
ext/ftp/libftp.la ext/mhash/libmhash.la ext/mysql/libmysql.la ext/pcre/libpcre.la 
ext/posix/libposix.la ext/recode/librecode.la ext/session/libsession.la 
ext/standard/libstandard.la ext/xml/libxml.la TSRM/libtsrm.la -lpam -lrecode -lstdc++ 
-lg++ -ldl -lmysqlclient 
-lmhash -lcrypt -lresolv -lresolv -lm -ldl -lnsl -lsocket -lpthread -lsocket -lgcc
ld: fatal: library -lstdc++: not found
ld: fatal: library -lg++: not found
ld: fatal: library -lstdc++: not found
ld: fatal: library -lg++: not found
ld: fatal: File processing errors. No output written to .libs/libphp4.so



-- 
Edit Bug report at: http://bugs.php.net/?id=11710edit=1



-- 
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]




[PHP-DEV] Bug #11606: Compile problem in Zend: zend_language_scanner_cc.cc

2001-06-21 Thread bquinton

From: [EMAIL PROTECTED]
Operating system: Solaris 2.7
PHP version:  4.0.5
PHP Bug Type: Compile Problem
Bug description:  Compile problem in Zend: zend_language_scanner_cc.cc

bash-2,00$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.0/specs
Configured with: ./configure 
Thread model: posix
gcc version 3.0

bash-2,00$ flex -V   
flex version 2.5.4

bash-2,00$ make -v   
GNU Make version 3.79, by Richard Stallman and Roland McGrath.
Built for sparc-sun-solaris2.7
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to [EMAIL PROTECTED].

bash-2,00$ make
/bin/sh ../libtool --silent --mode=compile c++ -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 -O2 -pthreads -c zend_language_scanner_cc.cc
In file included from FlexLexer.h:47,
 from zend_language_scanner_cc.cc:241:
/usr/local/include/g++-v3/backward/iostream.h:36: using directive `istream' 
   introduced ambiguous type `istream'
In file included from ./zend_language_scanner.l:90:
zend_istdiostream.h:8: 'stdiobuf' is used as a type, but is not defined as a 
   type.
zend_istdiostream.h:11: syntax error before `*' token
zend_istdiostream.h: In constructor `istdiostream::istdiostream(FILE*)':
zend_istdiostream.h:10: class `istdiostream' does not have any field named 
   `_file'
zend_istdiostream.h:10: no matching function for call to 
   `std::basic_istreamchar, std::char_traitschar ::basic_istream()'
/usr/local/include/g++-v3/bits/std_istream.h:209: candidates are: 
   std::basic_istream_CharT, _Traits::basic_istream(const 
   std::basic_istream_CharT, _Traits) [with _CharT = char, _Traits = 
   std::char_traitschar]
/usr/local/include/g++-v3/bits/std_istream.h:72: 
   std::basic_istream_CharT, 
   _Traits::basic_istream(std::basic_streambuf_CharT, _Traits*) [with _CharT 
   = char, _Traits = std::char_traitschar]
zend_istdiostream.h:10: `_file' undeclared (first use this function)
zend_istdiostream.h:10: (Each undeclared identifier is reported only once for 
   each function it appears in.)
zend_istdiostream.h: At global scope:
zend_istdiostream.h:12: parse error before `}' token
./zend_language_scanner.l: In function `void 
   zend_file_handle_dtor(zend_file_handle*)':
./zend_language_scanner.l:198: no matching function for call to 
   `std::basic_streambufchar, std::char_traitschar ::stdiofile()'
./zend_language_scanner.l: In function `int 
   open_file_for_scanning(zend_file_handle*, zend_compiler_globals*)':
./zend_language_scanner.l:269: no matching function for call to 
   `std::basic_ifstreamchar, std::char_traitschar ::basic_ifstream(int)'
/usr/local/include/g++-v3/bits/std_iosfwd.h:81: candidates are: 
   std::basic_ifstreamchar, std::char_traitschar ::basic_ifstream(const 
   std::basic_ifstreamchar, std::char_traitschar )
/usr/local/include/g++-v3/bits/std_fstream.h:258: 
   std::basic_ifstream_CharT, _Traits::basic_ifstream(const char*, 
   std::_Ios_Openmode = std::ios_base::in) [with _CharT = char, _Traits = 
   std::char_traitschar]
/usr/local/include/g++-v3/bits/std_fstream.h:253: 
   std::basic_ifstream_CharT, _Traits::basic_ifstream() [with _CharT = char, 
   _Traits = std::char_traitschar]
zend_language_scanner_cc.cc: In member function `int 
   ZendFlexLexer::lex_scan(zval*, zend_compiler_globals*)':
zend_language_scanner_cc.cc:4852: cannot convert `std::istream*' to `istream*' 
   in assignment
zend_language_scanner_cc.cc: In member function `void 
   zendFlexLexer::yy_load_buffer_state()':
zend_language_scanner_cc.cc:5388: cannot convert `istream*' to `std::istream*' 
   in assignment
zend_language_scanner_cc.cc: In member function `void 
   zendFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*)':
zend_language_scanner_cc.cc:5439: cannot convert `std::istream*' to `istream*' 
   in assignment
make: *** [zend_language_scanner_cc.lo] Error 1



### Using Sun Workshop C++ Complier ###
bash-2,00$ CC -V  
CC: Sun WorkShop 6 2000/04/07 C++ 5.1

bash-2,00$ /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 -O2 -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.