LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-20-2005, 09:33 AM   #1
reygudu
LQ Newbie
 
Registered: Apr 2005
Distribution: Slackware, NetBSD, RedHat
Posts: 4

Rep: Reputation: 0
Compiling SER (Sip Express Server)


Hello World,

I have some problems to compile the source code of ser in my slackware 10.0

i donwloaded the packet "ser-0.9.0-GettingStarted.tar.gz" from onsip.org

My sytem is one Linux Slackware 10.0
I have installed too:

glibc-2.3.4-i486-1.tgz

The output was:
Makefile.rules:81: action.d: No such file or directory
Makefile.rules:81: crc.d: No such file or directory
Makefile.rules:81: daemonize.d: No such file or directory
Makefile.rules:81: data_lump.d: No such file or directory
Makefile.rules:81: data_lump_rpl.d: No such file or directory
Makefile.rules:81: dprint.d: No such file or directory
Makefile.rules:81: dset.d: No such file or directory
Makefile.rules:81: error.d: No such file or directory
Makefile.rules:81: fifo_server.d: No such file or directory
Makefile.rules:81: flags.d: No such file or directory
Makefile.rules:81: forward.d: No such file or directory
Makefile.rules:81: hash_func.d: No such file or directory
Makefile.rules:81: ip_addr.d: No such file or directory
Makefile.rules:81: main.d: No such file or directory
Makefile.rules:81: md5.d: No such file or directory
Makefile.rules:81: md5utils.d: No such file or directory
Makefile.rules:81: modparam.d: No such file or directory
Makefile.rules:81: msg_translator.d: No such file or directory
Makefile.rules:81: pass_fd.d: No such file or directory
Makefile.rules:81: proxy.d: No such file or directory
Makefile.rules:81: qvalue.d: No such file or directory
Makefile.rules:81: re.d: No such file or directory
Makefile.rules:81: receive.d: No such file or directory
Makefile.rules:81: resolve.d: No such file or directory
Makefile.rules:81: route.d: No such file or directory
Makefile.rules:81: route_struct.d: No such file or directory
Makefile.rules:81: script_cb.d: No such file or directory
Makefile.rules:81: socket_info.d: No such file or directory
Makefile.rules:81: sr_module.d: No such file or directory
Makefile.rules:81: stats.d: No such file or directory
Makefile.rules:81: tcp_main.d: No such file or directory
Makefile.rules:81: tcp_read.d: No such file or directory
Makefile.rules:81: timer.d: No such file or directory
Makefile.rules:81: tsend.d: No such file or directory
Makefile.rules:81: udp_server.d: No such file or directory
Makefile.rules:81: unixsock_server.d: No such file or directory
Makefile.rules:81: usr_avp.d: No such file or directory
Makefile.rules:81: mem/f_malloc.d: No such file or directory
Makefile.rules:81: mem/mem.d: No such file or directory
Makefile.rules:81: mem/memtest.d: No such file or directory
Makefile.rules:81: mem/q_malloc.d: No such file or directory
Makefile.rules:81: mem/shm_mem.d: No such file or directory
Makefile.rules:81: mem/vq_malloc.d: No such file or directory
Makefile.rules:81: parser/hf.d: No such file or directory
Makefile.rules:81: parser/msg_parser.d: No such file or directory
Makefile.rules:81: parser/parse_allow.d: No such file or directory
Makefile.rules:81: parser/parse_content.d: No such file or directory
Makefile.rules:81: parser/parse_cseq.d: No such file or directory
Makefile.rules:81: parser/parse_disposition.d: No such file or directory
Makefile.rules:81: parser/parse_diversion.d: No such file or directory
Makefile.rules:81: parser/parse_event.d: No such file or directory
Makefile.rules:81: parser/parse_expires.d: No such file or directory
Makefile.rules:81: parser/parse_fline.d: No such file or directory
Makefile.rules:81: parser/parse_from.d: No such file or directory
Makefile.rules:81: parser/parse_hname2.d: No such file or directory
Makefile.rules:81: parser/parse_hostport.d: No such file or directory
Makefile.rules:81: parser/parse_methods.d: No such file or directory
Makefile.rules:81: parser/parse_nameaddr.d: No such file or directory
Makefile.rules:81: parser/parse_param.d: No such file or directory
Makefile.rules:81: parser/parse_rpid.d: No such file or directory
Makefile.rules:81: parser/parse_rr.d: No such file or directory
Makefile.rules:81: parser/parse_sipifmatch.d: No such file or directory
Makefile.rules:81: parser/parse_to.d: No such file or directory
Makefile.rules:81: parser/parse_uri.d: No such file or directory
Makefile.rules:81: parser/parse_via.d: No such file or directory
Makefile.rules:81: parser/parser_f.d: No such file or directory
Makefile.rules:81: parser/digest/digest.d: No such file or directory
Makefile.rules:81: parser/digest/digest_parser.d: No such file or directory
Makefile.rules:81: parser/digest/param_parser.d: No such file or directory
Makefile.rules:81: parser/contact/contact.d: No such file or directory
Makefile.rules:81: parser/contact/parse_contact.d: No such file or directory
Makefile.rules:81: db/db.d: No such file or directory
Makefile.rules:81: db/db_fifo.d: No such file or directory
Makefile.rules:81: lex.yy.d: No such file or directory
Makefile.rules:81: cfg.tab.d: No such file or directory
bison -d -b cfg cfg.y
cfg.y contains 1 shift/reduce conflict.
flex cfg.lex
gcc -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -malign-double -falign-loops -mcpu=athlon -I/opt/axxany/siprouter/radiusclient/include -DNAME='"ser"' -DVERSION='"0.9.1"' -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc 3.3"' -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 -DDBG_QM_MALLOC -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 -c action.c -o action.o

