AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  Compiling PHP 5.3.6 on AIX 6.1: 1252-040 The specified expression is not...

    Posted Wed May 18, 2011 06:41 AM

    Originally posted by: SystemAdmin


    During the make process, I got tons of
    
    ... /tmp
    //ccncXZwz.s: line 233091: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation. /tmp
    //ccncXZwz.s: line 233097: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation. /tmp
    //ccncXZwz.s: line 233112: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation. /tmp
    //ccncXZwz.s: line 233116: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation. /tmp
    //ccncXZwz.s: line 233123: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation. /tmp
    //ccncXZwz.s: line 233134: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation. /tmp
    //ccncXZwz.s: line 233139: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation. /tmp
    //ccncXZwz.s: line 233151: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation. make: 1254-004 The error code from the last command is 1.
    

    Google suggests there's a gcc patch for AIX!? But I cannot find it anywhere.

    Any help would be great.

    cheers.
    #AIX-Forum


  • 2.  Re: Compiling PHP 5.3.6 on AIX 6.1: 1252-040 The specified expression is not...

    Posted Wed May 18, 2011 11:11 AM

    Originally posted by: Montecarlo


    I've just compiled 5.2.12 on AIX 6.1 with gcc and found that in some cases the error that caused the problem was dozens of lines ahead of the final failure message. Was there a different error message prior to the string of 1252-040 errors?

    Regards, Simon
    #AIX-Forum


  • 3.  Re: Compiling PHP 5.3.6 on AIX 6.1: 1252-040 The specified expression is not...

    Posted Wed May 18, 2011 10:22 PM

    Originally posted by: SystemAdmin


    Hi Simon,

    There are no other before, just warnings. It doesn't seem to like sqlite3.c, but I just installed the latest gcc-c and gcc-c++ rpm from http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/rpmgroups.html . Could it be the compiled gcc is really outdated from IBM?

    
    /home/abc/php-5.3.6/ext/sqlite3/libsqlite/sqlite3.c:118931: warning: visibility attribute not supported in 
    
    this configuration; ignored Assembler: /tmp
    //cc0aOuHm.s: line 19840: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation. /tmp
    //cc0aOuHm.s: line 19848: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation.
    

    #AIX-Forum


  • 4.  Re: Compiling PHP 5.3.6 on AIX 6.1: 1252-040 The specified expression is not...

    Posted Wed May 18, 2011 10:29 PM

    Originally posted by: SystemAdmin


    Seriously, how outdate can IBM be?

    GCC 4.2.0 May 13, 2007
    PHP 4.0.6 23-Jun-2001
    #AIX-Forum


  • 5.  Re: Compiling PHP 5.3.6 on AIX 6.1: 1252-040 The specified expression is not...

    Posted Thu May 19, 2011 03:58 AM

    Originally posted by: Montecarlo


    For what its worth, I used gcc 4.4.5-1 from http://www.perzl.org/aix/. I see they have 4.4.6-1 now.
    Regards, Simon
    #AIX-Forum


  • 6.  Re: Compiling PHP 5.3.6 on AIX 6.1: 1252-040 The specified expression is not...

    Posted Thu May 19, 2011 05:02 AM

    Originally posted by: SystemAdmin


    Thanks Simon,

    I found the good stuffs on the same site too, and I've redo everything with rpm.
    Now I hope the aix5.1/2 builds run fine on aix6.1.

    cheers.
    #AIX-Forum


  • 7.  Re: Compiling PHP 5.3.6 on AIX 6.1: 1252-040 The specified expression is not...

    Posted Fri May 20, 2011 06:39 AM

    Originally posted by: SystemAdmin


    Hi Simon,

    I've installed gcc4.4.6, and am on the painful path to make oci8.so for php!! I finally get to the "make" step, then:
    
    # make /bin/sh /home/theorigo/pear/oci8-1.4.5/libtool --mode=compile gcc  -I. -I/home/theorigo/pear/oci8-1.4.5 -DPHP_ATOM_INC -I/home/theorigo/pear/oci8-1.4.5/include -I/home/theorigo/pear/oci8-1.4.5/main -I/home/theorigo/pear/oci8-1.4.5 -I/opt/freeware/include/php -I/opt/freeware/include/php/main -I/opt/freeware/include/php/TSRM -I/opt/freeware/include/php/Zend -I/opt/freeware/include/php/ext -I/opt/freeware/include/php/ext/date/lib -I/home/theorigo/instantclient_11_1/sdk/include  -DHAVE_CONFIG_H  -g -O2   -c /home/theorigo/pear/oci8-1.4.5/oci8.c -o oci8.lo mkdir .libs gcc -I. -I/home/theorigo/pear/oci8-1.4.5 -DPHP_ATOM_INC -I/home/theorigo/pear/oci8-1.4.5/include -I/home/theorigo/pear/oci8-1.4.5/main -I/home/theorigo/pear/oci8-1.4.5 -I/opt/freeware/include/php -I/opt/freeware/include/php/main -I/opt/freeware/include/php/TSRM -I/opt/freeware/include/php/Zend -I/opt/freeware/include/php/ext -I/opt/freeware/include/php/ext/date/lib -I/home/theorigo/instantclient_11_1/sdk/include -DHAVE_CONFIG_H -g -O2 -c /home/theorigo/pear/oci8-1.4.5/oci8.c  -DPIC -o .libs/oci8.o Assembler: /tmp
    //cc5Pjk2a.s: line 1632: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation. /tmp
    //cc5Pjk2a.s: line 8961: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation. /tmp
    //cc5Pjk2a.s: line 8989: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation. /tmp
    //cc5Pjk2a.s: line 10142: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation. /tmp
    //cc5Pjk2a.s: line 10164: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation. /tmp
    //cc5Pjk2a.s: line 10316: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation. /tmp
    //cc5Pjk2a.s: line 10347: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation. /tmp
    //cc5Pjk2a.s: line 10524: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation. /tmp
    //cc5Pjk2a.s: line 10552: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation. /tmp
    //cc5Pjk2a.s: line 11247: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation. /tmp
    //cc5Pjk2a.s: line 11486: 1252-040 The specified expression is not valid. Make sure that all symbols are defined. Check the rules on symbols used in an arithmetic expression concerning relocation. make: 1254-004 The error code from the last command is 1.     Stop.
    


    Wondering if u have any idea on making oci8!
    #AIX-Forum


  • 8.  Re: Compiling PHP 5.3.6 on AIX 6.1: 1252-040 The specified expression is not...

    Posted Fri May 20, 2011 06:32 AM

    Originally posted by: SystemAdmin


    same error on oci8
    #AIX-Forum


  • 9.  Re: Compiling PHP 5.3.6 on AIX 6.1: 1252-040 The specified expression is not...

    Posted Mon May 23, 2011 05:05 AM

    Originally posted by: Montecarlo


    Hi Wesley,
    I looked in my build directory. Seems oci is the Oracle Instant Client and you have to use a configuration flag to enable it. Do you need it? There is a README in the oci8 subdirectory with information on the necessary configure flags.
    I built without it using Nigel Griffith's suggested configuration flags. (see http://www.ibm.com/developerworks/wikis/display/WikiPtype/aixopen) I removed flags that my version of configure reported as incorrect.
    Here's my configure command:
    export PATH=/opt/freeware/bin:$PATH
    ./configure --disable-cli --prefix=/usr/local --with-apxs2=/usr/local/apache2/bin
    /apxs --with-config-file-path=/usr/local/apache2/conf --with-gd --with-zlib-dir=/
    opt/freeware/lib --enable-shared --disable-static --with-png-dir=/opt/freeware/li
    b --with-zlib --with-bz2 --with-jpeg-dir=/opt/freeware/lib --with-png-dir=/opt/fr
    eeware/lib --with-xpm-dir=/opt/freeware/lib --with-freetype-dir=/opt/freeware/lib

    Apache 2.2.18 was already built and installed.

    Regards, Simon
    #AIX-Forum