Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Sep 1999 04:08:46 +0900 (JST)
From:      watanabe@komadori.planet.sci.kobe-u.ac.jp
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/13751: [graphics/sane] shared libraries cannot be built
Message-ID:  <199909141908.EAA52929@crayon.planet.sci.kobe-u.ac.jp>

next in thread | raw e-mail | index | archive | help

>Number:         13751
>Category:       ports
>Synopsis:       [graphics/sane] shared libraries cannot be built
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 14 12:20:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Takeshi WATANABE
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
Kobe University, Kobe, Japan
>Environment:

  FreeBSD 3.x (elf)

>Description:

  /usr/local/lib/sane/libsane-*.so.1 are not installed now.  Because...

"config.guess" of sane-1.0.1 is different from that of GNU autoconf.
For example, it outputs "i386-unknown-freebsdelf3.1" as target name,
not "i386-unknown-freebsd3.1".  "ltconfig" must check the name "freebsdelf"
as well as "freebsd".

>How-To-Repeat:

  Always.

>Fix:
	
  Apply following patch.

--- /usr/ports/graphics/sane/patches/patch-02.orig	Sat May 22 19:37:01 1999
+++ /usr/ports/graphics/sane/patches/patch-02	Wed Sep 15 00:03:32 1999
@@ -1,5 +1,5 @@
---- ltconfig	Sat Nov 21 19:53:55 1998
-+++ ltconfig.new	Thu May 13 12:44:40 1999
+--- ltconfig	Sun Nov 22 12:53:55 1998
++++ ltconfig.new	Tue Sep 14 22:20:11 1999
 @@ -604,11 +604,11 @@
    $rm conftestdata
    if ln -s X conftestdata 2>/dev/null; then
@@ -14,6 +14,15 @@
      echo "$ac_t"yes 1>&6
    else
      echo "$ac_t"no 1>&6
+@@ -777,7 +777,7 @@
+     ;;
+ 
+   # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
+-  freebsd3*)
++  freebsd3* | freebsdelf3*)
+     archive_cmds='$CC -shared -o $lib$libobjs'
+     hardcode_libdir_flag_spec='-R$libdir'
+     hardcode_direct=yes
 @@ -1123,12 +1123,24 @@
    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
    ;;
@@ -26,7 +35,7 @@
    shlibpath_var=LD_LIBRARY_PATH
    ;;
 +
-+freebsd3* | freebsd4*)
++freebsd3* | freebsd4* | freebsdelf*)
 +  version_type=freebsd
 +  library_names_spec='${libname}${release}.so.$versuffix $libname.so'
 +  if [ $PORTOBJFORMAT = elf ]; then

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199909141908.EAA52929>