[Serusers] Re: compilation error ... building static modules
Cesc
cesc.santa at gmail.com
Mon May 15 12:32:36 CEST 2006
Ok, the compilation is fixed ... now i got problems with linking :) It
is due to symbols being repeated ... i will try to find a nice way to
fix it ...
Has ever anyone tried to use the modules linked statically? i guess not ...
See the attached patch file for "my fix" for the compilation ... i
hope it is ok ...
Cesc
On 5/15/06, Cesc <cesc.santa at gmail.com> wrote:
> Hi,
>
> Just out of curiosity, i tried to build ser with static modules ... I
> use ser.0.9.6 (from January or so). This is the error i got ... any
> quick answer? Everything else seems to work fine ...
>
>
> Making static module
> make[1]: Entering directory `/home/sam/svn/ser/modules/tm'
> gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall
> -minline-all-stringops -malign-double -falign-loops -mcpu=athlon
> -DSTATIC_AUTH -DSTATIC_AUTH_DB -DSTATIC_DBTEXT -DSTATIC_DOMAIN
> -DSTATIC_GROUP -DSTATIC_MAXFWD -DSTATIC_REGISTRAR -DSTATIC_RR
> -DSTATIC_SECTIC -DSTATIC_SL -DSTATIC_TEXTOPS -DSTATIC_TIC
> -DSTATIC_TM -DSTATIC_URI -DSTATIC_URI_DB -DSTATIC_USRLOC
> -DSTATIC_XLOG -DNAME='"ser"' -DVERSION='"0.9.6-tls"' -DARCH='"i386"'
> -DOS='"linux"' -DCOMPILER='"gcc 3.3.5"' -D__CPU_i386 -D__OS_linux
> -DCFG_DIR='"/usr/local/etc/ser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP
> -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE
> -DUSE_TLS -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024
> -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD
> -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H
> -I/usr/local/ssl/include -I/usr/local/ssl/include -c tm.c -o tm.o
> tm.c: In function `fixup_str2regexp':
> tm.c:398: error: `exports' undeclared (first use in this function)
> tm.c:398: error: (Each undeclared identifier is reported only once
> tm.c:398: error: for each function it appears in.)
> make[1]: *** [tm.o] Error 1
>
>
> Cesc
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ser.patch.tm.c
Type: text/x-csrc
Size: 578 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20060515/8cab6454/attachment.c>
More information about the sr-users
mailing list