Skip to content
Tcl Source Code View Ticket
Login

View Ticket

shlib configure doesn't work on FreeBSD 3.1

Closed / Fixed218730ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:04:40
OriginalBugID: 1915 Bug
Version: 8.1b3
SubmitDate: '1999-04-21'
LastModified: '1999-06-01'
Severity: MED
Status: Released
Submitter: pat
ChangedBy: stanton
OS: Other
OSVersion: FreeBSD 3.1
Machine: NA
FixedDate: '1999-04-21'
FixedInVersion: 8.1
ClosedDate: '2000-10-25'


Name:
Mark Diekhans

Extensions:
th

Comments:
In the FreeBSD 3.1 release, the system was switched to use the ELF
    object format and the latest GNU linker.  The shared library name
    of libtcl81.so.10 no longer works, a name of libtcl8.1.so works
    and is what is used on most other systems.

ReproducibleScript:
configure --enable-shared results in a failed link of Tcl.
    A patch is enclosed to fix this.  It should probably be applied
    to the 8.0.* release tree as well.

Patch:
*** unix/configure.in.ORGTue Apr 20 23:13:48 1999
--- unix/configure.inTue Apr 20 23:24:41 1999
***************
*** 907,913 ****
  LD_FLAGS="-Wl,-Bexport"
  LD_SEARCH_FLAGS=""
  ;;
!     NetBSD-*|FreeBSD-*|OpenBSD-*)
  # Not available on all versions:  check for include file.
  AC_CHECK_HEADER(dlfcn.h, [
      SHLIB_CFLAGS="-fpic"
--- 907,913 ----
  LD_FLAGS="-Wl,-Bexport"
  LD_SEARCH_FLAGS=""
  ;;
!     NetBSD-*|FreeBSD-[12].*|OpenBSD-*)
  # Not available on all versions:  check for include file.
  AC_CHECK_HEADER(dlfcn.h, [
      SHLIB_CFLAGS="-fpic"
***************
*** 935,940 ****
--- 935,951 ----
  
  TCL_UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a'
  TCL_LIB_VERSIONS_OK=nodots
+ ;;
+     FreeBSD-*)
+ # FreeBSD 3.* and greater have ELF.
+ SHLIB_CFLAGS="-fpic"
+ SHLIB_LD="ld -Bshareable -x"
+ SHLIB_LD_LIBS=""
+ SHLIB_SUFFIX=".so"
+ DL_OBJS="tclLoadDl.o"
+ DL_LIBS=""
+ LD_FLAGS=""
+ LD_SEARCH_FLAGS=""
  ;;
      NEXTSTEP-*)
  SHLIB_CFLAGS=""

PatchFiles:
unix/configure.in



04/21/1999 18:08 - redman - applied the patch to 8.1.0.

06/01/1999 14:08 - stanton - updated patches database
welch Closed ticket [218730ffff]. [History diff]2000-10-26 08:28:12
dgp Ticket [218730ffff]: 3 changes [History diff]2001-04-17 06:01:37
Log in (anonymous is fine) to add a comment.