#35465 [Bgs-Opn]: link error Text relocation remains

2005-11-30 Thread rusty at socrates dot berkeley dot edu
 ID:   35465
 User updated by:  rusty at socrates dot berkeley dot edu
 Reported By:  rusty at socrates dot berkeley dot edu
-Status:   Bogus
+Status:   Open
 Bug Type: Compile Failure
 Operating System: solaris 9
 PHP Version:  5.1.1
 Assigned To:  sniper
 New Comment:

Would you guys please pull your heads out of your  and go read bug
#35475?  It appears to be a bug in the libtool that you're now using. 
It may not be a bug in the PHP code but it certainly is a bug in the
PHP *distribution*.

I've wiped and re-extracted the tar files and copied over the
libtool.m4 from 5.0.5 to 5.1.1 and am recompiling right now.  I'll add
a comment when it finishes.


Previous Comments:


[2005-11-30 10:34:48] [EMAIL PROTECTED]

Joe, I agree, this is most likely not PHP issue, but I'm still able to
reproduce it on Solaris 8 and -fPIC doesn't help.



[2005-11-30 09:46:26] [EMAIL PROTECTED]

This is the expected failure from trying to link non-PIC code into a
shared library on most platforms.  If you really insist on using a
static MySQL library you must rebuild it with -fPIC in CFLAGS.

If it worked previously I'd guess it was only because the static
libmysql.a wasn't being found.



[2005-11-29 23:35:03] rusty at socrates dot berkeley dot edu

Yes, almost all of my add-on libraries are .a files because long ago I
used to have problem with .so ones.  Plus, I like to find out about any
missing symbols at compile time, not run time, which was part of the
problem I used to have.



[2005-11-29 22:58:14] [EMAIL PROTECTED]

See also bug #35475



[2005-11-29 17:19:13] rusty at socrates dot berkeley dot edu

Yes, it compiles with

./configure --disable-all --with-apxs2=/${WWWROOT}/bin/apxs



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/35465

-- 
Edit this bug report at http://bugs.php.net/?id=35465edit=1


#35465 [Opn]: link error Text relocation remains

2005-11-30 Thread rusty at socrates dot berkeley dot edu
 ID:   35465
 User updated by:  rusty at socrates dot berkeley dot edu
 Reported By:  rusty at socrates dot berkeley dot edu
 Status:   Open
 Bug Type: Compile Failure
 Operating System: solaris 9
 PHP Version:  5.1.1
 Assigned To:  sniper
 New Comment:

5.1.1 compiles if you use the libtool from 5.0.5.  You have to copy
over libtool after running configure in the 5.0.5 and 5.1.1
directories.  Do not copy over libtool.m4 from the build directory and
then run configure.


Previous Comments:


[2005-11-30 19:08:18] php at fiddaman dot net

