ID: 14120
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: *Configuration Issues
Operating System: OpenUNIX8
PHP Version: 4.0CVS-2001-11-19
New Comment:
Ok, after a bunch of back and forth, and me learning about autoconf/automake and
libtool, this is a libtool bug. I submitted the following to the libtool folks
against libtool 1.4.2.
Can the PHP team use this before a new libtool release?
*** libtool.m4.old Mon Sep 10 22:16:01 2001
--- libtool.m4 Sun Dec 30 18:17:52 2001
***************
*** 1805,1810 ****
--- 1805,1821 ----
export_dynamic_flag_spec='-Bexport'
;;
+ sysv5uw7* | unixware7* | sysv5Open*)
+ no_undefined_flag='${wl}-z ${wl}text'
+ if test "$GCC" = yes; then
+ archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs
+$compiler_flags'
+ else
+ archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs
+$compiler_flags'
+ fi
+ runpath_var='LD_RUN_PATH'
+ hardcode_shlibpath_var=no
+ ;;
+
sysv5*)
no_undefined_flag=' -z text'
# $CC -shared without GNU ld will not create a library from C++
***************
*** 1848,1864 ****
runpath_var=LD_RUN_PATH
;;
- sysv5uw7* | unixware7*)
- no_undefined_flag='${wl}-z ${wl}text'
- if test "$GCC" = yes; then
- archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs
$compiler_flags'
- else
- archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs
$compiler_flags'
- fi
- runpath_var='LD_RUN_PATH'
- hardcode_shlibpath_var=no
- ;;
-
*)
ld_shlibs=no
;;
--- 1859,1864 ----
***************
*** 3421,3428 ****
lt_cv_file_magic_test_file=/lib/libc.so
;;
! sysv5uw[[78]]* | sysv4*uw2*)
lt_cv_deplibs_check_method=pass_all
;;
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
--- 3421,3429 ----
lt_cv_file_magic_test_file=/lib/libc.so
;;
! sysv5uw[[78]]* | sysv4*uw2* | sysv5Open*)
lt_cv_deplibs_check_method=pass_all
+ lt_cv_archive_cmds_need_lc=no
;;
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Previous Comments:
------------------------------------------------------------------------
[2001-12-30 17:54:12] [EMAIL PROTECTED]
OK, after looking around some more, I found what I needed. aclocal.m4 generates the
libtool stuff into configure. I made the following patches, which supercede the
original patch I just submitted.
I believe these should be committed.....
$ cat aclocal.m4.patch
*** aclocal.m4.old Sun Dec 30 08:00:26 2001
--- aclocal.m4 Sun Dec 30 16:48:53 2001
***************
*** 3579,3584 ****
--- 3579,3595 ----
export_dynamic_flag_spec='-Bexport'
;;
+ sysv5uw7* | unixware7* | sysv5Open*)
+ no_undefined_flag='${wl}-z ${wl}text'
+ if test "$GCC" = yes; then
+ archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs
+$compiler_flags'
+ else
+ archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs
+$compiler_flags'
+ fi
+ runpath_var='LD_RUN_PATH'
+ hardcode_shlibpath_var=no
+ ;;
+
sysv5*)
no_undefined_flag=' -z text'
# $CC -shared without GNU ld will not create a library from C++
***************
*** 3622,3637 ****
runpath_var=LD_RUN_PATH
;;
- sysv5uw7* | unixware7*)
- no_undefined_flag='${wl}-z ${wl}text'
- if test "$GCC" = yes; then
- archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs
$compiler_flags'
- else
- archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs
$compiler_flags'
- fi
- runpath_var='LD_RUN_PATH'
- hardcode_shlibpath_var=no
- ;;
*)
ld_shlibs=no
--- 3633,3638 ----
***************
*** 5161,5168 ****
lt_cv_file_magic_test_file=/lib/libc.so
;;
! sysv5uw[[78]]* | sysv4*uw2*)
lt_cv_deplibs_check_method=pass_all
;;
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
--- 5162,5170 ----
lt_cv_file_magic_test_file=/lib/libc.so
;;
! sysv5uw[[78]]* | sysv4*uw2* | sysv5Open*)
lt_cv_deplibs_check_method=pass_all
+ lt_cv_archive_cmds_need_lc=no
;;
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
$
$ cat configure.patch2
*** configure.old Sun Dec 30 08:01:52 2001
--- configure Sun Dec 30 16:40:04 2001
***************
*** 62866,62873 ****
lt_cv_file_magic_test_file=/lib/libc.so
;;
! sysv5uw[78]* | sysv4*uw2*)
lt_cv_deplibs_check_method=pass_all
;;
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
--- 62866,62874 ----
lt_cv_file_magic_test_file=/lib/libc.so
;;
! sysv5uw[78]* | sysv4*uw2*|sysv5Open* )
lt_cv_deplibs_check_method=pass_all
+ lt_cv_archive_cmds_need_lc=no
;;
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
***************
*** 64744,64749 ****
--- 64745,64761 ----
export_dynamic_flag_spec='-Bexport'
;;
+ sysv5uw7* | unixware7* | sysv5Open*)
+ no_undefined_flag='${wl}-z ${wl}text'
+ if test "$GCC" = yes; then
+ archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs
+$compiler_flags'
+ else
+ archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs
+$compiler_flags'
+ fi
+ runpath_var='LD_RUN_PATH'
+ hardcode_shlibpath_var=no
+ ;;
+
sysv5*)
no_undefined_flag=' -z text'
# $CC -shared without GNU ld will not create a library from C++
***************
*** 64785,64801 ****
hardcode_shlibpath_var=no
hardcode_runpath_var=yes
runpath_var=LD_RUN_PATH
- ;;
-
- sysv5uw7* | unixware7*)
- no_undefined_flag='${wl}-z ${wl}text'
- if test "$GCC" = yes; then
- archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs
$compiler_flags'
- else
- archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs
$compiler_flags'
- fi
- runpath_var='LD_RUN_PATH'
- hardcode_shlibpath_var=no
;;
*)
--- 64797,64802 ----
$
watch for linewrap.
I moved the sysv5uw* section so it would actually be used, and it looked more correct
to me.
------------------------------------------------------------------------
[2001-12-30 17:03:32] [EMAIL PROTECTED]
Ok, taking the bull by the horns so to speak, I found that configure actually
has most of the magic I needed. There were a couple of tweaks I made, but am not sure
where they get into configure from configure.in.
here is a patch against configure from the 12-30-2001 06:00 snap:
$ cat configure.patch
*** configure.old Sun Dec 30 08:01:52 2001
--- configure Sun Dec 30 15:58:56 2001
***************
*** 62866,62873 ****
lt_cv_file_magic_test_file=/lib/libc.so
;;
! sysv5uw[78]* | sysv4*uw2*)
lt_cv_deplibs_check_method=pass_all
;;
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
--- 62866,62874 ----
lt_cv_file_magic_test_file=/lib/libc.so
;;
! sysv5uw[78]* | sysv4*uw2*|sysv5Open* )
lt_cv_deplibs_check_method=pass_all
+ lt_cv_archive_cmds_need_lc=no
;;
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
***************
*** 64748,64754 ****
no_undefined_flag=' -z text'
# $CC -shared without GNU ld will not create a library from C++
# object files and a static libstdc++, better avoid it by now
! archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs
$linker_flags'
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e
"s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs
$deplibs $linker_flags~$rm $lib.exp'
hardcode_libdir_flag_spec=
--- 64749,64755 ----
no_undefined_flag=' -z text'
# $CC -shared without GNU ld will not create a library from C++
# object files and a static libstdc++, better avoid it by now
! archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs
$linker_flags'
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e
"s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs
$deplibs $linker_flags~$rm $lib.exp'
hardcode_libdir_flag_spec=
$
watch for line wrap. I can also email this patch to someone if they want it.
This fixes my problems, and I don't believe it can screw anyone else up.
------------------------------------------------------------------------
[2001-12-30 15:52:06] [EMAIL PROTECTED]
I don't mean to have an attitude, but I submitted this more than a month ago
and have offered access to my system. What more do I need to do?
I Don't believe I can run the 4.1.x release as the config.guess/config.sub weren't
copied over.
What can I do to help?
------------------------------------------------------------------------
[2001-12-30 11:31:16] [EMAIL PROTECTED]
I updated to the 2001-12-30 06:00 SNAP, and still had to make the same
changes to libtool. WHAT IS THE PHP TEAMS THOUGHTS? Does ANYONE GIVE A DAMN?
------------------------------------------------------------------------
[2001-12-30 11:18:08] [EMAIL PROTECTED]
Anyone care at *ALL* about this?
------------------------------------------------------------------------
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/?id=14120
Edit this bug report at http://bugs.php.net/?id=14120&edit=1
--
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]