Re: Kannel automatic compilation test

Harrie Hazewinkel <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <1125569.1031062137@localhost>
Hi All,

--On Tuesday, September 3, 2002 7:06 AM +0100 kannel 
<[email protected]> wrote:

> 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.

the warnings on the unused variable are caused by an
expansion of the 'define macros' into code like this.


case
    0x00000002 : { struct  LogonConf  *p = &pdu->u. LogonConf ;

  } break;

which is on its turn a result of this code for the define:
    #define PDU(name, id, fields) \
        case id: { struct name *p = &pdu->u.name; fields } break;

and this definition:

PDU(LogonConf,
    0x00000002,
    HEADER
)

where I believe the HEADER variable is defined as NONTERMINATED.

The define of NONTERMNIATED is defined as
#define NONTERMINATED(name)

This goes for the warnings
In file included from gw/smsc/smasi_pdu.c:151:
gw/smsc/smasi_pdu.def: In function `smasi_pdu_pack':
gw/smsc/smasi_pdu.def:32: warning: unused variable `p'
gw/smsc/smasi_pdu.def:49: warning: unused variable `p'
gw/smsc/smasi_pdu.def:143: warning: unused variable `p'
gw/smsc/smasi_pdu.def:148: warning: unused variable `p'


Stipe, hope this helps you to fix it, since you added
this SMASI SMSC.

Harrie

>
> Output of 'make -s':
> In file included from gw/smsc/smasi_pdu.c:151:
> gw/smsc/smasi_pdu.def: In function `smasi_pdu_pack':
> gw/smsc/smasi_pdu.def:32: warning: unused variable `p'
> gw/smsc/smasi_pdu.def:49: warning: unused variable `p'
> gw/smsc/smasi_pdu.def:143: warning: unused variable `p'
> gw/smsc/smasi_pdu.def:148: warning: unused variable `p'
> In file included from gw/smsc/smasi_pdu.c:213:
> gw/smsc/smasi_pdu.def: In function `smasi_pdu_unpack':
> gw/smsc/smasi_pdu.def:32: warning: unused variable `p'
> gw/smsc/smasi_pdu.def:49: warning: unused variable `p'
> gw/smsc/smasi_pdu.def:143: warning: unused variable `p'
> gw/smsc/smasi_pdu.def:148: warning: unused variable `p'
> In file included from gw/smsc/smasi_pdu.c:234:
> gw/smsc/smasi_pdu.def: In function `smasi_pdu_dump':
> gw/smsc/smasi_pdu.def:32: warning: unused variable `p'
> gw/smsc/smasi_pdu.def:49: warning: unused variable `p'
> gw/smsc/smasi_pdu.def:143: warning: unused variable `p'
> gw/smsc/smasi_pdu.def:148: warning: unused variable `p'
> gwlib/http.c: In function `http_send_reply':
> gwlib/http.c:1976: warning: unused variable `p'
> test/test_cfg.c: In function `main':
> test/test_cfg.c:6: warning: `ret' might be used uninitialized in this
> function -------------------------------------------------------
>
> Output of 'CFLAGS='-Wall -O2 -g' ./configure':
> creating cache ./config.cache
> checking cvs checkout date... 20020902
>
> Configuring for Kannel gateway version cvs-20020902 ...
>
> 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 pdfjadetex... pdfjadetex
> checking for dvips... dvips
> checking for fig2dev... fig2dev
> checking for convert... /usr/X11R6/bin/convert
> 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... native malloc
> enabling local time
>
> 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 DB support ...
> checking whether to compile with MySQL support... disabled
> checking whether to compile with LibSDB support... disabled
>
> Generating output files ...
> updating cache ./config.cache
> creating ./config.status
> creating Makefile
> creating config.h
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.