( all the .o were compiled right)

gcc -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -malign-double -falign-loops -mcpu=athlon -I/opt/axxany/siprouter/radiusclient/include -DNAME='"ser"' -DVERSION='"0.9.1"' -DARCH='"i386"' -DOS='"linux"' -DCOMPILER='"gcc 3.3"' -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 -DDBG_QM_MALLOC -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 -c cfg.tab.c -o cfg.tab.o
gcc -L/opt/axxany/siprouter/radiusclient/lib -Wl,-O2 -Wl,-E action.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 hash_func.o ip_addr.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 socket_info.o sr_module.o stats.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_rpid.o parser/parse_rr.o parser/parse_sipifmatch.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 lex.yy.o cfg.tab.o -lfl -ldl -lresolv -o ser
sr_module.o(.text+0xd8): In function `load_module':
/ser-0.9.0/sr_module.c:211: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libdl.a(dlopen.o)(.text+0x1b): In function `dlopen':
: undefined reference to `__dlopen'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libdl.a(dlclose.o)(.text+0x5): In function `dlclose':
: undefined reference to `__dlclose'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libdl.a(dlsym.o)(.text+0x1b): In function `dlsym':
: undefined reference to `__dlsym'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libdl.a(dlerror.o)(.text+0x5): In function `dlerror':
: undefined reference to `__dlerror'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libresolv.a(res_data.o)(.text+0x23): In function `__p_query':
: undefined reference to `__res_maybe_init'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libresolv.a(res_data.o)(.text+0x6a): In function `__fp_query':
: undefined reference to `__res_maybe_init'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libresolv.a(res_data.o)(.text+0xba): In function `__fp_nquery':
: undefined reference to `__res_maybe_init'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libresolv.a(res_data.o)(.text+0x10d): In function `__res_mkquery':
: undefined reference to `__res_maybe_init'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libresolv.a(res_data.o)(.text+0x19d): In function `__res_query':
: undefined reference to `__res_maybe_init'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libresolv.a(res_data.o)(.text+0x27d): more undefined references to `__res_maybe_init' follow
collect2: ld returned 1 exit status
make: *** [ser] Error 1
gcc -L/opt/axxany/siprouter/radiusclient/lib -Wl,-O2 -Wl,-E action.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 hash_func.o ip_addr.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 socket_info.o sr_module.o stats.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_rpid.o parser/parse_rr.o parser/parse_sipifmatch.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 lex.yy.o cfg.tab.o -lfl -ldl -lresolv -o ser
sr_module.o(.text+0xd8): In function `load_module':
/ser-0.9.0/sr_module.c:211: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libdl.a(dlopen.o)(.text+0x1b): In function `dlopen':
: undefined reference to `__dlopen'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libdl.a(dlclose.o)(.text+0x5): In function `dlclose':
: undefined reference to `__dlclose'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libdl.a(dlsym.o)(.text+0x1b): In function `dlsym':
: undefined reference to `__dlsym'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libdl.a(dlerror.o)(.text+0x5): In function `dlerror':
: undefined reference to `__dlerror'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libresolv.a(res_data.o)(.text+0x23): In function `__p_query':
: undefined reference to `__res_maybe_init'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libresolv.a(res_data.o)(.text+0x6a): In function `__fp_query':
: undefined reference to `__res_maybe_init'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libresolv.a(res_data.o)(.text+0xba): In function `__fp_nquery':
: undefined reference to `__res_maybe_init'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libresolv.a(res_data.o)(.text+0x10d): In function `__res_mkquery':
: undefined reference to `__res_maybe_init'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libresolv.a(res_data.o)(.text+0x19d): In function `__res_query':
: undefined reference to `__res_maybe_init'
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../libresolv.a(res_data.o)(.text+0x27d): more undefined references to `__res_maybe_init' follow
collect2: ld returned 1 exit status
make: *** [ser] Error 1

