473,763 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.

Mar 9 '06 #1
0 1669

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1238
by: Matt Raines | last post by:
Hi, Has anybody had success getting the oggvorbis module from PECL to work? I installed the latest versions of libogg and libvorbis from xiph.org (with the default configure options) and then did "pear install oggvorbis". phpinfo reports "Ogg Vorbis Wrapper: enabled", but whenever I try to open an ogg stream in PHP (with eg. fopen("ogg://file.ogg"); ) I get: /usr/bin/php: relocation error:
0
2187
by: w00t | last post by:
I am running Suse 9.0 and have been working with postgresql 7.3.3 When I run psql as psql -v or psql -V and even psql --help I get a relocation error psql: relocation error: /usr/lib/libreadline.so.4: undefined symbol: BC Is there anyway to fix this with out reinstalling postgresql. Thanks,
1
2158
by: willie | last post by:
Hi all: I have a clustering SQL Server on Node1 and Node2, the Node1 has named Instance1 and Node2 has named Instance2, no default instance. We tested it that everthing is OK, then we decide to move to DR location. The relocation kept the same virtual and phusical server name, and we did not change SQL Server server network utility. But server IP addresses were changed(vitual and physical). We can start the clustering SQL Server as...
5
1989
by: NTPT | last post by:
Regardi I recently compile Postgresql 7.4.3 with gcc 3.4.0 on RH 7.3 . Regression tests work well All passed, but Some binaries report a relocation error: :pg_dumpall undefined symbol get_progname . This error occures in most of the binaries. What is wrong ?
1
1920
by: Timothy Larson | last post by:
I've been scanning groups and Googling and can't figure out why I'm getting this error. I've read about using the -fPIC flag but I've been doing that. Cannot load /usr/local/apache2/modules/libphp5.so into server: /usr/local/apache2/modules/libphp5.so: R_PPC_REL24 relocation at 0x0e56191c for symbol `floor' out of range Lots of people post about this problem but I can't find solutions. The symbol out of range changes, but the...
3
2112
by: silverburgh.meryl | last post by:
I have this linker error, and I would need some help in resolving it: I have put "#include <iostream>" in my .cpp. I am not sure why I can't link. It compiles fine. /usr/bin/ld: .../../dist/lib/libjsdombase_s.a(BlockGrouper.o)(.text+0x98): unresolvable relocation against symbol `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)@@GLIBCXX_3.4'
1
2299
by: Suneeel | last post by:
Hi All, I'm having a problem with STL on Red Hat Linux 9, gcc 4.1.0. I have a Shared Object that is inserting an object into a MAP. When this shared object is used, I get a runtime error saying relocation error: /usr/lib/libMySharedObj.so: undefined symbol: _ZSt29_Rb_tree_insert_and_rebalancebPSt18_Rb_tree_node_baseS0_RS_
13
4244
by: DH | last post by:
Hi, I'm trying to strip the html and other useless junk from a html page.. Id like to create something like an automated text editor, where it takes the keywords from a txt file and removes them from the html page (replace the words in the html page with blank space) I'm new to python and could use a little push in the right direction, any ideas on how to implement this? Thanks!
3
3909
by: ajtaylor | last post by:
I have an set of unmanaged C++ libraries that I have been successfully using in a C++/CLI assembly which is in turn used by some other .NET code (ASP.NET/C#). The C++ makes a lot of use of Boost and STL. This is all working in VS 2005 I moved to VS 2008 and compiled up Boost 1_36 I have subsequently applied SP1 to VS2008. When I attempt to compile and link the C++/CLI I get the error
0
9563
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9386
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10145
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9998
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8822
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7366
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5270
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3917
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3523
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.