Subject: bin/10391: Sparc ld.elf_so fails to resolve certain symbols with a bogus error message
To: None <gnats-bugs@gnats.netbsd.org>
From: None <minoura@flab.fujitsu.co.jp>
List: netbsd-bugs
Date: 06/19/2000 01:39:12
>Number:         10391
>Category:       bin
>Synopsis:       Sparc ld.elf_so fails to resolve certain symbols with a bogus error message
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 19 01:40:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Minoura Makoto
>Release:        Sun Jun 11 11:30:40 UTC 2000
>Organization:
	hauN.ORG
>Environment:
	Fujitsu S-4/20H (HyperSPARC)
System: NetBSD soccer 1.4ZB NetBSD 1.4ZB (SOCCER) #20: Wed Jun 14 11:26:53 JST 2000 root@soccer:/usr/obj/sys/arch/sparc/compile/SOCCER sparc


>Description:
	While compiling IBM's ICU (International Components for Unicode)
	library, ld.so fails to resolve a symbol.  The name is unknown,
	because it is not displayed.

/usr/obj/pkgsrc/local/icu/work/icu/source/common/libicu-uc.so: Undefined symbol "" (reloc type = 12, symnum = 4)

	At least ld.so has a bug in displaying the error message.
	The reason why the error occurs is unknown; problem in
	g++, or in gas, ld, ld.elf_so,..., possibly in ICU itself.

>How-To-Repeat:
	Compile ICU-1.5 with the pkgsrc skelton found at
	http://dale.hauN.ORG/pub/NetBSD-pkgsrc/icu.tar.gz
	Note that it works fine on i386/ELF.

% make
[snip]
cc -DHAVE_CONFIG_H -I/usr/pkg/include -I. -I../../common -I../../common -I./../toolutil -O2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib-Wl,-rpath,../../common-Wl,-rpath,../../tools/toolutil -o makeconv makeconv.o ucnvstat.o -L../../common -licu-uc -lm   -L../../tools/toolutil -licu-toolutil
../../../data/ibm-1038.ucm -> /usr/obj/pkgsrc/local/icu/work/icu/source/common/libicu-uc.so: Undefined symbol "" (reloc type = 12, symnum = 4)
gmake[2]: *** [/usr/obj/pkgsrc/local/icu/work/icu/source/../data//ibm-1038.cnv] Error 1
gmake[2]: Leaving directory `/usr/obj/pkgsrc/local/icu/work/icu/source/tools/makeconv'
gmake[1]: *** [all-recursive] Error 2
gmake[1]: Leaving directory `/usr/obj/pkgsrc/local/icu/work/icu/source/tools'
gmake: *** [all-recursive] Error 2
*** Error code 2

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.

>Fix:
	Unknown.


>Release-Note:
>Audit-Trail:
>Unformatted: