Subject: Undefined symbol ""
To: None <tech-kern@netbsd.org>
From: Hans Petter Selasky <hselasky@c2i.net>
List: tech-kern
Date: 02/11/2006 17:09:42
Hi,

I get the following strange error when I try to run some program of mine on a 
sparc64, on NetBSD. Does anyone know how to resolve it?


sparc64: {72} capitest
/usr/lib/libcapi20.so.2: Undefined symbol "" (symnum = 9)


Source code can be downloaded from:
http://www.turbocat.net/~hselasky/isdn4bsd
http://www.turbocat.net/~hselasky/isdn4bsd/sources/src/lib/libcapi20/

objdump -t ...


/usr/lib/libcapi20.so.2:     file format elf64-sparc

SYMBOL TABLE:
0000000000000120 l    d  .hash  0000000000000000 
0000000000000358 l    d  .dynsym        0000000000000000 
0000000000000a30 l    d  .dynstr        0000000000000000 
0000000000000d20 l    d  .rela.dyn      0000000000000000 
0000000000003498 l    d  .rela.plt      0000000000000000 
00000000000037a0 l    d  .init  0000000000000000 
00000000000037e0 l    d  .text  0000000000000000 
0000000000006740 l    d  .fini  0000000000000000 
0000000000006770 l    d  .rodata        0000000000000000 
0000000000008cb0 l    d  .note.netbsd.ident     0000000000000000 
0000000000108cc8 l    d  .data  0000000000000000 
000000000010a138 l    d  .eh_frame      0000000000000000 
000000000010a140 l    d  .dynamic       0000000000000000 
000000000010a2b0 l    d  .ctors 0000000000000000 
000000000010a2c0 l    d  .dtors 0000000000000000 
000000000010a2d0 l    d  .jcr   0000000000000000 
000000000010a300 l    d  .plt   0000000000000000 
000000000010a700 l    d  .got   0000000000000000 
000000000010a8a8 l    d  .bss   0000000000000000 
0000000000000000 l    d  .comment       0000000000000000 
0000000000000000 l    d  *ABS*  0000000000000000 
0000000000000000 l    d  *ABS*  0000000000000000 
0000000000000000 l    d  *ABS*  0000000000000000 
0000000000108cc8 l     O .data  0000000000000000 .hidden __dso_handle
0000000000000000         *UND*  0000000000000000 bswap16
0000000000000000         *UND*  0000000000000000 ioctl
0000000000000000         *UND*  0000000000000000 writev
0000000000000000         *UND*  0000000000000000 printf
0000000000000000         *UND*  0000000000000000 bswap64
0000000000000000         *UND*  0000000000000000 snprintf
0000000000004e2c g     F .text  000000000000009c capi20_get_manufacturer
000000000010a140 g     O *ABS*  0000000000000000 _DYNAMIC
0000000000000000         *UND*  0000000000000000 __errno
0000000000004ec8 g     F .text  00000000000000a4 capi20_get_version
000000000000489c g     F .text  0000000000000378 capi20_get_message
00000000000065a0 g     F .text  00000000000000e4 capi_get_command_string
0000000000004c14 g     F .text  0000000000000218 capi20_wait_for_message
0000000000004f6c g     F .text  00000000000000b4 capi20_get_serial_number
0000000000000000  w      *UND*  0000000000000000 __cxa_finalize
0000000000000000         *UND*  0000000000000000 malloc
000000000000511c g     F .text  0000000000000048 capi_firmware_download
00000000000045c8 g     F .text  00000000000002d4 capi20_put_message
000000000010a300 g     O *ABS*  0000000000000000 _PROCEDURE_LINKAGE_TABLE_
00000000000037a0 g     F .init  0000000000000010 _init
0000000000005a30 g     F .text  0000000000000048 capi_get_message_decoded
0000000000005b04 g     F .text  000000000000003c capi_put_message_decoded
0000000000005e80 g     F .text  0000000000000720 
capi_message_decoded_to_string
0000000000000000         *UND*  0000000000000000 write
0000000000000000  w      *UND*  0000000000000000 __deregister_frame_info
0000000000000000         *UND*  0000000000000000 bswap32
0000000000005a78 g     F .text  000000000000008c 
capi_translate_from_message_decoded
0000000000000000         *UND*  0000000000000000 read
0000000000005968 g     F .text  00000000000000c8 
capi_translate_to_message_decoded
0000000000000000         *UND*  0000000000000000 bcopy
0000000000000000         *UND*  0000000000000000 gettimeofday
000000000010a8a8 g       *ABS*  0000000000000000 __bss_start
0000000000000000         *UND*  0000000000000000 memset
0000000000000000         *UND*  0000000000000000 err
0000000000000000         *UND*  0000000000000000 poll
0000000000005b40 g     F .text  00000000000000ec capi_get_error_string
0000000000006740 g     F .fini  0000000000000010 _fini
0000000000005020 g     F .text  00000000000000b0 capi20_get_profile
0000000000004360 g     F .text  0000000000000240 capi20_register
00000000000050f0 g     F .text  000000000000002c capi20_fileno
000000000010a8a8 g       *ABS*  0000000000000000 _edata
000000000010a700 g     O *ABS*  0000000000000000 _GLOBAL_OFFSET_TABLE_
000000000010ace8 g       *ABS*  0000000000000000 _end
00000000000050d0 g     F .text  0000000000000020 capi20_is_installed
0000000000000000         *UND*  0000000000000000 open
00000000000045a0 g     F .text  0000000000000028 capi20_release
0000000000000000  w      *UND*  0000000000000000 _Jv_RegisterClasses
0000000000000000  w      *UND*  0000000000000000 __register_frame_info
0000000000000000         *UND*  0000000000000000 close
0000000000000000         *UND*  0000000000000000 free
REG_G2           g     R *UND*  0000000000000000 #scratch
REG_G3           g     R *UND*  0000000000000000 #scratch

--HPS