On 11/13/15 2:45 PM, Klaus Ziegler - owner of sunfreeware.de wrote:
Configuration Information [Automatically generated, do not change]:
Machine: sparc
OS: solaris2.4
Compiler: cc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='sparc'
-DCONF_OSTYPE='solaris2.4' -DCONF_MACHTYPE='sparc-sun-solaris2.4'
-DCONF_VENDOR='sun' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash'
-DSHELL -DHAVE_CONFIG_H -DSOLARIS
-I. -I. -I./include -I./lib -I./lib/intl
-I/export/home/klausz/bash-4.3.30/lib/intl -fast -xO5 -xtarget=generic
-xstrconst -xdepend -Xa
uname output: SunOS campus2 5.4 Generic_101945-64 sun4m sparc
Machine Type: sparc-sun-solaris2.4
Bash Version: 4.3
Patch Level: 42
Release Status: release
Description:
when linking bash the following linker error is displayed:
cc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob...
Undefined first referenced
symbol in file
random ./lib/sh/libsh.a(tmpfile.o)
ld: fatal: Symbol referencing errors. No output written to bash
Solaris 2.4 needs -L/usr/ucblib -lucb to link bash
Repeat-By:
doing nm on all libraries in /usr/lib and looking for random:
Does it at least have rand() in the C library?
Hi Chet,
yep, I think it has:
klausz@campus2 % ls -al /usr/lib/libc.so.1 /usr/ucblib/libucb.so.1
-rwxr-xr-x 1 bin bin 631328 Mar 16 2001 /usr/lib/libc.so.1
-rwxr-xr-x 1 bin bin 55632 Oct 17 1997
/usr/ucblib/libucb.so.1
BTW. we didn't realy talk about the snprintf problem on the older OS
releases:
SunOS 4.1.1_U1 (sun3/sun3x) and or SunOS 4.1.4 (Sparc - sun4m) in this case.
The autoconf script defines HAVE_SNPRINTF to 0 which fails, I just have
changed config.h
after configure has been run to be undef for HAVE_SNPRINTF:
< #define HAVE_SNPRINTF 0
---
> /* #undef HAVE_SNPRINTF */
what do you think about that?
Much Regards
Klaus