Text relocation remains - Error building PHP 5.1.2

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • e r m

    Text relocation remains - Error building PHP 5.1.2

    I'm having the exact same problem as reported in Bug ID #'s 33476,
    36305, 36020, and 34516. PHP 5.1.1 and 5.1.2 won't link against
    libmysqlclient. a.

    Environment details:
    Sun V440 Solaris 9
    GCC 3.4.2
    libtool 1.5.22
    ld 2.14
    Apache 2.2.0
    MySQL 5.0.18

    The error shown is:
    Text relocation remains referenced
    against symbol offset in file
    <unknown> 0x598
    /mydir/usr/local/mysql-5.0.18/lib/mysql/libmysqlclient. a(libmysql.o)
    <unknown> 0x59c
    /mydir/usr/local/mysql-5.0.18/lib/mysql/libmysqlclient. a(libmysql.o)
    <unknown> 0x5a0
    /mydir/usr/local/mysql-5.0.18/lib/mysql/libmysqlclient. a(libmysql.o)
    ....

    MySQL is 5.0.18 and built on same host. Configure parameters for
    building MySQL are:
    CC=gcc CFLAGS="-O3 -fno-omit-frame-pointer -fPIC" CXX=gcc CXXFLAGS="-O3
    \
    -fno-omit-frame-pointer -felide-constructors -fno-exceptions
    -fno-rtti -fPIC" \
    ../configure --prefix=/mydir/usr/local/mysql-5.0.18 \
    --with-extra-charsets=comple x \
    --enable-thread-safe-client \
    --enable-local-infile \
    --enable-assembler \
    --with-named-curses-libs=-lcurses \
    --enable-assembler \
    --with-gnu-ld \
    --with-openssl=/mydir/usr/local/openssl-0.9.8a \
    --disable-shared

    MySQL has been installed, and is working properly. PHP 5.0.3 has been
    built and installed successfully using the mysql libs. The problem is
    in trying to build PHP 5.1.1 or 5.1.12. Both give the text relocation
    error. The configure parameters for PHP are:
    CC=gcc CFLAGS="-O3 -fno-omit-frame-pointer -fPIC" CXX=gcc CXXFLAGS="-O3
    \
    -fno-omit-frame-pointer -felide-constructors -fno-exceptions
    -fno-rtti -fPIC" \
    ../configure --prefix=/mydir/usr/local/php-5.1.2 \
    --enable-libgcc \
    --enable-soap \
    --with-pear \
    --with-zlib \
    --with-zlib-dir=/mydir/usr/local/zlib-1.2.3 \
    --with-bz2 \
    --with-libxml-dir=/mydir/usr/local \
    --with-apxs2=/mydir/usr/local/apache-2.2.0/bin/apxs \
    --with-openssl=/mydir/usr/local/openssl-0.9.8a \
    --with-openssl-dir=/mydir/usr/local/openssl-0.9.8a \
    --with-pic \
    --with-mysqli=/mydir/usr/local/bin/mysql_config \
    --with-mysql=/mydir/usr/local \
    --with-mysql-sock=/tmp/mysql.sock \
    --with-gnu-ld \
    --disable-shared

    I've played with the pic, gnu-ld, and shared configure parameters but
    they still give the same error. The only way I've successfully built
    PHP 5.1.12 is by removing the MySQL entries.

    Can anyone tell me what I need to do to build PHP 5.1.12 with MySQL? I
    don't know why the reported bugs were all marked as bogus. Seems to me
    that it's a common issue, and I don't believe it's a MySQL bug, since
    PHP 5.0.3 builds fine with the very same MySQL libs.

Working...