my ldconfig -v is:
<*** -------- ***>
/usr/local/lib:
libeap-1.0.2.so -> libeap.so
libradius-1.0.2.so -> libradius.so
/usr/X11R6/lib:
/usr/i486-slackware-linux/lib:
libstdc++.so.4 -> libstdc++.so.4.0.0
libstdc++.so.2.9 -> libstdc++.so.2.9.0
libstdc++.so.2.8 -> libstdc++.so.2.8.0
libstdc++-libc6.2-2.so.3 -> libstdc++-3-libc6.2-2-2.10.0.so
libstdc++-libc6.1-1.so.2 -> libstdc++-2-libc6.1-1-2.9.0.so
libstdc++.so.2.7.2 -> libstdc++.so.2.7.2.8
libstdc++-libc6.1-2.so.3 -> libstdc++-3-libc6.1-2-2.10.0.so
/lib:
libacl.so.1 -> libacl.so.1.1.0
libattr.so.1 -> libattr.so.1.1.0
libdm.so.0 -> libdm.so.0.0.4
libhandle.so.1 -> libhandle.so.1.0.3
libproc.so.3.2.1 -> libproc.so.3.2.1
libutil.so.1 -> libutil-2.3.2.so
libthread_db.so.1 -> libthread_db-1.0.so
librt.so.1 -> librt-2.3.2.so
libresolv.so.2 -> libresolv-2.3.2.so
libpthread.so.0 -> libpthread-0.10.so
libpcprofile.so -> libpcprofile.so
libnss_nisplus.so.2 -> libnss_nisplus-2.3.2.so
libnss_nis.so.2 -> libnss_nis-2.3.2.so
libnss_hesiod.so.2 -> libnss_hesiod-2.3.2.so
libnss_files.so.2 -> libnss_files-2.3.2.so
libnss_dns.so.2 -> libnss_dns-2.3.2.so
libnss_compat.so.2 -> libnss_compat-2.3.2.so
libnsl.so.1 -> libnsl-2.3.2.so
libmemusage.so -> libmemusage.so
libm.so.6 -> libm-2.3.2.so
libdl.so.2 -> libdl-2.3.2.so
libcrypt.so.1 -> libcrypt-2.3.2.so
libc.so.6 -> libc-2.3.2.so
libanl.so.1 -> libanl-2.3.2.so
libBrokenLocale.so.1 -> libBrokenLocale-2.3.2.so
ld-linux.so.2 -> ld-2.3.2.so
libSegFault.so -> libSegFault.so
libblkid.so.1 -> libblkid.so.1.0
libcom_err.so.2 -> libcom_err.so.2.1
libe2p.so.2 -> libe2p.so.2.3
libext2fs.so.2 -> libext2fs.so.2.4
libss.so.2 -> libss.so.2.0
libuuid.so.1 -> libuuid.so.1.2
libdb.so.3 -> libdb2.so.3
libgpm.so.1 -> libgpm.so.1.18.0
libncursesw.so.5 -> libncursesw.so.5.4
libdb.so.2 -> libdb1.so.2.1.3
libncurses.so.5 -> libncurses.so.5.4
libbz2.so.1 -> libbz2.so.1.0.2
libdb-4.2.so -> libdb-4.2.so
libdb-3.3.so -> libdb-3.3.so
libdb-3.1.so -> libdb-3.1.so
libtermcap.so.2 -> libtermcap.so.2.0.8
/usr/lib:
libgthread-1.2.so.0 -> libgthread-1.2.so.0.0.10
libgmodule-1.2.so.0 -> libgmodule-1.2.so.0.0.10
libglib-1.2.so.0 -> libglib-1.2.so.0.0.10
libtk8.4.so -> libtk8.4.so
libtixsam8.1.8.4.so -> libtixsam8.1.8.4.so
libtix8.1.8.4.so -> libtix8.1.8.4.so
libtkx8.3.so -> libtkx8.3.so
libtclx8.3.so -> libtclx8.3.so
libtcl8.4.so -> libtcl8.4.so
libstunnel.so -> libstunnel.so
libradiusclient.so.0 -> libradiusclient.so.0.0.1
libmetamail.so.0 -> libmetamail.so.0.0.0
libdns.so.11 -> libdns.so.11.0.2
libisccfg.so.0 -> libisccfg.so.0.0.7
libisc.so.7 -> libisc.so.7.0.1
libisccc.so.0 -> libisccc.so.0.1.0
liblwres.so.1 -> liblwres.so.1.1.1
libmm.so.13 -> libmm.so.13.0.20
libltdl.so.3 -> libltdl.so.3.1.0
libqthreads.so.12 -> libqthreads.so.12.3.0
libguile.so.12 -> libguile.so.12.3.0
libguile-srfi-srfi-4-v-1.so.1 -> libguile-srfi-srfi-4-v-1.so.1.0.0
libguilereadline-v-12.so.12 -> libguilereadline-v-12.so.12.3.0
libguile-srfi-srfi-13-14-v-1.so.1 -> libguile-srfi-srfi-13-14-v-1.so.1.0.0
libguile-ltdl.so.1 -> libguile-ltdl.so.1.0.0
libgettextpo.so.0 -> libgettextpo.so.0.1.0
libgettextlib-0.14.1.so -> libgettextlib.so
libgettextsrc-0.14.1.so -> libgettextsrc.so
libffi-2.00-beta.so -> libffi.so
libopcodes-2.15.90.0.3.so -> libopcodes.so
libbfd-2.15.90.0.3.so -> libbfd.so
libospgrove.so.0 -> libospgrove.so.0.0.0
libostyle.so.0 -> libostyle.so.0.0.0
libosp.so.0 -> libosp.so.0.0.0
libogrove.so.0 -> libogrove.so.0.0.0
librpmio-4.2.so -> librpmio.so
librpm-4.2.so -> librpm.so
librpmbuild-4.2.so -> librpmbuild.so
librpmdb-4.2.so -> librpmdb.so
libmysqlclient.so.12 -> libmysqlclient.so.10
libmysqlclient_r.so.12 -> libmysqlclient_r.so.10
libgimpprint.so.1 -> libgimpprint.so.1.1.1
libFLAC.so.4 -> libFLAC.so.4.1.2
libOggFLAC.so.1 -> libOggFLAC.so.1.0.2
libFLAC++.so.2 -> libFLAC++.so.2.1.2
libOggFLAC++.so.0 -> libOggFLAC++.so.0.0.4
libutempter.so.0 -> libutempter.so.1.1.1
libcrypto.so.0 -> libcrypto.so.0.9.7
libssl.so.0 -> libssl.so.0.9.7
liblpr.so.0 -> liblpr.so.0.0.0
libasprintf.so.0 -> libasprintf.so.0.0.0
libstdc++.so.5 -> libstdc++.so.5.0.6
libreadline.so.4 -> libreadline.so.4.3
libasound.so.2 -> libasound.so.2.0.0
libcurl.so.3 -> libcurl.so.3.0.0
libcurl.so.2 -> libcurl.so.2.0.2
libhistory.so.4 -> libhistory.so.4.3
libpng.so.3 -> libpng.so.3.1.2.5
libgmpxx.so.3 -> libgmpxx.so.3.0.5
libpcre.so.0 -> libpcre.so.0.0.1
libfreetype.so.6 -> libfreetype.so.6.3.5
libpcreposix.so.0 -> libpcreposix.so.0.0.0
libmp.so.3 -> libmp.so.3.1.7
libcups.so.2 -> libcups.so.2
libgmodule-2.0.so.0 -> libgmodule-2.0.so.0.600.3
libvgagl.so.1 -> libvgagl.so.1.4.3
libjpeg.so.62 -> libjpeg.so.62.0.0
libslang.so.1 -> libslang.so.1.4.9
libgobject-2.0.so.0 -> libgobject-2.0.so.0.600.3
libgthread-2.0.so.0 -> libgthread-2.0.so.0.600.3
libpopt.so.0 -> libpopt.so.0.0.0
libglib-2.0.so.0 -> libglib-2.0.so.0.600.3
libusb-0.1.so.4 -> libusb-0.1.so.4.4.0
libgcc_s.so.1 -> libgcc_s.so.1
libmenu.so.5 -> libmenu.so.5.4
libpanelw.so.5 -> libpanelw.so.5.4
libexpat.so.0 -> libexpat.so.0.5.0
libcupsimage.so.2 -> libcupsimage.so.2
libform.so.5 -> libform.so.5.4
libgdbm.so.3 -> libgdbm.so.3.0.0
libgdbm.so.2 -> libgdbm.so.2.0.0
libz.so.1 -> libz.so.1.2.2
libgmp.so.3 -> libgmp.so.3.3.3
libpng12.so.0 -> libpng12.so.0.1.2.5
libtiff.so.3 -> libtiff.so.3.6.1
libformw.so.5 -> libformw.so.5.4
libmenuw.so.5 -> libmenuw.so.5.4
libpanel.so.5 -> libpanel.so.5.4
libvga.so.1 -> libvga.so.1.4.3

