On Dec 03, 2004 at 17:10, Li, Jesse Xianxing (Jesse) <jesseli(a)qd.lucent.com> wrote:
Hi,
I encounter the following error when I compile the source code:
unix: ser/ser-0.8.14> uname -a
SunOS sfws20 5.6 Generic_105181-31 sun4u sparc SUNW,Ultra-5_10
unix: ser/ser-0.8.14> /opt/exp/gnu/bin/gcc --version
gcc (GCC) 3.4.2
Can someone help me out?
Thanks a lot in advance,
Jesse
The errors:
========
Extra objs:
gcc -Wl,-O2 -Wl,-E action.o crc.o data_lump.o data_lump_rpl.o dprint.o dset.o error.o
fifo_server.o flags.o forward.o hash_func.o ip_addr.o main.o md5.o md5utils.o modparam.o
msg_translator.o pass_fd.o proxy.o re.o receive.o resolve.o route.o route_struct.o
script_cb.o sr_module.o stats.o tcp_main.o tcp_read.o timer.o udp_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_content.o parser/parse_cseq.o
parser/parse_disposition.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_nameaddr.o parser/parse_param.o parser/parse_rr.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 lex.yy.o cfg.tab.o -lfl -ldl -lresolv
-L/usr/local/lib -lfl -lxnet -lrt -lnsl -o ser
/opt/exp/gnu/bin/ld: cannot find -lrt
collect2: ld returned 1 exit status
You don't have librt installed. It should be in SUNWcslx ( Core Solaris
Libraries (64-bit)).
You might have libposix4 instead (ls /lib/libposix4.so). If you do, just
replace -lrt with -lposix4 in Makefile.defs.
Note however that I haven't tested recent sers with solaris < 5.8.
Andrei