Ad Widget

Collapse

Fatal error compiling PHP 7.4 on Sol 10 - ld: fatal: wrong ELF class: ELFCLASS32

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stuart.salter
    Junior Member
    • Feb 2021
    • 7

    #1

    Fatal error compiling PHP 7.4 on Sol 10 - ld: fatal: wrong ELF class: ELFCLASS32

    We're configuring with the following options: ./configure \ --disable-xml \ --disable-libxml \ --disable-dom \ --disable-simplexml \ --disable-xmlreader \ --disable-xmlwriter \ --without-pear \ --without-sqlite3 \ --without-pdo-sqlite \ when running 'make' we get the following error:
    ld: fatal: file /usr/local/lib/libiconv.so: wrong ELF class: ELFCLASS32 ld: fatal: file processing errors. No output written to sapi/cli/php *** Error code 1 make: Fatal error: Command failed for target `sapi/cli/php'
    paths are set as follows:

    echo $PATH /opt/csw/bin:/usr/bin:/usr/sbin:/opt/solarisstudio12.3/bin:/usr/local/bin:/app/mysql/usr/local/mysql/bin:/usr/local/bin/gcc:/usr/sbin:/usr/bin:/usr/local/bin:/usr/ccs/bin # echo $LD_LIBRARY_PATH /opt/csw/lib:/usr/local/64/lib:/usr/sfw/lib/sparcv9/:/usr/apache2.2/pcre/lib/:/usr/apache2.2/apr_util/lib/:/usr/apache2.2/apr/lib/ # echo $PKG_CONFIG_PATH /opt/csw/bin:/usr/lib:/usr/local/lib:/usr/include:/usr/local/include:/opt/csw/lib:

    could you help please ? thankyou !
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    I think you're posting to the wrong forums. For help compiling PHP, you probably want to post on the PHP forums, not the Zabbix forums.

    You may also want to consider including '-m64' in your CFLAGS before you run configure, but that's something for the PHP forums.

    Comment

    • stuart.salter
      Junior Member
      • Feb 2021
      • 7

      #3
      thanks for the reply !

      Comment

      Working...