Menu

#7 TrfCrypt Install Problem on Solaris

open
TrfCrypt (1)
5
2003-04-01
2003-04-01
No

Environment:
Solaris 2.8
ActiveTcl 8.4.2 installed

Ran configure script with the following options:

--prefix=/usr/local/ActiveTcl
--enable-gcc

This failed because of the following:

configure: error: No tclsh found in PATH

I put in a couple of echo statements to print out the variable
of $ac_cv_path_tclsh and the value
as /usr/local/ActiveTcl/bin/tclsh8.3

I still couldn't figure out how it got 8.3. Anyway, I
hardcoded the
value to /usr/local/ActiveTcl/bin/tclsh8.4 and then it worked.
(Note, this happened on Linux also)

Then I ran make and there was a problem with the -KPIC
option. I needed to change this to -fPIC for Solaris

Next, I tried to run make install and had two problems
1. warning: no packages are currently loaded, nothing
can possibly match 'Trf' (This happens on both Linux and
Solaris) When I don't have the eprintf problem, I fixed this
problem by doing the following on tclsh8.4

% load /usr/local/ActiveTcl/lib/Trf2.1/libTrf2.1.so
% pkg_mkIndex -load Trf -
verbose /usr/local/ActiveTcl/lib/Trfcrypt ../libTrfcrypt2.0.so
*.tcl

2. problem with __eprintf

# make install
/bin/sh ./mkinstalldirs /usr/local/ActiveTcl/lib
/bin/sh ./mkinstalldirs /usr/local/ActiveTcl/bin
/bin/sh ./mkinstalldirs /usr/local/ActiveTcl/lib/Trfcrypt
./install-sh -c -m 644
libTrfcrypt2.0.so /usr/local/ActiveTcl/lib/libTrfcrypt2.0.so
: /usr/local/ActiveTcl/lib/libTrfcrypt2.0.so
if test "x/usr/ccs/bin/ld -G -z text -o install-lib-binaries -
L../trf2.1p2 -lTrfstub2.1 -L/usr/local/ActiveTcl/lib -ltclstub8.4
" = "x/usr/ccs/bin/ld -G -z text -o install-lib-binaries -
L../trf2.1p2 -lTrfstub2.1 -L/usr/local/ActiveTcl/lib -
ltclstub8.4"; t
hen \ /usr/local/ActiveTcl/bin/tclsh8.4 mkIndex.tcl
libTrfcrypt2.0.so; \ fi
Making pkgIndex.tcl in /usr/local/ActiveTcl/lib/Trfcrypt
eval pkg_mkIndex -verbose Trfcrypt ../libTrfcrypt2.0.so *.tcl
currently loaded packages: ''
trying to load all packages matching Trf
warning: no packages are currently loaded, nothing
can possibly match 'Trf'
warning: error while loading ../libTrfcrypt2.0.so: couldn't
load file "./../libTrfcrypt2.0.so":
ld.so.1: /usr/local/ActiveTcl/bin
/tclsh8.4: fatal: relocation error: file ./../libTrfcrypt2.0.so:
symbol __eprintf: referenced symbol not found
/bin/sh ./mkinstalldirs /usr/local/ActiveTcl/include
Information about the usage of this extension can be found
in the HTML documentation at /html/index.html
or, more specifically /html/trfcrypt_cmds.html
Just use your favorite browser to read them.
#

Discussion

  • Al Silverstein

    Al Silverstein - 2003-04-01

    Logged In: YES
    user_id=601769

    One more comment, ld is looking for the Trfstub2.1 library
    in ../trf2.1p2 but with ActiveTcl 8.4.2 Trf is in a different place. I
    imagine I didn't have a problem with this because I also have
    Trfstub2.1 in that directory from an older install.

    /usr/ccs/bin/ld -G -z text -o libTrfcrypt2.0.so loadman.o
    init.o bc_opt.o blockcipher.o bc_util.o
    c_opt.o c_util.o cipher.o idea.o
    blowfish.o des.o rc4.o rc2.o
    rot.o safer.o -L../trf2.1p2 -lTrfstub2.1 -
    L/usr/local/ActiveTcl/lib -ltclstub8.4
    : libTrfcrypt2.0.so
    #

     
  • Al Silverstein

    Al Silverstein - 2003-04-01

    Logged In: YES
    user_id=601769

    Scratch the last commend regarding ld. I just used the following
    configure options:

    --with-trf
    --with-trf-include-dir
    --with-trf-lib-dir

    Still have the same issues with "make install"