bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A UnixWare related bug


From: Stepan Kasal
Subject: A UnixWare related bug
Date: Tue, 6 Sep 2005 09:34:19 +0200
User-agent: Mutt/1.4.1i

Hello,
  Roger Cornelius has reported the following bug on address@hidden;
I'm forwarding it to bug-libtool list.

I have verified that the same bug is still present in CVS HEAD.

As you surely notice, the patch cannot be applied as is: it would move
the pattern "sysv4*uw2*" before the more specific "sysv4.2uw2*".
But I'm sure the correction is obvious (for you, not for me ;-).

Thank you again Roger, for reporting the problem and analysing it,
        Stepan Kasal

----- Forwarded message from Roger Cornelius <address@hidden> -----
Date: Mon, 5 Sep 2005 15:47:42 -0400
To: address@hidden
Subject: autoconf 2.59 bug

There is a problem in the configure script generated by autoconf v2.59
for at least some packages.  I've seen it in the autoconf v2.59
generated configure script for ImageMagick 6.0.4, and the library
packages, libtiff-3.7.2 and liblcms-1.14.

The problem is with matching sysv5UnixWare7.1.4 in $host_os.  The case
for sysv5* is matched before the case for sysv5UnixWare7*.  This is also
true for sysv5OpenUNIX8* and sysv5uw[78]* values of $host_os. 

For libtiff and liblcms, this misidentification results in the
$lt_cv_deplibs_check_method var being left in the default state of
"unknown" rather than being set to "pass_all", and ultimately prevents
the shared libraries from being built.

Attached is a patch with enough context to exemplify the problem.  This
is from the configure provided with liblcms.
-- 
Roger Cornelius        address@hidden

*** configure.orig      Mon Dec 13 04:00:59 2004
--- configure   Mon Sep  5 14:18:48 2005
***************
*** 4765,4815 ****
  osf3* | osf4* | osf5*)
    lt_cv_deplibs_check_method=pass_all
    ;;
  
  sco3.2v5*)
    lt_cv_deplibs_check_method=pass_all
    ;;
  
  solaris*)
    lt_cv_deplibs_check_method=pass_all
    ;;
  
  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
    case $host_vendor in
    motorola)
      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared 
object|dynamic lib) M[0-9][0-9]* Version [0-9]'
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
      ;;
    ncr)
      lt_cv_deplibs_check_method=pass_all
      ;;
    sequent)
      lt_cv_file_magic_cmd='/bin/file'
      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared 
object|dynamic lib )'
      ;;
    sni)
      lt_cv_file_magic_cmd='/bin/file'
      lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic 
lib"
      lt_cv_file_magic_test_file=/lib/libc.so
      ;;
    siemens)
      lt_cv_deplibs_check_method=pass_all
      ;;
    esac
    ;;
- 
- sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
-   lt_cv_deplibs_check_method=pass_all
-   ;;
  esac
  
  fi
  echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  file_magic_cmd=$lt_cv_file_magic_cmd
  deplibs_check_method=$lt_cv_deplibs_check_method
  test -z "$deplibs_check_method" && deplibs_check_method=unknown
  
  
  # If no C compiler was specified, use CC.
  LTCC=${LTCC-"$CC"}
--- 4765,4815 ----
  osf3* | osf4* | osf5*)
    lt_cv_deplibs_check_method=pass_all
    ;;
  
  sco3.2v5*)
    lt_cv_deplibs_check_method=pass_all
    ;;
  
  solaris*)
    lt_cv_deplibs_check_method=pass_all
    ;;
  
+ sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
+   lt_cv_deplibs_check_method=pass_all
+   ;;
+ 
  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
    case $host_vendor in
    motorola)
      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared 
object|dynamic lib) M[0-9][0-9]* Version [0-9]'
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
      ;;
    ncr)
      lt_cv_deplibs_check_method=pass_all
      ;;
    sequent)
      lt_cv_file_magic_cmd='/bin/file'
      lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared 
object|dynamic lib )'
      ;;
    sni)
      lt_cv_file_magic_cmd='/bin/file'
      lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic 
lib"
      lt_cv_file_magic_test_file=/lib/libc.so
      ;;
    siemens)
      lt_cv_deplibs_check_method=pass_all
      ;;
    esac
    ;;
  esac
  
  fi
  echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  file_magic_cmd=$lt_cv_file_magic_cmd
  deplibs_check_method=$lt_cv_deplibs_check_method
  test -z "$deplibs_check_method" && deplibs_check_method=unknown
  
  
  # If no C compiler was specified, use CC.
  LTCC=${LTCC-"$CC"}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]