From koshy@india.hp.com  Thu Nov 14 00:33:09 1996
Received: from relay.hp.com (relay.hp.com [15.255.152.2])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id AAA23717
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 14 Nov 1996 00:33:05 -0800 (PST)
Received: from fakir.india.hp.com by relay.hp.com with ESMTP
	(1.37.109.16/15.5+ECS 3.3) id AA082260370; Thu, 14 Nov 1996 00:32:54 -0800
Received: from localhost by fakir.india.hp.com with SMTP
	(1.37.109.16/15.5+ECS 3.3) id AA011182215; Thu, 14 Nov 1996 14:03:35 +0500
Message-Id: <199611140903.AA011182215@fakir.india.hp.com>
Date: Thu, 14 Nov 1996 14:03:35 +0500
From: A JOSEPH KOSHY <koshy@india.hp.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: Tclsh fails on `info sharedlibextension' : Fix Enclosed.

>Number:         2006
>Category:       bin
>Synopsis:       Tclsh fails on `info sharedlibextension'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 14 00:40:08 PST 1996
>Closed-Date:    Tue Dec 17 19:14:04 PST 1996
>Last-Modified:  Tue Dec 17 19:14:49 PST 1996
>Originator:     Joseph Koshy
>Release:        FreeBSD 2.2-CURRENT i386
>Organization:
HP International Software Operation, Bangalore, India.
Email: <koshy@india.hp.com>, Telnet: 847-1020, Phone: +91-80-2251554 ext 211
These are my personal opinions.
>Environment:

FreeBSD 2.2-CURRENT as of Oct 25th 1996.

>Description:

The `info sharedlibextension' command in TCLSH fails.  This breaks various
Tcl/Tk utilities that require this feature.

>How-To-Repeat:

    $ tclsh
    % info sharedlibextension
    %

This should be

    $ tclsh
    % info sharedlibextension
    .so
    %

>Fix:
	
The problem arises because a compile time define is missed out by
`tbl_bmake'.  Diff -u follows:

krill# pwd
/usr/src/tools/tools/tcl_bmake
krill# diff -u mkMakefile.sh-- mkMakefile.sh
- --- mkMakefile.sh--     Thu Nov  7 17:03:38 1996
+++ mkMakefile.sh       Thu Nov 14 14:18:23 1996
@@ -25,7 +25,7 @@
 foo:
        @echo ${OBJS}
 bar:
- -       @echo ${AC_FLAGS}
+       @echo ${AC_FLAGS} -DTCL_SHLIB_EXT=\\\"${SHLIB_SUFFIX}\\\"
 ' >> m.x

 # Put a RCS Id  in the file, but not the one from this file :-)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: peter 
State-Changed-When: Tue Dec 17 19:14:04 PST 1996 
State-Changed-Why:  
Suggested fix applied (rev 1.18 of tools/tools/mkMakefile.sh)  Thanks! 
>Unformatted:
