Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Feb 2001 16:20:27 -0600 (CST)
From:      ishmael27@home.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/24853: Change devel/libslang to not directly link libc
Message-ID:  <200102042220.f14MKRD88151@babylon.merseine.nu>

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

>Number:         24853
>Category:       ports
>Synopsis:       Change devel/libslang to not directly link libc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 04 14:20:02 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jeremy Norris
>Release:        FreeBSD 4.2-STABLE i386
>Organization:
>Environment:


FreeBSD babylon.merseine.nu 4.2-STABLE FreeBSD 4.2-STABLE #0: Fri Dec 15 07:53:17 CST 2000     ishmael@babylon.merseine.nu:/usr/src/sys/compile/BABYLON  i386
	

>Description:

Port devel/libslang declares -lc on the link line.
This is wrong; if any program would link against libslang and libc_r (using
-pthread) the compiler spits out lots of errors.
	

>How-To-Repeat:

Write a short program that uses pthreads and libslang.
Link it with -lslang -pthread.
Notice the errors.
	

>Fix:

--- files/patch-aa.orig	Thu Jan 18 12:13:39 2001
+++ files/patch-aa	Sun Feb  4 16:11:09 2001
@@ -1,5 +1,5 @@
---- configure.orig	Sun Aug 20 11:20:18 2000
-+++ configure	Sat Jan  6 09:57:40 2001
+--- configure.orig	Sat Aug 19 21:20:18 2000
++++ configure	Sun Feb  4 16:11:00 2001
 @@ -1753,14 +1753,13 @@
  fi
  
@@ -26,6 +26,15 @@
  		cat >> confdefs.h <<\EOF
  #define HAVE_DLFCN_H 1
  EOF
+@@ -1893,7 +1892,7 @@
+     ELF_CFLAGS="\$(CFLAGS) -fPIC"
+     ELF_LINK="\$(CC) -shared"
+     ELF_LINK_CMD="\$(ELF_LINK)"
+-    ELF_DEP_LIBS="\$(DL_LIB) -lm -lc"
++    ELF_DEP_LIBS="\$(DL_LIB) -lm"
+ esac
+ 
+ 
 @@ -1906,6 +1905,19 @@
        IEEE_CFLAGS="-ieee_with_no_inexact"
      fi
	


>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?200102042220.f14MKRD88151>