[Devel] Re: [Users] undefined symbol: mem_lock
Ovidiu Sas
sip.nslu at gmail.com
Tue Sep 26 19:05:02 CEST 2006
Hi Bogdan,
Here is the requested information:
Here's the compile log:
Compiling main.c
ccache armeb-linux-gcc -march=armv5te -mtune=xscale -mthumb-interwork
-mno-thumb -isystem/home/admin/slug-3.10/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/include
-Os -fomit-frame-pointer -frename-registers -fno-unroll-loops
-fno-inline-functions -fweb -funit-at-a-time -DNAME='"openser"'
-DVERSION='"1.1.0-notls"' -DARCH='"armeb"' -DOS='"linux"'
-DCOMPILER='"ccache 3.4.4"' -D__CPU_armeb -D__OS_linux -D__SMP_no
-DCFG_DIR='"/etc/openser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP
-DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES
-DF_MALLOC -DSTATISTICS -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN
-DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL
-DHAVE_ALLOCA_H -DHAVE_TIMEGM -DUSE_SYSV_SEM -DHAVE_SIGIO_RT
-DHAVE_SELECT -c main.c -o main.o
Compiling mem/shm_mem.c
ccache armeb-linux-gcc -march=armv5te -mtune=xscale -mthumb-interwork
-mno-thumb -isystem/home/admin/slug-3.10/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/include
-Os -fomit-frame-pointer -frename-registers -fno-unroll-loops
-fno-inline-functions -fweb -funit-at-a-time -DNAME='"openser"'
-DVERSION='"1.1.0-notls"' -DARCH='"armeb"' -DOS='"linux"'
-DCOMPILER='"ccache 3.4.4"' -D__CPU_armeb -D__OS_linux -D__SMP_no
-DCFG_DIR='"/etc/openser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP
-DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES
-DF_MALLOC -DSTATISTICS -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN
-DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL
-DHAVE_ALLOCA_H -DHAVE_TIMEGM -DUSE_SYSV_SEM -DHAVE_SIGIO_RT
-DHAVE_SELECT -c mem/shm_mem.c -o mem/shm_mem.o
Linking openser
ccache armeb-linux-gcc -march=armv5te -mtune=xscale -mthumb-interwork
-mno-thumb -Xlinker -x
-L/home/admin/slug-3.10/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/lib
-Wl,-rpath-link,/home/admin/slug-3.10/releases/slugos-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/lib
-Wl,-O1 action.o core_stats.o crc.o daemonize.o data_lump.o
data_lump_rpl.o dprint.o dset.o error.o fifo_server.o flags.o
forward.o io_wait.o ip_addr.o items.o items_extra.o main.o md5.o
md5utils.o modparam.o msg_translator.o pass_fd.o proxy.o qvalue.o re.o
receive.o resolve.o route.o route_struct.o script_cb.o serialize.o
socket_info.o sr_module.o statistics.o tcp_main.o tcp_read.o timer.o
tsend.o udp_server.o unixsock_server.o usr_avp.o mem/f_malloc.o
mem/mem.o mem/memtest.o mem/q_malloc.o mem/shm_mem.o mem/vq_malloc.o
parser/hf.o parser/msg_parser.o parser/parse_allow.o
parser/parse_content.o parser/parse_cseq.o parser/parse_disposition.o
parser/parse_diversion.o parser/parse_event.o parser/parse_expires.o
parser/parse_fline.o parser/parse_from.o parser/parse_hname2.o
parser/parse_hostport.o parser/parse_methods.o parser/parse_nameaddr.o
parser/parse_param.o parser/parse_refer_to.o parser/parse_rpid.o
parser/parse_rr.o parser/parse_sipifmatch.o parser/parse_sst.o
parser/parse_supported.o parser/parse_to.o parser/parse_uri.o
parser/parse_via.o parser/parser_f.o parser/digest/digest.o
parser/digest/digest_parser.o parser/digest/param_parser.o
parser/contact/contact.o parser/contact/parse_contact.o db/db.o
db/db_fifo.o db/db_id.o db/db_pool.o lex.yy.o cfg.tab.o -ldl
-lresolv -o openser
Then I created a tgz archive (by using make bin) and manually
installed on the SLUG.
on the SLUG:
========
root at LKG7BE78E:/# objdump -af /usr/local/sbin/openser
/usr/local/sbin/openser: file format elf32-bigarm
/usr/local/sbin/openser
architecture: arm, flags 0x00000112:
EXEC_P, HAS_SYMS, D_PAGED
start address 0x0000a5dc
root at LKG7BE78E:/# objdump -af /tmp/shm_mem.o
/tmp/shm_mem.o: file format elf32-bigarm
/tmp/shm_mem.o
architecture: arm, flags 0x00000011:
HAS_RELOC, HAS_SYMS
start address 0x00000000
root at LKG7BE78E:/# objdump -af /tmp/main.o
/tmp/main.o: file format elf32-bigarm
/tmp/main.o
architecture: arm, flags 0x00000011:
HAS_RELOC, HAS_SYMS
start address 0x00000000
root at LKG7BE78E:/# objdump -af /usr/local/lib/openser/modules/sl.so
/usr/local/lib/openser/modules/sl.so: file format elf32-bigarm
/usr/local/lib/openser/modules/sl.so
architecture: arm, flags 0x00000150:
HAS_SYMS, DYNAMIC, D_PAGED
start address 0x00001378
root at LKG7BE78E:~# objdump -af /usr/local/lib/openser/modules/rr.so
/usr/local/lib/openser/modules/rr.so: file format elf32-bigarm
/usr/local/lib/openser/modules/rr.so
architecture: arm, flags 0x00000150:
HAS_SYMS, DYNAMIC, D_PAGED
start address 0x00001320
root at LKG7BE78E:/# nm -g /usr/local/sbin/openser | grep mem_lock
000c736c B mem_lock
root at LKG7BE78E:/# nm -g /usr/local/sbin/openser | grep log_facility
0008a6f0 D log_facility
root at LKG7BE78E:/# nm -g /tmp/shm_mem.o | grep mem_lock
00000000 B mem_lock
root at LKG7BE78E:/# nm -g /tmp/main.o | grep log_facility
00000040 D log_facility
root at LKG7BE78E:/# nm -g /usr/local/lib/openser/modules/sl.so | grep mem_lock
U mem_lock
root at LKG7BE78E:/# nm -g /usr/local/lib/openser/modules/rr.so | grep log_facility
U log_facility
root at LKG7BE78E:/# /usr/local/sbin/openser -f
/usr/local/etc/openser/openser.cfg -c
0(24806) ERROR: load_module: could not open module
</usr/local/lib/openser/modules/sl.so>:
/usr/local/lib/openser/modules/sl.so: undefined symbol: mem_lock
0(24806) parse error (41,13-14): failed to load module
0(24806) ERROR: load_module: could not open module
</usr/local/lib/openser/modules/tm.so>:
/usr/local/lib/openser/modules/tm.so: undefined symbol: mem_lock
0(24806) parse error (42,13-14): failed to load module
0(24806) ERROR: load_module: could not open module
</usr/local/lib/openser/modules/rr.so>:
/usr/local/lib/openser/modules/rr.so: undefined symbol: log_facility
0(24806) parse error (43,13-14): failed to load module
0(24806) ERROR: load_module: could not open module
</usr/local/lib/openser/modules/maxfwd.so>:
/usr/local/lib/openser/modules/maxfwd.so: undefined symbol:
log_facility
0(24806) parse error (44,13-14): failed to load module
0(24806) ERROR: load_module: could not open module
</usr/local/lib/openser/modules/usrloc.so>:
/usr/local/lib/openser/modules/usrloc.so: undefined symbol: mem_lock
0(24806) parse error (45,13-14): failed to load module
0(24806) ERROR: load_module: could not open module
</usr/local/lib/openser/modules/registrar.so>:
/usr/local/lib/openser/modules/registrar.so: undefined symbol:
log_facility
0(24806) parse error (46,13-14): failed to load module
0(24806) ERROR: load_module: could not open module
</usr/local/lib/openser/modules/textops.so>:
/usr/local/lib/openser/modules/textops.so: undefined symbol:
log_facility 0(24806) parse error (47,13-14): failed to load module
0(24806) set_mod_param_regex: No module matching usrloc found
| 0(24806) parse error (58,21-22): Can't set module parameter
0(24806) set_mod_param_regex: No module matching rr found
| 0(24806) parse error (76,19-20): Can't set module parameter
0(24806) parse error (86,34-35): unknown command, missing loadmodule?
0(24806) parse error (87,22-23): unknown command, missing loadmodule?
0(24806) parse error (92,23-24): unknown command, missing loadmodule?
0(24806) parse error (101,16-17): unknown command, missing loadmodule?
0(24806) parse error (105,18-19): unknown command, missing loadmodule?
0(24806) parse error (107,19-20): unknown command, missing loadmodule?
0(24806) parse error (113,19-20): unknown command, missing loadmodule?
0(24806) parse error (138,11-12): unknown command, missing loadmodule?
0(24806) parse error (142,12-13): unknown command, missing loadmodule?
0(24806) parse error (144,20-21): unknown command, missing loadmodule?
0(24806) parse error (149,17-18): unknown command, missing loadmodule?
0(24806) parse error (150,24-25): unknown command, missing loadmodule?
0(24806) parse error (153,19-20): unknown command, missing loadmodule?
0(24806) parse error (163,15-16): unknown command, missing loadmodule?
0(24806) parse error (164,18-19): unknown command, missing loadmodule?
ERROR: bad config file (24 errors)
-ovi
On 9/26/06, Bogdan-Andrei Iancu <bogdan at voice-system.ro> wrote:
> Hi Ovidiu,
>
> could you check if the "mem_lock" variable is present in the
> mem/shm_mem.o object file?
>
> regards,
> bogdan
More information about the Devel
mailing list