Menu

Compiling on Sparc Solaris CC, PHP 5.2.1

Help
2007-05-17
2012-10-23
  • John Merritt

    John Merritt - 2007-05-17

    I had no problem compiling on Linux with GCC, but my production environment is Sparc Solaris 10 and its giving me fits. Any thoughts where I went wrong here?

    -bash-3.00$ /usr/local/php5/bin/php -v
    PHP 5.2.1 (cli) (built: Feb 26 2007 22:37:55)

    -bash-3.00$ cc -V
    cc: Sun C 5.8 2005/10/13

    /bin/bash /opt/local/homes/jm309/php-5.2.1/libtool --silent --preserve-dup-deps --mode=compile CC -Iext/arapi/ -I/opt/local/homes/jm309/php-5.2.1/ext/arapi/ -DPHP_ATOM_INC -I/opt/local/homes/jm309/php-5.2.1/include -I/opt/local/homes/jm309/php-5.2.1/main -I/opt/local/homes/jm309/php-5.2.1 -I/usr/local/include/libxml2 -I/usr/sfw/include -I/usr/local/include -I/opt/local/homes/jm309/php-5.2.1/ext/date/lib -I/usr/local/mysql_32bit/include/mysql -I/usr/local/pgsql/include -I/usr/ar/rtl -I/opt/local/homes/jm309/php-5.2.1/TSRM -I/opt/local/homes/jm309/php-5.2.1/Zend -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -c /opt/local/homes/jm309/php-5.2.1/ext/arapi/php_arapi.cpp -o ext/arapi/php_arapi.lo
    "/usr/ar/rtl/ByteList.h", line 89: Warning: numItems hides rtl::ByteList::numItems.
    "/usr/ar/rtl/Attach.h", line 124: Warning: fileName hides rtl::Attach::fileName.
    "/usr/ar/rtl/Attach.h", line 129: Warning: bufSize hides rtl::Attach::bufSize.
    "/usr/ar/rtl/Value.h", line 83: Error: "rtl::Value::ValueImpl::operator=(const rtl::Value::ValueImpl&)" is expected to return a value.
    "/usr/ar/rtl/Prop.h", line 45: Warning: prop hides rtl::Prop::prop.
    "/usr/ar/rtl/Prop.h", line 45: Warning: value hides rtl::Prop::value.
    "/usr/ar/rtl/Prop.h", line 62: Warning: value hides rtl::Prop::value.
    "/usr/ar/rtl/Prop.h", line 65: Warning: value hides rtl::Prop::value.
    "/usr/ar/rtl/FieldLimit.h", line 75: Error: "rtl::FieldLimit::operator=(const rtl::FieldLimit::FieldLimitImpl&)" is expected to return a value.
    "/usr/ar/rtl/FieldLimit.h", line 123: Warning: rangeLow hides rtl::FieldLimit::IntegerLimitImpl::rangeLow.
    "/usr/ar/rtl/FieldLimit.h", line 123: Warning: rangeHigh hides rtl::FieldLimit::IntegerLimitImpl::rangeHigh.
    "/usr/ar/rtl/FieldLimit.h", line 148: Warning: rangeLow hides rtl::FieldLimit::RealLimitImpl::rangeLow.
    "/usr/ar/rtl/FieldLimit.h", line 148: Warning: rangeHigh hides rtl::FieldLimit::RealLimitImpl::rangeHigh.

    [snip]

    "/opt/local/homes/jm309/php-5.2.1/ext/arapi/php_arapi.cpp", line 1263: Warning (Anachronism): Using void()(int,_zval_struct,_zval_struct,_zval_struct,int,void) to initialize extern "C" void()(int,_zval_struct,_zval_struct*,_zval_struct,int,void).
    "/opt/local/homes/jm309/php-5.2.1/ext/arapi/php_arapi.cpp", line 1353: Warning: String literal converted to char
    in initialization.
    "/opt/local/homes/jm309/php-5.2.1/ext/arapi/php_arapi.cpp", line 1357: Warning (Anachronism): Using int()(int,int,void) to initialize extern "C" int(*)(int,int,void).
    "/opt/local/homes/jm309/php-5.2.1/ext/arapi/php_arapi.cpp", line 1358: Warning (Anachronism): Using int(
    )(int,int,void) to initialize extern "C" int(*)(int,int,void).
    "/opt/local/homes/jm309/php-5.2.1/ext/arapi/php_arapi.cpp", line 1361: Warning: String literal converted to char* in initialization.
    8 Error(s) and 99 Warning(s) detected.
    make:
    * [ext/arapi/php_arapi.lo] Error 1

    Thanks!

     
    • Jens Yllman

      Jens Yllman - 2007-09-27

      Thank you for this message. I do not know why SF not notify me on this. I looks mostly like you have a 'strict' compiler. But I will check the warnings in the php_arapi.cpp.

      Thanks

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.