Results 1 to 3 of 3

Thread: linking against libpng: relocation R_X86_64_32 error

  1. #1
    Join Date
    Feb 2011
    Location
    France
    Beans
    6
    Distro
    Xubuntu 11.04 Natty Narwhal

    linking against libpng: relocation R_X86_64_32 error

    Hi,

    I try to make PHP 5.3.x with the use of libpng installed on the system (./configure ... --with-png-dir ...).

    But at make time it failed with:
    Code:
    /usr/bin/ld: skipping incompatible /usr/lib/libpng.so when searching for -lpng
    /usr/bin/ld: /usr/lib/libpng.a(libpng12_la-png.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
    /usr/lib/libpng.a: could not read symbols: Bad value
    collect2: ld returned 1 exit status
    make: *** [libphp5.la] Erreur 1
    I'm using XUbuntu 11.04 and all stuff come from the package manager expect the php source code that I would like to compile, so the libpng package is: libpng12-dev (1.2.44-1ubuntu3.1)

    What's wrong with this libpng package ?

    Thanks
    Cyrille.
    Last edited by Cyrille37; August 28th, 2011 at 03:23 PM.

  2. #2
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,292
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: linking against libpng: relocation R_X86_64_32 error

    Couldn't reproduce. Please give your exact configure line.

  3. #3
    Join Date
    Feb 2011
    Location
    France
    Beans
    6
    Distro
    Xubuntu 11.04 Natty Narwhal

    Re: linking against libpng: relocation R_X86_64_32 error

    Hello and Thanks,

    Here it is my Php 5.3.8 configure and build command :

    ./configure \
    --prefix=${InstallPath}/php5 \
    --with-apxs2=${InstallPath}/apache/bin/apxs \
    --with-openssl \
    --with-mcrypt \
    --with-mysql=mysqlnd \
    --with-mysqli=mysqlnd \
    --enable-sqlite-utf8 \
    --with-libxml-dir \
    --with-xsl \
    --enable-soap \
    --enable-mbstring \
    --enable-intl \
    --with-jpeg-dir \
    --with-png-dir \
    --with-gd \
    --enable-gd-native-ttf \
    --with-zlib \
    --enable-zip \
    && make && make install

    For all dependencies I've installed each library's development version with the Synaptic package manager (main, universe, restricted, multiverse).

    Cheers
    Cyrille

Tags for this Thread

Bookmarks

Posting Permissions

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