FW: Kannel automatic compilation test
"Oded Arbel" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
The following patch is required to keep gcc from complaining about implicit declerations when compiling the latest patch to allow smsc specific stop and start -- Oded Arbel m-Wise Inc. [email protected] (972)-67-340014 (972)-9-9581711 (ext: 116) ::.. * Formal specifications yield correct programs. No. Formal specifications yield PhD theses. They may also occasionally yield programs as by-products, but no useful ones. -- Ronald F. Guilmette -----Original Message----- From: kannel [mailto:[email protected]] Sent: Sunday, May 26, 2002 8:04 AM To: [email protected] Subject: Kannel automatic compilation test Kannel compilation test. Host: Linux geodude.3glab.org 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown Kannel compilation had warnings or failed. Output of 'make -s': gw/bb_http.c: In function `httpd_stop_smsc': gw/bb_http.c:159: warning: implicit declaration of function `bb_stop_smsc' gw/bb_http.c: In function `httpd_start_smsc': gw/bb_http.c:177: warning: implicit declaration of function `bb_start_smsc' gw/bb_smscconn.c: In function `smsc2_find': gw/bb_smscconn.c:359: warning: `conn' might be used uninitialized in this function gw/bearerbox.c: In function `bb_stop_smsc': gw/bearerbox.c:623: warning: implicit declaration of function `smsc2_stop_smsc' gw/bearerbox.c: In function `bb_start_smsc': gw/bearerbox.c:628: warning: implicit declaration of function `smsc2_start_smsc' jade:doc/userguide/userguide.tmp:5551:7:E: end tag for "SECT3" omitted, but OMITTAG NO was specified jade:doc/userguide/userguide.tmp:5404:0: start tag was here make: *** [doc/userguide/userguide.html] Error 1 ------------------------------------------------------- Output of 'CFLAGS='-Wall -O2 -g' ./configure': creating cache ./config.cache checking cvs checkout date... 20020502 Configuring for Kannel gateway version cvs-20020502 ... Running system checks ... checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking whether the C compiler (gcc -Wall -O2 -g ) works... yes checking whether the C compiler (gcc -Wall -O2 -g ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for a BSD compatible install... /usr/bin/install -c checking for ranlib... ranlib checking for bison... bison -y checking for flex... flex checking for yywrap in -lfl... yes checking for convert... /usr/X11R6/bin/convert checking for perl... /usr/bin/perl checking for log in -lm... yes checking for accept in -lsocket... no checking for inet_ntoa in -lnsl... yes checking for inet_ntop in -lresolv... yes checking for inet_ntop in -lbind... no checking for pthread_exit in -lpthread... yes checking for pthread_exit in -lc_r... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/ioctl.h... yes checking for sys/time.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for sys/poll.h... yes checking for pthread.h... yes checking for getopt.h... yes checking for syslog.h... yes checking for gettimeofday... yes checking for select... yes checking for socket... yes checking for strdup... yes checking for getopt_long... yes checking for getopt... yes checking for socklen_t in <sys/socket.h>... yes checking for getopt in <stdio.h>... no checking for getopt in <unistd.h>... yes Checking POSIX threads support ... checking for working pthreads... no Checking for libxml2 support ... checking for xml2-config... /usr/bin/xml2-config checking libxml version... 2.3.11 Configuring DocBook support ... checking for jade... jade checking for jadetex... jadetex checking for dvips... dvips checking for fig2dev... fig2dev checking for convert... /usr/X11R6/bin/convert checking for ps2pdf... ps2pdf checking for /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/html/docbook.dsl... no checking for /usr/lib/sgml/stylesheets/nwalsh-modular/html/docbook.dsl... yes checking for /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/print/docbook.dsl... no checking for /usr/lib/sgml/stylesheets/nwalsh-modular/print/docbook.dsl... yes Documentation will be built as well. Configuring parameters ... checking which malloc to use... checking malloc Configuring OpenSSL support ... checking whether to compile with SSL support... trying /usr/lib /usr/include/openssl checking for openssl... /usr/bin/openssl checking for CRYPTO_lock in -lcrypto... yes checking for SSL_library_init in -lssl... yes checking for SSL_connect in -lssl... yes checking for openssl/x509.h... yes checking for openssl/rsa.h... yes checking for openssl/crypto.h... yes checking for openssl/pem.h... yes checking for openssl/ssl.h... yes checking for openssl/err.h... yes checking whether the OpenSSL library is multithread-enabled... yes checking whether to compile with SSL support... yes Configuring MySQL support ... checking whether to compile with MySQL support... disabled Generating output files ... updating cache ./config.cache creating ./config.status creating Makefile creating config.h
bearerbox.patch
(application/octet-stream, 781 B)
--- kannel-dev/gateway/gw/bearerbox.h 2002-04-28 12:28:27.000000000 +0300 +++ gateway/gw/bearerbox.h 2002-05-26 13:07:12.000000000 +0300 @@ -81,6 +81,9 @@ int smsc2_start(Cfg *config); int smsc2_restart(Cfg *config); +int smsc2_stop_smsc(Octstr *id); +int smsc2_start_smsc(Octstr *id); + void smsc2_suspend(void); /* suspend (can still send but not receive) */ void smsc2_resume(void); /* resume */ int smsc2_shutdown(void); @@ -151,6 +154,10 @@ /* return string of current status */ Octstr *bb_print_status(int status_type); +/* stop or start a single smsc interface */ +int bb_stop_smsc(Octstr *id); +int bb_start_smsc(Octstr *id); + /*---------------------------------------------------------------- * common function to all (in bearerbox.c)