php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7508 ltconfig doesn't handle our platform correctly
Submitted: 2000-10-28 06:11 UTC Modified: 2000-11-03 21:44 UTC
From: ler at lerctr dot org Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0.3 OS: UnixWare 7.1.1
Private report: No CVE-ID: None
 [2000-10-28 06:11 UTC] ler at lerctr dot org
ltconfig needs 2 tweaks to handle SCO UnixWare 7.1.1 (probably 2.x +).

Patch:
$ cat lt.patch
Index: ltconfig
===================================================================
RCS file: /cvsroot/php/ltconfig,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 ltconfig
*** ltconfig    2000/10/12 10:05:40     1.1.1.1
--- ltconfig    2000/10/19 18:19:53
***************
*** 1500,1506 ****
      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 $d
eplibs $linkopts'
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | se
d -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $li
bobjs $deplibs $linkopts~$rm $lib.exp'
      hardcode_libdir_flag_spec=
--- 1500,1506 ----
      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 $d
eplibs $linkopts'
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | se
d -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $li
bobjs $deplibs $linkopts~$rm $lib.exp'
      hardcode_libdir_flag_spec=
***************
*** 2101,2107 ****
    soname_spec='${libname}${release}.so$major'
    shlibpath_var=LD_LIBRARY_PATH
    case "$host_vendor" in
!     sequent)
        file_magic_cmd='/bin/file'
        deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared obje
ct|dynamic lib )'
        ;;
--- 2101,2107 ----
    soname_spec='${libname}${release}.so$major'
    shlibpath_var=LD_LIBRARY_PATH
    case "$host_vendor" in
!     sco|sequent)
        file_magic_cmd='/bin/file'
        deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared obje
ct|dynamic lib )'
        ;;
$

if you'd like me to mail this, please let me know.

Thanks

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-03 21:44 UTC] rasmus@php.net
Patch applied
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Jul 12 20:00:01 2026 UTC