Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b0985c7ca9aeab3c328b22f9356a1317ef4ffa89
Ticket: 450725ffffffffffffffffffffffffffffffffff
Fix Build for FreeBSD
User & Date: mdejong on 2001-09-08 11:43:29
Changes

  1. icomment:
    Logged In: YES 
    user_id=90858
    
    Ok, I see what you mean WTR the . in lib names.
    Trouble is, I run into compile problems related
    to the shared library name when I add your change.
    As far as I can tell, things compile ok on this
    FreeBSD 4.3 machine I tested on before adding
    your patch. Here is the compiler error that
    shows up after adding your patch.
    
    % make
    ...
    rm -f libtcl84g.so.1
    ld -Bshareable -x -o libtcl84g.so.1 regcomp.o regexec.o
    regfree.o regerror.o tclAlloc.o  tclAsync.o tclBasic.o
    tclBinary.o  tclCkalloc.o tclClock.o tclCmdAH.o tclCmdIL.o
    tclCmdMZ.o  tclCompCmds.o tclCompExpr.o tclCompile.o
    tclDate.o tclEncoding.o  tclEnv.o tclEvent.o tclExecute.o
    tclFCmd.o tclFileName.o tclGet.o  tclHash.o tclHistory.o
    tclIndexObj.o tclInterp.o tclIO.o tclIOCmd.o  tclIOGT.o
    tclIOSock.o tclIOUtil.o tclLink.o tclListObj.o  tclLiteral.o
    tclLoad.o tclMain.o tclNamesp.o tclNotify.o  tclObj.o
    tclPanic.o tclParse.o tclParseExpr.o tclPipe.o  tclPkg.o
    tclPosixStr.o tclPreserve.o tclProc.o tclRegexp.o 
    tclResolve.o tclResult.o tclScan.o tclStringObj.o
    tclThread.o  tclStubInit.o tclStubLib.o tclTimer.o tclUtf.o
    tclUtil.o tclVar.o tclMtherr.o tclUnixChan.o tclUnixEvent.o
    tclUnixFCmd.o  tclUnixFile.o tclUnixPipe.o tclUnixSock.o 
    tclUnixTime.o tclUnixInit.o tclUnixThrd.o tclUnixNotfy.o 
    tclLoadDl.o
    : libtcl84g.so.1
    gcc -pipe  tclAppInit.o
    -L/home/users/m/md/mdejong/project/build/freebsd -ltcl84g
    -lm -lc  -o tclsh
    /usr/libexec/elf/ld: cannot find -ltcl84g
    *** Error code 1
    
    
    Now, if I change the name of the output lib to
    "libtcl84g.so" it links just fine. Thing is,
    that does not create a "libtcl84g.so.1" symlink
    like the system installed one.
    
    $ pwd
    /home/users/m/md/mdejong/project/install/freebsd/lib
    bash-2.05$ ls -la  
    total 1852
    drwxr-xr-x  3 mdejong  users     4096 Sep  7 21:38 .
    drwxr-xr-x  6 mdejong  users     4096 Sep  7 21:38 ..
    -r-xr-xr-x  1 mdejong  users  1792525 Sep  7 21:38
    libtcl84g.so
    -rw-r--r--  1 mdejong  users    72108 Sep  7 21:38
    libtclstub84g.a
    drwxr-xr-x  8 mdejong  users     4096 Sep  7 21:38 tcl8.4
    -rw-r--r--  1 mdejong  users     7024 Sep  7 21:38
    tclConfig.sh
    
    
    (The system install)
    
    $ ls -la /usr/local/lib/libtcl83*
    -r-xr-xr-x  1 root  wheel  784262 Apr 18 14:09
    /usr/local/lib/libtcl83.a
    lrwxrwxrwx  1 root  wheel      13 Jun  5 07:34
    /usr/local/lib/libtcl83.so -> libtcl83.so.1
    -r-xr-xr-x  1 root  wheel  555384 Apr 18 14:09
    /usr/local/lib/libtcl83.so.1
    
    
    Also, what does removing the -export-dynamic flag
    from the LDFLAGS do? Someone must have added that
    for some reason.
    
    
    
  2. login: "mdejong"
  3. mimetype: "text/plain"
  4. username: "mdejong"