Find the answer to your Linux question:
Results 1 to 3 of 3
Hi I'm trying to build PHP 5.2.6 on OpenSuse 10.2 64 bit. Configure goes fine, but after a while in the make process, it halts with this error: Code: /bin/sh ...
  1. #1
    Just Joined!
    Join Date
    Jul 2008
    Posts
    2

    Question Build error with PHP 5.2.6 on x86_64

    Hi

    I'm trying to build PHP 5.2.6 on OpenSuse 10.2 64 bit.

    Configure goes fine, but after a while in the make process, it halts with this error:

    Code:
    /bin/sh /home/admin/build/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/standard/ -I/home/admin/build/php-5.2.6/ext/standard/ -DPHP_ATOM_INC -I/home/admin/build/php-5.2.6/include -I/home/admin/build/php-5.2.6/main -I/home/admin/build/php-5.2.6 -I/usr/include/libxml2 -I/home/admin/build/php-5.2.6/ext/date/lib -I/usr/include/mysql -I/home/admin/build/php-5.2.6/TSRM -I/home/admin/build/php-5.2.6/Zend    -g -O2  -prefer-pic -c /home/admin/build/php-5.2.6/ext/standard/proc_open.c -o ext/standard/proc_open.lo
    /bin/sh /home/admin/build/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/standard/ -I/home/admin/build/php-5.2.6/ext/standard/ -DPHP_ATOM_INC -I/home/admin/build/php-5.2.6/include -I/home/admin/build/php-5.2.6/main -I/home/admin/build/php-5.2.6 -I/usr/include/libxml2 -I/home/admin/build/php-5.2.6/ext/date/lib -I/usr/include/mysql -I/home/admin/build/php-5.2.6/TSRM -I/home/admin/build/php-5.2.6/Zend    -g -O2  -prefer-pic -c /home/admin/build/php-5.2.6/ext/standard/streamsfuncs.c -o ext/standard/streamsfuncs.lo
    /tmp/ccH5g9f1.s: Assembler messages:
    /tmp/ccH5g9f1.s:1795: Error: Incorrect register `%rax' used with `l' suffix
    /tmp/ccH5g9f1.s:1943: Error: Incorrect register `%rdx' used with `l' suffix
    make: *** [ext/standard/streamsfuncs.lo] Error 1
    From what I can find, it is something to do with 64 bit systems not using the 'l' suffix in assembler, but I have no knowledge as to how to fix this (if it is in fact the problem)

    Any help hugely appreciated on this.

    Thanks

  2. #2
    Linux Guru gogalthorp's Avatar
    Join Date
    Oct 2006
    Location
    West (by God) Virginia
    Posts
    3,105
    5.2.6 is available via the opensuse repository 64 and 32. Why not install it precompiled via Yast?

  3. #3
    Just Joined!
    Join Date
    Jul 2008
    Posts
    2
    I'm attempting to do it for somebody who is running Cpanel/WHM on their server, because WHM doesn't seem to work properly with OpenSuSE 10.2 and they are stuck on Apache 1.3 at the moment. (They require to update PHP because of security issues on the version they are running)

    The pre-compiled versions (AFAIAA) are linked against Apache 2+ and so will not work with 1.3.x (please correct me if I am wrong ). and will also most likely put the files into a different place than WHM/Cpanel would expect.

    I have done enough compiling on 32bit systems (though quite a while ago!) and didn't think there would be that much to getting an updated PHP installed on the 64bit system - after all, if it is available in the repositories, it is compilable - I presume the guys running OpenSuSE know what they are doing to patch it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...