The bugs 14452, 14602, 14616, 14824 all seem to be the same.
Maybe it's a libtool bug - maybe not. What I do know, however, is
that if the Zend intermediate library built only add libs that
Zend need, the bug doesn't occur. The fix below introduces define
ZEND_EXTRA_LIBS that are the libs used by Zend (usually very few).

I don't have karma to apply the fix. And if I had, I'd ask people
anyway.

-- Adam Dickmeiss

Index: Makefile.in
===================================================================
RCS file: /repository/php4/Makefile.in,v
retrieving revision 1.105
diff -u -r1.105 Makefile.in
--- Makefile.in 24 Jan 2002 12:55:08 -0000      1.105
+++ Makefile.in 1 Feb 2002 22:13:19 -0000
@@ -14,7 +14,7 @@
                $(TSRM_LIB)
 
 LTLIBRARY_LDFLAGS = -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS)
-LTLIBRARY_LIBADD = $(LTLIBRARY_DEPENDENCIES) $(EXTRA_LIBS)
+LTLIBRARY_LIBADD = $(LTLIBRARY_DEPENDENCIES) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS)
 
 PROGRAM_NAME         = php
 PROGRAM_SOURCES      = stub.c
Index: configure.in
===================================================================
RCS file: /repository/php4/configure.in,v
retrieving revision 1.296
diff -u -r1.296 configure.in
--- configure.in        30 Jan 2002 23:46:44 -0000      1.296
+++ configure.in        1 Feb 2002 22:13:19 -0000
@@ -825,6 +825,8 @@
 
 PHP_REGEX
 
+EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS"
+unset LIBS LDFLAGS
 
 dnl Configuring Zend and TSRM.
 dnl -------------------------------------------------------------------------
@@ -849,7 +851,7 @@
   INCLUDES="$INCLUDES -I\$(top_srcdir)/TSRM"
 fi
 
-EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS"
+ZEND_EXTRA_LIBS="$LIBS"
 unset LIBS LDFLAGS
 
 PHP_CONFIGURE_PART(Configuring TSRM)
@@ -1001,6 +1003,7 @@
 PHP_SUBST_OLD(EXTENSION_DIR)
 PHP_SUBST(EXTRA_LDFLAGS)
 PHP_SUBST_OLD(EXTRA_LIBS)
+PHP_SUBST_OLD(ZEND_EXTRA_LIBS)
 PHP_SUBST(INCLUDES)
 PHP_SUBST_OLD(INCLUDE_PATH)
 PHP_SUBST_OLD(INSTALL_IT)
Index: Zend/Makefile.am
===================================================================
RCS file: /repository/Zend/Makefile.am,v
retrieving revision 1.43
diff -u -r1.43 Makefile.am
--- Zend/Makefile.am    2001/09/19 08:26:11     1.43
+++ Zend/Makefile.am    2002/02/01 22:16:37
@@ -15,7 +15,8 @@
        zend_list.c zend_indent.c zend_builtin_functions.c zend_sprintf.c \
        zend_ini.c zend_qsort.c
 
-libZend_la_LDFLAGS = @EXTRA_LIBS@
+libZend_la_LDFLAGS = 
+libZend_la_LIBADD = @ZEND_EXTRA_LIBS@
 
 # automake isn't too clever about "non-standard" use of lex and yacc
 
Index: Zend/configure.in
===================================================================
RCS file: /repository/Zend/configure.in,v
retrieving revision 1.31
diff -u -r1.31 configure.in
--- Zend/configure.in   2000/12/02 13:26:41     1.31
+++ Zend/configure.in   2002/02/01 22:16:38
@@ -35,9 +35,9 @@
 LIBZEND_ENABLE_DEBUG
 LIBZEND_OTHER_CHECKS
 
-EXTRA_LIBS="$LIBS"
+ZEND_EXTRA_LIBS="$LIBS"
 LIBS=""
-AC_SUBST(EXTRA_LIBS)
+AC_SUBST(ZEND_EXTRA_LIBS)
 AC_OUTPUT(Makefile)
 
 # Local Variables:

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to