[solved] Cannot install ISPConfig on CentOS 5.2: (adler32.o): relocation R_X86_64_32

Discussion in 'Installation/Configuration' started by FractalizeR, Aug 24, 2008.

  1. FractalizeR

    FractalizeR New Member

    Hello.

    I cannot install ISPConfig on CentOS 5.2. The error seem to be in zlib-to-clam, but i don't understand where:

    Code:
    /usr/bin/ld: /usr/local/lib/libz.a(adler32.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
    /usr/local/lib/libz.a: could not read symbols: Bad value
    collect2: ld returned 1 exit status
    make[3]: *** [libclamav.la] Error 1
    make[3]: Leaving directory `/usr/local/fractal/install_ispconfig/compile_aps/clamav-0.93.1/libclamav'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/usr/local/fractal/install_ispconfig/compile_aps/clamav-0.93.1/libclamav'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/usr/local/fractal/install_ispconfig/compile_aps/clamav-0.93.1'
    make: *** [all] Error 2
    ERROR: Could not make ClamAV
    cd: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    mv: cannot stat `binaries/aps.tar.gz': No such file or directory
    mv: cannot stat `binaries/spamassassin.tar.gz': No such file or directory
    mv: cannot stat `binaries/uudeview.tar.gz': No such file or directory
    mv: cannot stat `binaries/clamav.tar.gz': No such file or directory
    mv: cannot stat `binaries/cronolog': No such file or directory
    mv: cannot stat `binaries/cronosplit': No such file or directory
    mv: cannot stat `binaries/ispconfig_tcpserver': No such file or directory
    mv: cannot stat `binaries/zip': No such file or directory
    mv: cannot stat `binaries/unzip': No such file or directory
    tar: spamassassin.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `spamassassin': No such file or directory
    tar: uudeview.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `uudeview': No such file or directory
    tar: clamav.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    mv: cannot stat `clamav': No such file or directory
    tar: aps.tar.gz: Cannot open: No such file or directory
    tar: Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error exit delayed from previous errors
    ./setup2: line 888: ispconfig_tmp/php/bin/php: No such file or directory
    ERROR: The PHP binary coming with ISPConfig does not work properly on your system! The installation routine stops here!
    
    All rpms (zlib and zlib-devel both i386 and x86-64) are installed I am running CentOS under VMWare on Athlon X2 CPU, which is 64 bit.

    I have tried to recompile zlib from sources providing --libdir=/usr/lib64, but this doesn't solve the problem. PHP compiles without problems, but ClamAV still causes this trouble.
    Before installing ISPConfig I compiled and installed Apache, MySQL and PHP from sources. They also require zlib, but all was ok with them.
     
    Last edited: Aug 24, 2008
  2. FractalizeR

    FractalizeR New Member

    Ok. This problem has been resolved by the following solution.
    I have recompiled zlib from sources provided
    ./configure --shared

    Please note, no --libdir was provided (is that needed?) And afterwards just repeated ISPConfig installation.

    P.S. Moderators, please prepend the title of this thread with [Solved]. I think this solution can be useful because such problem occures not only when compiling Clam. I saw messages on different forum that it also happen on PHP compilation for example.
     
    Last edited: Aug 25, 2008

Share This Page