I think, my problem is something with my libraries, but i donīt know what.

Have somedoby the same Problem?

Thank you!!!!!!!!!!
 
Old 04-20-2005, 08:24 PM   #2
-0-
Member
 
Registered: Nov 2004
Location: London uk
Distribution: Slack 10
Posts: 67

Rep: Reputation: 15
Quote:
-O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -malign-double -falign-loops -mcpu=athlon
Out of interest why are those your CFLAGS? or were they chosen by the ./configure script?

For one thing there is no point goin over -O3, andeven that's overrated in a lot of cases.

Sorry, i have no expierience with that SIP server (though i was planning on setting one up later in the year). But those flags perplexed me.


Later
-0-
 
Old 04-21-2005, 08:33 AM   #3
reygudu
LQ Newbie
 
Registered: Apr 2005
Distribution: Slackware, NetBSD, RedHat
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you for your quickly answer, i am quite as you can see

There was no ./configure script, there are only one:


Makefile
Makefile.defs
Makefile.modules
Makefile.rules
and Makefile.sources

i donīt know how to change my CFLAGS

The makefile looks like:

#----

auto_gen=lex.yy.c cfg.tab.c #lexx, yacc etc

#include source related defs
include Makefile.sources

# whether or not to install ser.cfg or just ser.cfg.default
# (ser.cfg will never be overwritten by make install, this is usefull
# when creating packages)
skip_cfg_install?=

