Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e9cba4d1512a99dc00e20dd22d1b459e0d7a636f
Ticket: 3522894fffffffffffffffffffffffffffffffff
Solaris build fails: TclBN_mp_init_set_int not found
User & Date: markatc on 2012-05-02 02:29:33
Changes

  1. assignee changed to: "stwo"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    This occurs on Solaris 10 + 11 x86 and SPARC, using the Sun Studio 12.x compilers.
    
    [...]
    cc -c -O  -I/usr/local/include -L/usr/local/lib  -KPIC -I"." -I/var/tmp/tcl8.5.11/unix/../unix -I/var/tmp/tcl8.5.11/unix/../generic -I/var/tmp/tcl8.5.11/unix/../libtommath -DPACKAGE_NAME=\"tcl\" -DPACKAGE_TARNAME=\"tcl\" -DPACKAGE_VERSION=\"8.5\" -DPACKAGE_STRING=\"tcl\ 8.5\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DTCL_CFGVAL_ENCODING=\"iso8859-1\" -D_REENTRANT=1 -D_POSIX_PTHREAD_SEMANTICS=1 -DTCL_SHLIB_EXT=\".so\" -DTCL_CFG_OPTIMIZED=1 -DTCL_CFG_DEBUG=1 -DTCL_TOMMATH=1 -DMP_PREC=4 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_DIRENT64=1 -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRTOL=1 -DHAVE_WAITPID=1 -DHAVE_GETADDRINFO=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_MKTIME=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_STRUCT_STAT_ST_BLOCKS=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_BLKCNT_T=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DNO_UNION_WAIT=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_FILIO_H=1 -DTCL_UNLOAD_DLLS=1        /var/tmp/tcl8.5.11/unix/../unix/tclAppInit.c
    cc -O  -I/usr/local/include -L/usr/local/lib  -I/usr/local/include -L/usr/local/lib  tclAppInit.o -L/var/tmp/tcl8.5.11/unix -ltcl8.5 -ldl  -lsocket -lnsl -lsunmath -lm  \
            -Wl,-R,/tcl/lib -o tclsh
    
    host:/var/tmp/tcl8.5.11/unix root# gmake install
    Making directory /tcl/lib
    Making directory /tcl/bin
    Installing libtcl8.5.so to /tcl/lib/
    Installing tclsh as /tcl/bin/tclsh8.5
    Installing tclConfig.sh to /tcl/lib/
    Installing libtclstub8.5.a to /tcl/lib/
    Installing message catalogs
    ld.so.1: tclsh: fatal: relocation error: file /var/tmp/tcl8.5.11/unix/libtcl8.5.so: symbol TclBN_mp_init_set_int: referenced symbol not found
    gmake: *** [install-msgs] Killed
    
    # nm libtcl8.5.so
    [...]
    [2646]  |       1124908|         172|FUNC |GLOB |0    |9      |TclBN_mp_grow
    [2287]  |       1125104|         104|FUNC |GLOB |0    |9      |TclBN_mp_init
    [2428]  |       1125208|          52|FUNC |GLOB |0    |9      |TclBN_mp_init_copy
    [1683]  |       1125260|         204|FUNC |GLOB |0    |9      |TclBN_mp_init_multi
    [2324]  |       1125464|          48|FUNC |GLOB |0    |9      |TclBN_mp_init_set
    [1516]  |             0|           0|FUNC |GLOB |0    |UNDEF  |TclBN_mp_init_set_int
    [1807]  |       1125580|         156|FUNC |GLOB |0    |9      |TclBN_mp_init_size
    [2640]  |       1125736|        2720|FUNC |GLOB |0    |9      |TclBN_mp_karatsuba_mul
    [2083]  |       1128456|        1688|FUNC |GLOB |0    |9      |TclBN_mp_karatsuba_sqr
    [2735]  |       1130168|         892|FUNC |GLOB |0    |9      |TclBN_mp_lshd
    [2170]  |       1131060|         144|FUNC |GLOB |0    |9      |TclBN_mp_mod
    [...]
    
    host:/var/tmp/tcl8.5.11 root# find . -print | xargs grep TclBN_mp_init_set_int
    ./generic/tclTomMathDecls.h:#define mp_init_set_int TclBN_mp_init_set_int
    ./generic/tclTomMathDecls.h:#ifndef TclBN_mp_init_set_int_TCL_DECLARED
    ./generic/tclTomMathDecls.h:#define TclBN_mp_init_set_int_TCL_DECLARED
    ./generic/tclTomMathDecls.h:EXTERN int          TclBN_mp_init_set_int(mp_int*a, unsigned long i);
    ./generic/tclTomMathDecls.h:#ifndef TclBN_mp_init_set_int
    ./generic/tclTomMathDecls.h:#define TclBN_mp_init_set_int \
    ./generic/tclStubInit.c:    TclBN_mp_init_set_int, /* 61 */
    ./generic/tclTomMath.decls:    int TclBN_mp_init_set_int(mp_int* a, unsigned long i)
    
    
  4. foundin changed to: "obsolete: 8.5.11"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "markatc"
  10. subsystem changed to: "53. Configuration and Build Tools"
  11. title changed to:
    Solaris build fails: TclBN_mp_init_set_int not found
    
  12. type changed to: "Bug"