bug-bash
[Top][All Lists]
Advanced

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

bash 4.3.42 does not link on Solaris 2.4


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

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:
nm 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 <---- here we are


Fix:
Solaris 2.4 needs -L/usr/ucblib -lucb to link bash,
besides that the Sun WorkShop Compiler C 5.0 does not like c++ style comments - patch attached.

Greetings
Klaus Ziegler


Attachment: bash-4.3.42_spro.patch
Description: Text document


reply via email to

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