#extra modules to exclude
skip_modules?=

# if not set on the cmd. line or the env, exclude this modules:
exclude_modules?= cpl ext extcmd \
postgres snmp \
im \
jabber mysql \
cpl-c \
auth_radius group_radius uri_radius avp_radius \
pa
# always exclude the CVS dir
override exclude_modules+= CVS $(skip_modules)

#always include this modules
include_modules?=

# first 2 lines are excluded because of the experimental or incomplete
# status of the modules
# the rest is excluded because it depends on external libraries
#
static_modules=
static_modules_path=$(addprefix modules/, $(static_modules))
extra_sources=$(wildcard $(addsuffix /*.c, $(static_modules_path)))
extra_objs=$(extra_sources:.c=.o)

static_defs= $(foreach mod, $(static_modules), \
-DSTATIC_$(shell echo $(mod) | tr [:lower:] [:upper:]) )

override extra_defs+=$(static_defs) $(EXTRA_DEFS)
export extra_defs

modules=$(filter-out $(addprefix modules/, \
$(exclude_modules) $(static_modules)), \
$(wildcard modules/*))
modules:=$(filter-out $(modules), $(addprefix modules/, $(include_modules) )) \
$(modules)
modules_names=$(shell echo $(modules)| \
sed -e 's/modules\/\([^/ ]*\)\/*/\1.so/g' )
modules_basenames=$(shell echo $(modules)| \
sed -e 's/modules\/\([^/ ]*\)\/*/\1/g' )
#modules_names=$(patsubst modules/%, %.so, $(modules))
modules_full_path=$(join $(modules), $(addprefix /, $(modules_names)))


ALLDEP=Makefile Makefile.sources Makefile.defs Makefile.rules

#include general defs (like CC, CFLAGS a.s.o)
# hack to force makefile.defs re-inclusion (needed when make calls itself with
# other options -- e.g. make bin)
makefile_defs=0
DEFS:=
include Makefile.defs

NAME=$(MAIN_NAME)

#export relevant variables to the sub-makes
export DEFS PROFILE CC LD MKDEP MKTAGS CFLAGS LDFLAGS MOD_CFLAGS MOD_LDFLAGS
export LIBS
export LEX YACC YACC_FLAGS
export PREFIX LOCALBASE
# export relevant variables for recursive calls of this makefile
# (e.g. make deb)
#export LIBS
#export TAR
#export NAME RELEASE OS ARCH
#export cfg-prefix cfg-dir bin-prefix bin-dir modules-prefix modules-dir
#export doc-prefix doc-dir man-prefix man-dir ut-prefix ut-dir
#export cfg-target modules-target
#export INSTALL INSTALL-CFG INSTALL-BIN INSTALL-MODULES INSTALL-DOC INSTALL-MAN
#export INSTALL-TOUCH

ifneq ($(TLS),)
tar_extra_args+=
else
tar_extra_args+=--exclude=$(notdir $(CURDIR))/tls*
endif
# include the common rules
include Makefile.rules

#extra targets

$(NAME): $(extra_objs) # static_modules

lex.yy.c: cfg.lex cfg.tab.h $(ALLDEP)
$(LEX) $<

cfg.tab.c cfg.tab.h: cfg.y $(ALLDEP)
$(YACC) $(YACC_FLAGS) $<

.PHONY: all
all: $(NAME) modules



.PHONY: modules
modules:
-@for r in $(modules) "" ; do \
if [ -n "$$r" ]; then \
echo "" ; \
echo "" ; \
$(MAKE) -C $$r ; \
fi ; \
done

$(extra_objs):
-@echo "Extra objs: $(extra_objs)"
-@for r in $(static_modules_path) "" ; do \
if [ -n "$$r" ]; then \
echo "" ; \
echo "Making static module $r" ; \
$(MAKE) -C $$r static ; \
fi ; \
done



dbg: ser
gdb -command debug.gdb

.PHONY: tar
.PHONY: dist

dist: tar

tar:
$(TAR) -C .. \
--exclude=$(notdir $(CURDIR))/test* \
--exclude=$(notdir $(CURDIR))/tmp* \
--exclude=$(notdir $(CURDIR))/debian/ser* \
--exclude=$(notdir $(CURDIR))/ser_tls* \
--exclude=CVS* \
--exclude=.cvsignore \
--exclude=*.[do] \
--exclude=*.so \
--exclude=*.il \
--exclude=$(notdir $(CURDIR))/ser \
--exclude=*.gz \
--exclude=*.bz2 \
--exclude=*.tar \
--exclude=*.patch \
--exclude=.\#* \
--exclude=*.swp \
${tar_extra_args} \
-cf - $(notdir $(CURDIR)) | \
(mkdir -p tmp/_tar1; mkdir -p tmp/_tar2 ; \
cd tmp/_tar1; $(TAR) -xf - ) && \
mv tmp/_tar1/$(notdir $(CURDIR)) \
tmp/_tar2/"$(NAME)-$(RELEASE)" && \
(cd tmp/_tar2 && $(TAR) \
-zcf ../../"$(NAME)-$(RELEASE)_src".tar.gz \
"$(NAME)-$(RELEASE)" ) ; \
rm -rf tmp/_tar1; rm -rf tmp/_tar2

# binary dist. tar.gz
.PHONY: bin
bin:
mkdir -p tmp/ser/usr/local
$(MAKE) install basedir=tmp/ser prefix=/usr/local
$(TAR) -C tmp/ser/ -zcf ../$(NAME)-$(RELEASE)_$(OS)_$(ARCH).tar.gz .
rm -rf tmp/ser

.PHONY: deb
deb:
dpkg-buildpackage -rfakeroot -tc

.PHONY: sunpkg
sunpkg:
mkdir -p tmp/ser
mkdir -p tmp/ser_sun_pkg
$(MAKE) install basedir=tmp/ser prefix=/usr/local
(cd solaris; \
pkgmk -r ../tmp/ser/usr/local -o -d ../tmp/ser_sun_pkg/ -v "$(RELEASE)" ;\
cd ..)
cat /dev/null > ../$(NAME)-$(RELEASE)-$(OS)-$(ARCH)-local
pkgtrans -s tmp/ser_sun_pkg/ ../$(NAME)-$(RELEASE)-$(OS)-$(ARCH)-local \
IPTELser
gzip -9 ../$(NAME)-$(RELEASE)-$(OS)-$(ARCH)-local
rm -rf tmp/ser
rm -rf tmp/ser_sun_pkg


.PHONY: install
install: all mk-install-dirs install-cfg install-bin install-modules \
install-doc install-man

.PHONY: dbinstall
dbinstall:
-@echo "Initializing ser database"
scripts/ser_mysql.sh create
-@echo "Done"

mk-install-dirs: $(cfg-prefix)/$(cfg-dir) $(bin-prefix)/$(bin-dir) \
$(modules-prefix)/$(modules-dir) $(doc-prefix)/$(doc-dir) \
$(man-prefix)/$(man-dir)/man8 $(man-prefix)/$(man-dir)/man5

$(cfg-prefix)/$(cfg-dir):
mkdir -p $(cfg-prefix)/$(cfg-dir)

$(bin-prefix)/$(bin-dir):
mkdir -p $(bin-prefix)/$(bin-dir)

$(modules-prefix)/$(modules-dir):
mkdir -p $(modules-prefix)/$(modules-dir)


$(doc-prefix)/$(doc-dir):
mkdir -p $(doc-prefix)/$(doc-dir)

$(man-prefix)/$(man-dir)/man8:
mkdir -p $(man-prefix)/$(man-dir)/man8

$(man-prefix)/$(man-dir)/man5:
mkdir -p $(man-prefix)/$(man-dir)/man5

# note: on solaris 8 sed: ? or \(...\)* (a.s.o) do not work
install-cfg: $(cfg-prefix)/$(cfg-dir)
sed -e "s#/usr/.*lib/ser/modules/#$(modules-target)#g" \
< etc/ser.cfg > $(cfg-prefix)/$(cfg-dir)ser.cfg.sample
chmod 644 $(cfg-prefix)/$(cfg-dir)ser.cfg.sample
if [ -z "${skip_cfg_install}" -a \
! -f $(cfg-prefix)/$(cfg-dir)ser.cfg ]; then \
mv -f $(cfg-prefix)/$(cfg-dir)ser.cfg.sample \
$(cfg-prefix)/$(cfg-dir)ser.cfg; \
fi
# $(INSTALL-CFG) etc/ser.cfg $(cfg-prefix)/$(cfg-dir)

install-bin: $(bin-prefix)/$(bin-dir) utils/gen_ha1/gen_ha1 utils/serunix/serunix
$(INSTALL-TOUCH) $(bin-prefix)/$(bin-dir)/ser
$(INSTALL-BIN) ser $(bin-prefix)/$(bin-dir)
$(INSTALL-TOUCH) $(bin-prefix)/$(bin-dir)/sc
$(INSTALL-BIN) scripts/sc $(bin-prefix)/$(bin-dir)
mv -f $(bin-prefix)/$(bin-dir)/sc $(bin-prefix)/$(bin-dir)/serctl
$(INSTALL-TOUCH) $(bin-prefix)/$(bin-dir)/ser_mysql.sh
$(INSTALL-BIN) scripts/ser_mysql.sh $(bin-prefix)/$(bin-dir)
$(INSTALL-TOUCH) $(bin-prefix)/$(bin-dir)/gen_ha1
$(INSTALL-BIN) utils/gen_ha1/gen_ha1 $(bin-prefix)/$(bin-dir)
$(INSTALL-TOUCH) $(bin-prefix)/$(bin-dir)/serunix
$(INSTALL-BIN) utils/serunix/serunix $(bin-prefix)/$(bin-dir)

utils/gen_ha1/gen_ha1:
cd utils/gen_ha1; $(MAKE) all

utils/serunix/serunix:
cd utils/serunix; $(MAKE) all

install-modules: modules $(modules-prefix)/$(modules-dir)
-@for r in $(modules_full_path) "" ; do \
if [ -n "$$r" ]; then \
if [ -f "$$r" ]; then \
$(INSTALL-TOUCH) \
$(modules-prefix)/$(modules-dir)/`basename "$$r"` ; \
$(INSTALL-MODULES) "$$r" $(modules-prefix)/$(modules-dir) ; \
else \
echo "ERROR: module $$r not compiled" ; \
fi ;\
fi ; \
done


install-modules-all: install-modules install-modules-doc


install-doc: $(doc-prefix)/$(doc-dir) install-modules-doc
$(INSTALL-TOUCH) $(doc-prefix)/$(doc-dir)/INSTALL
$(INSTALL-DOC) INSTALL $(doc-prefix)/$(doc-dir)
$(INSTALL-TOUCH) $(doc-prefix)/$(doc-dir)/README-MODULES
$(INSTALL-DOC) README-MODULES $(doc-prefix)/$(doc-dir)
$(INSTALL-TOUCH) $(doc-prefix)/$(doc-dir)/AUTHORS
$(INSTALL-DOC) AUTHORS $(doc-prefix)/$(doc-dir)
$(INSTALL-TOUCH) $(doc-prefix)/$(doc-dir)/NEWS
$(INSTALL-DOC) NEWS $(doc-prefix)/$(doc-dir)
$(INSTALL-TOUCH) $(doc-prefix)/$(doc-dir)/README
$(INSTALL-DOC) README $(doc-prefix)/$(doc-dir)


install-modules-doc: $(doc-prefix)/$(doc-dir)
-@for r in $(modules_basenames) "" ; do \
if [ -n "$$r" ]; then \
if [ -f modules/"$$r"/README ]; then \
$(INSTALL-TOUCH) $(doc-prefix)/$(doc-dir)/README ; \
$(INSTALL-DOC) modules/"$$r"/README \
$(doc-prefix)/$(doc-dir)/README ; \
mv -f $(doc-prefix)/$(doc-dir)/README \
$(doc-prefix)/$(doc-dir)/README."$$r" ; \
fi ; \
fi ; \
done


install-man: $(man-prefix)/$(man-dir)/man8 $(man-prefix)/$(man-dir)/man5
sed -e "s#/etc/ser/ser\.cfg#$(cfg-target)ser.cfg#g" \
-e "s#/usr/sbin/#$(bin-target)#g" \
-e "s#/usr/lib/ser/modules/#$(modules-target)#g" \
-e "s#/usr/share/doc/ser/#$(doc-target)#g" \
< ser.8 > $(man-prefix)/$(man-dir)/man8/ser.8
chmod 644 $(man-prefix)/$(man-dir)/man8/ser.8
sed -e "s#/etc/ser/ser\.cfg#$(cfg-target)ser.cfg#g" \
-e "s#/usr/sbin/#$(bin-target)#g" \
-e "s#/usr/lib/ser/modules/#$(modules-target)#g" \
-e "s#/usr/share/doc/ser/#$(doc-target)#g" \
< ser.cfg.5 > $(man-prefix)/$(man-dir)/man5/ser.cfg.5
chmod 644 $(man-prefix)/$(man-dir)/man5/ser.cfg.5
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Ser Service Status: ser dead but subsys locked Reu Linux - Software 2 11-03-2007 12:00 PM
using Global signature through IMAP server and Outlook Express coolamit78 Linux - Networking 2 04-07-2006 09:26 AM
Use my old 56K modem to run SIP Server for voip tunasashimi Linux - Software 2 09-17-2005 10:29 AM
SIP Server.... MATDEV Linux - Software 2 07-20-2004 02:44 AM
I rebooted server now I cant retreive emails via outlook express lexington Linux - Newbie 5 05-01-2004 11:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration