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

Re: ORBit broken on amd64?



On Wed, Jul 14, 2004 at 11:52:20PM +0000, Christian Weisgerber wrote:
> Chris Kuethe <ckuethe@ualberta.ca> wrote:
> 
> > ORBit builds and works well for me (as of a half hour ago) but faad is
> > broken and it depends on the newly upgraded libtool...
> > 
> > ttyp3# faad
> > faad: can't load library '../libfaad/.libs/libfaad.so.0.0'
> > ttyp3# ldd /usr/local/bin/faad 
> > /usr/local/bin/faad:
> > /usr/local/bin/faad: can't load library '../libfaad/.libs/libfaad.so.0.0'
> > /usr/local/bin/faad: exit status 4
> 
> Same issue for mail/xfmail (once you get beyond the simple autoconf
> error).  Something is wrong with libtool's configuration.

I think you're right.

The patch below fixes xfmail and faad, and probably anything else that 
does uses libtool/c++ to link with a .la.

-- 
<jakemsr@jakemsr.com>

Index: devel/libtool/patches/patch-acinclude_m4
===================================================================
RCS file: /home/cvs/OpenBSD/ports/devel/libtool/patches/patch-acinclude_m4,v
retrieving revision 1.1
diff -u -r1.1 patch-acinclude_m4
--- devel/libtool/patches/patch-acinclude_m4	2 Jul 2004 01:59:12 -0000	1.1
+++ devel/libtool/patches/patch-acinclude_m4	15 Jul 2004 04:15:20 -0000
@@ -1,6 +1,6 @@
 $OpenBSD: patch-acinclude_m4,v 1.1 2004/07/02 01:59:12 brad Exp $
---- acinclude.m4.orig	Sun Apr 11 01:34:51 2004
-+++ acinclude.m4	Wed Jun 30 18:27:38 2004
+--- acinclude.m4.orig	Sat Apr 10 22:34:51 2004
++++ acinclude.m4	Wed Jul 14 21:13:35 2004
 @@ -1506,7 +1506,7 @@ nto-qnx*)
  openbsd*)
    version_type=sunos
@@ -25,7 +25,7 @@
    fi
    ;;
  
-@@ -3204,6 +3202,20 @@ case $host_os in
+@@ -3204,6 +3202,21 @@ case $host_os in
      # Workaround some broken pre-1.5 toolchains
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
      ;;
@@ -36,6 +36,7 @@
 +  openbsd*)
 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
++      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 +      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 +	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
@@ -46,7 +47,7 @@
    osf3*)
      case $cc_basename in
        KCC)
-@@ -5572,6 +5584,7 @@ $echo "local: *; };" >> $output_objdir/$
+@@ -5572,6 +5585,7 @@ $echo "local: *; };" >> $output_objdir/$
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Index: devel/libtool/patches/patch-libtool_m4
===================================================================
RCS file: /home/cvs/OpenBSD/ports/devel/libtool/patches/patch-libtool_m4,v
retrieving revision 1.1
diff -u -r1.1 patch-libtool_m4
--- devel/libtool/patches/patch-libtool_m4	2 Jul 2004 01:59:12 -0000	1.1
+++ devel/libtool/patches/patch-libtool_m4	15 Jul 2004 04:15:20 -0000
@@ -1,6 +1,6 @@
 $OpenBSD: patch-libtool_m4,v 1.1 2004/07/02 01:59:12 brad Exp $
---- libtool.m4.orig	Thu Apr  1 22:46:14 2004
-+++ libtool.m4	Wed Jun 30 18:27:20 2004
+--- libtool.m4.orig	Thu Apr  1 19:46:14 2004
++++ libtool.m4	Wed Jul 14 20:43:51 2004
 @@ -1506,7 +1506,7 @@ nto-qnx*)
  openbsd*)
    version_type=sunos
@@ -25,7 +25,7 @@
    fi
    ;;
  
-@@ -3204,6 +3202,20 @@ case $host_os in
+@@ -3204,6 +3202,21 @@ case $host_os in
      # Workaround some broken pre-1.5 toolchains
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
      ;;
@@ -36,6 +36,7 @@
 +  openbsd*)
 +      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 +      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
++      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
 +      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 +	_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 +	_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
@@ -46,7 +47,7 @@
    osf3*)
      case $cc_basename in
        KCC)
-@@ -5572,6 +5584,7 @@ $echo "local: *; };" >> $output_objdir/$
+@@ -5572,6 +5585,7 @@ $echo "local: *; };" >> $output_objdir/$
        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  	_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'