bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash 4.3.42 does not link on Solaris 2.4


From: Klaus Ziegler - owner of sunfreeware.de
Subject: Re: bash 4.3.42 does not link on Solaris 2.4
Date: Mon, 30 Nov 2015 17:57:30 +0100
User-agent: Mozilla/5.0 (X11; SunOS i86pc; rv:31.0) Gecko/20100101 Thunderbird/31.0

On 26.11.15 18:03, Chet Ramey wrote:
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:

address@hidden % 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
address@hidden % which nm
/usr/ccs/bin/nm
address@hidden % /usr/ccs/bin/nm /usr/lib/libc.so.1 | grep rand
[494]   |         0|       0|FILE |LOCL |0    |ABS    |drand48.c
[497]   |    526516|      12|OBJT |LOCL |0    |16     |_drand48_a
[498]   |    526528|       4|OBJT |LOCL |0    |16     |_drand48_c
[499]   |    193960|     244|FUNC |LOCL |0    |8      |_drand48_u
[500]   |    526504|      12|OBJT |LOCL |0    |16     |_drand48_x
[501]   |    194204|     172|FUNC |LOCL |0    |8      |_erand48_u
[504]   |    195628|     160|FUNC |LOCL |0    |8      |_jrand48_u
[505]   |    194376|      64|FUNC |LOCL |0    |8      |_lrand48_u
[506]   |    194440|      80|FUNC |LOCL |0    |8      |_mrand48_u
[507]   |    195468|     160|FUNC |LOCL |0    |8      |_nrand48_u
[1069]  |         0|       0|FILE |LOCL |0    |ABS    |rand.c
[1070]  |    528432|       4|OBJT |LOCL |0    |16     |randx
[1593]  |         0|       0|FILE |LOCL |0    |ABS    |rand_r.c
[1811]  |    194948|     144|FUNC |WEAK |0    |8      |srand48
[1863]  |    195908|      56|FUNC |WEAK |0    |8      |lrand48
[1940]  |    195788|      60|FUNC |GLOB |0    |8      |_drand48
[1956]  |    196020|      56|FUNC |GLOB |0    |8      |_mrand48
[2031]  |    273832|      84|FUNC |GLOB |0    |8      |rand
[2049]  |    405124|      60|FUNC |WEAK |0    |8      |rand_r
[2057]  |    195848|      60|FUNC |WEAK |0    |8      |erand48
[2065]  |    195964|      56|FUNC |WEAK |0    |8      |nrand48
[2437]  |    196076|      56|FUNC |GLOB |0    |8      |_jrand48
[2614]  |    405124|      60|FUNC |GLOB |0    |8      |_rand_r
[2628]  |    194948|     144|FUNC |GLOB |0    |8      |_srand48
[2661]  |    195908|      56|FUNC |GLOB |0    |8      |_lrand48
[2716]  |    273796|      36|FUNC |GLOB |0    |8      |srand
[2764]  |    195788|      60|FUNC |WEAK |0    |8      |drand48
[2780]  |    196020|      56|FUNC |WEAK |0    |8      |mrand48
[2863]  |    195848|      60|FUNC |GLOB |0    |8      |_erand48
[2883]  |    195964|      56|FUNC |GLOB |0    |8      |_nrand48
[3309]  |    196076|      56|FUNC |WEAK |0    |8      |jrand48
address@hidden % /usr/ccs/bin/nm /usr/ucblib/libucb.so.1  | grep random
[56]    |         0|       0|FILE |LOCL |0    |ABS    |random.c
[59]    |    102956|       4|OBJT |LOCL |0    |17     |__randomjunk
[60]    |     14736|     108|FUNC |LOCL |0    |7      |_randomjunk
[61]    |    101260|     196|OBJT |LOCL |0    |15     |_randominit
[177]   |     14844|     224|FUNC |GLOB |0    |7      |srandom
[241]   |     15828|     236|FUNC |GLOB |0    |7      |random

Do need any header files or somthing else?
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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]