I'm seeing the problem with the IMAP extension which uses the UW IMAP
toolkit. Now this toolkit never compiles as a shared object (see
http://www.washington.edu/imap/IMAP-FAQs/#6.3)

If Rusty's unusual use of static mysql libraries is a problem, look at
the IMAP extension.



[2005-11-30 18:54:09] rusty at socrates dot berkeley dot edu

Would you guys please pull your heads out of your  and go read bug
#35475?  It appears to be a bug in the libtool that you're now using. 
It may not be a bug in the PHP code but it certainly is a bug in the
PHP *distribution*.

I've wiped and re-extracted the tar files and copied over the
libtool.m4 from 5.0.5 to 5.1.1 and am recompiling right now.  I'll add
a comment when it finishes.



[2005-11-30 10:34:48] [EMAIL PROTECTED]

Joe, I agree, this is most likely not PHP issue, but I'm still able to
reproduce it on Solaris 8 and -fPIC doesn't help.



[2005-11-30 09:46:26] [EMAIL PROTECTED]

This is the expected failure from trying to link non-PIC code into a
shared library on most platforms.  If you really insist on using a
static MySQL library you must rebuild it with -fPIC in CFLAGS.

If it worked previously I'd guess it was only because the static
libmysql.a wasn't being found.



[2005-11-29 23:35:03] rusty at socrates dot berkeley dot edu

Yes, almost all of my add-on libraries are .a files because long ago I
used to have problem with .so ones.  Plus, I like to find out about any
missing symbols at compile time, not run time, which was part of the
problem I used to have.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/35465

-- 
Edit this bug report at http://bugs.php.net/?id=35465edit=1


#35465 [Fbk-Opn]: link error Text relocation remains

2005-11-29 Thread rusty at socrates dot berkeley dot edu
 ID:   35465
 User updated by:  rusty at socrates dot berkeley dot edu
 Reported By:  rusty at socrates dot berkeley dot edu
-Status:   Feedback
+Status:   Open
 Bug Type: Compile Failure
 Operating System: solaris 9
 PHP Version:  5.1.1
 New Comment:

Yes, it compiles with

./configure --disable-all --with-apxs2=/${WWWROOT}/bin/apxs


Previous Comments:


[2005-11-29 09:25:56] [EMAIL PROTECTED]

Does this work:

# rm config.cache
# ./configure --disable-all --with-apxs2=/${WWWROOT}/bin/apxs
# make clean ; make

Also you shouldn't need to use these options because they either don't
even exist or configure handles them for you automatically:

--enable-inline-optimization (it's enabled by default)
--enable-libgcc (detected automatically when needed)
--enable-trans-sid (has not existed for years)
--with-tsrm-pthreads (detected automatically)




[2005-11-29 03:17:47] rusty at socrates dot berkeley dot edu

Description:

At the final linking stage I get thousands of lines like the following
(at the end of this message).  My configure wrapper shell script is

configure \
--prefix=${WWWROOT} \
--enable-bcmath \
--enable-inline-optimization \
--enable-libgcc \
--enable-track-vars \
--enable-trans-sid \
--with-apxs2=/${WWWROOT}/bin/apxs \
--with-config-file-path=${WWWROOT}/conf \
--with-gmp \
--with-ldap=${LOCAL} \
--with-mysql=${MYSQLROOT} \
--with-openssl=${LOCAL} \
--with-tsrm-pthreads

With php 5.0.5 it compiles without a squeek.

Here's the start of the error output; thousands of lines like this
(about 94,000) for many/all of the libraries:

Text relocation remains referenced
against symbol  offset  in file
unknown   0x570  
/local_a/servers/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
unknown   0x574  
/local_a/servers/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
unknown   0x578  
/local_a/servers/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
unknown   0x57c  
/local_a/servers/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
unknown   0x580  
/local_a/servers/mysql/lib/mysql/libmysqlclient.a(libmysql.o)







-- 
Edit this bug report at http://bugs.php.net/?id=35465edit=1


#35465 [Opn]: link error Text relocation remains

2005-11-29 Thread rusty at socrates dot berkeley dot edu
 ID:   35465
 User updated by:  rusty at socrates dot berkeley dot edu
 Reported By:  rusty at socrates dot berkeley dot edu
 Status:   Open
 Bug Type: Compile Failure
 Operating System: solaris 9
 PHP Version:  5.1.1
 New Comment:

Also, thanks for the heads-up on the legacy config options I can
remove.


Previous Comments:


[2005-11-29 17:19:13] rusty at socrates dot berkeley dot edu

Yes, it compiles with

./configure --disable-all --with-apxs2=/${WWWROOT}/bin/apxs



[2005-11-29 09:25:56] [EMAIL PROTECTED]

Does this work:

# rm config.cache
# ./configure --disable-all --with-apxs2=/${WWWROOT}/bin/apxs
# make clean ; make

Also you shouldn't need to use these options because they either don't
even exist or configure handles them for you automatically:

--enable-inline-optimization (it's enabled by default)
--enable-libgcc (detected automatically when needed)
--enable-trans-sid (has not existed for years)
--with-tsrm-pthreads (detected automatically)




[2005-11-29 03:17:47] rusty at socrates dot berkeley dot edu

Description:

At the final linking stage I get thousands of lines like the following
(at the end of this message).  My configure wrapper shell script is

configure \
--prefix=${WWWROOT} \
--enable-bcmath \
--enable-inline-optimization \
--enable-libgcc \
--enable-track-vars \
--enable-trans-sid \
--with-apxs2=/${WWWROOT}/bin/apxs \
--with-config-file-path=${WWWROOT}/conf \
--with-gmp \
--with-ldap=${LOCAL} \
--with-mysql=${MYSQLROOT} \
--with-openssl=${LOCAL} \
--with-tsrm-pthreads

With php 5.0.5 it compiles without a squeek.

Here's the start of the error output; thousands of lines like this
(about 94,000) for many/all of the libraries:

Text relocation remains referenced
against symbol  offset  in file
unknown   0x570  
/local_a/servers/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
unknown   0x574  
/local_a/servers/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
unknown   0x578  
/local_a/servers/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
unknown   0x57c  
/local_a/servers/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
unknown   0x580  
/local_a/servers/mysql/lib/mysql/libmysqlclient.a(libmysql.o)







-- 
Edit this bug report at http://bugs.php.net/?id=35465edit=1


#35465 [Asn]: link error Text relocation remains

2005-11-29 Thread rusty at socrates dot berkeley dot edu
 ID:   35465
 User updated by:  rusty at socrates dot berkeley dot edu
 Reported By:  rusty at socrates dot berkeley dot edu
 Status:   Assigned
 Bug Type: Compile Failure
 Operating System: solaris 9
 PHP Version:  5.1.1
 Assigned To:  sniper
 New Comment:

Yes, almost all of my add-on libraries are .a files because long ago I
used to have problem with .so ones.  Plus, I like to find out about any
missing symbols at compile time, not run time, which was part of the
problem I used to have.


Previous Comments:


[2005-11-29 22:58:14] [EMAIL PROTECTED]

See also bug #35475



[2005-11-29 17:19:13] rusty at socrates dot berkeley dot edu

Yes, it compiles with

./configure --disable-all --with-apxs2=/${WWWROOT}/bin/apxs



[2005-11-29 09:25:56] [EMAIL PROTECTED]

Does this work:

# rm config.cache
# ./configure --disable-all --with-apxs2=/${WWWROOT}/bin/apxs
# make clean ; make

Also you shouldn't need to use these options because they either don't
even exist or configure handles them for you automatically:

--enable-inline-optimization (it's enabled by default)
--enable-libgcc (detected automatically when needed)
--enable-trans-sid (has not existed for years)
--with-tsrm-pthreads (detected automatically)




[2005-11-29 03:17:47] rusty at socrates dot berkeley dot edu

Description:

At the final linking stage I get thousands of lines like the following
(at the end of this message).  My configure wrapper shell script is

configure \
--prefix=${WWWROOT} \
--enable-bcmath \
--enable-inline-optimization \
--enable-libgcc \
--enable-track-vars \
--enable-trans-sid \
--with-apxs2=/${WWWROOT}/bin/apxs \
--with-config-file-path=${WWWROOT}/conf \
--with-gmp \
--with-ldap=${LOCAL} \
--with-mysql=${MYSQLROOT} \
--with-openssl=${LOCAL} \
--with-tsrm-pthreads

With php 5.0.5 it compiles without a squeek.

Here's the start of the error output; thousands of lines like this
(about 94,000) for many/all of the libraries:

Text relocation remains referenced
against symbol  offset  in file
unknown   0x570  
/local_a/servers/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
unknown   0x574  
/local_a/servers/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
unknown   0x578  
/local_a/servers/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
unknown   0x57c  
/local_a/servers/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
unknown   0x580  
/local_a/servers/mysql/lib/mysql/libmysqlclient.a(libmysql.o)







-- 
Edit this bug report at http://bugs.php.net/?id=35465edit=1


#35465 [NEW]: doesn't link at the end

2005-11-28 Thread rusty at socrates dot berkeley dot edu
From: rusty at socrates dot berkeley dot edu
Operating system: solaris 9
PHP version:  5.1.1
PHP Bug Type: Compile Failure
Bug description:  doesn't link at the end

Description:

At the final linking stage I get thousands of lines like the following (at
the end of this message).  My configure wrapper shell script is

configure \
--prefix=${WWWROOT} \
--enable-bcmath \
--enable-inline-optimization \
--enable-libgcc \
--enable-track-vars \
--enable-trans-sid \
--with-apxs2=/${WWWROOT}/bin/apxs \
--with-config-file-path=${WWWROOT}/conf \
--with-gmp \
--with-ldap=${LOCAL} \
--with-mysql=${MYSQLROOT} \
--with-openssl=${LOCAL} \
--with-tsrm-pthreads

With php 5.0.5 it compiles without a squeek.

Here's the start of the error output; thousands of lines like this (about
94,000) for many/all of the libraries:

Text relocation remains referenced
against symbol  offset  in file
unknown   0x570  
/local_a/servers/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
unknown   0x574  
/local_a/servers/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
unknown   0x578  
/local_a/servers/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
unknown   0x57c  
/local_a/servers/mysql/lib/mysql/libmysqlclient.a(libmysql.o)
unknown   0x580  
/local_a/servers/mysql/lib/mysql/libmysqlclient.a(libmysql.o)



-- 
Edit bug report at http://bugs.php.net/?id=35465edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=35465r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=35465r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=35465r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=35465r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=35465r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=35465r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=35465r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=35465r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35465r=support
Expected behavior:   http://bugs.php.net/fix.php?id=35465r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=35465r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=35465r=submittedtwice
register_globals:http://bugs.php.net/fix.php?id=35465r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=35465r=php3
Daylight Savings:http://bugs.php.net/fix.php?id=35465r=dst
IIS Stability:   http://bugs.php.net/fix.php?id=35465r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35465r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=35465r=float
No Zend Extensions:  http://bugs.php.net/fix.php?id=35465r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=35465r=mysqlcfg