When I looked up CFLAGS i did not find the -s symbol. It had -g symbol so I
added -Wall.

This is what it looks like before i made my change:
CFLAGS=-D_REENTRANT=1 -I. -Igw -g -O2 -DDARWIN=1
-L/Developer/SDKs/MacOSX10.5.sdk/usr/lib
-I/Developer/SDKs/MacOSX10.5.sdk/usr/include -D_LARGE_FILES=
-I/opt/local/include/libxml2 -I/usr/include/opens

When I ran the gdb gw/bearerbox -v 3 kannel.conf. I get the following error
and gdb exits. 
Excess command line arguments ignored. (kannel.conf)


Nikos Balkanas wrote:
> 
> Hmmm. I don't see anything perculiar. Except possibly libiconv.
> 
> Please do the following:
> 
> 1) Open Makefile and look for CFLAGS.
> 2) Copy that to another line, comment original out and turn on debug 
> symbols:
> 
> change:
> -s -O<x>
> to:
> -g -Wall
> 
> 3) make clean
> 4) make
> 5)gdb gw/bearerbox -v 3 <configuration file>
> 6) When it crashes (in gdb) type:
> 
> where
> 
> And post stack
> 
> BR,
> Nikos
> 
> 
> ----- Original Message ----- 
> From: "digiTonik" <[email protected]>
> To: <[email protected]>
> Sent: Wednesday, March 31, 2010 12:26 PM
> Subject: Re: Compiling Kannel on mac snow leopard (10.6)
> 
> 
>>
>> Ok I will download CVS version.
>>
>> Here is the out put of the configure..
>>
>> Configuring for Kannel gateway version 1.4.3 ...
>>
>> Running system checks ...
>> checking build system type... i686-apple-darwin10.0.0
>> checking host system type... i686-apple-darwin10.0.0
>> checking for gcc... gcc
>> checking for C compiler default output file name... a.out
>> checking whether the C compiler works... yes
>> checking whether we are cross compiling... no
>> checking for suffix of executables...
>> checking for suffix of object files... o
>> checking whether we are using the GNU C compiler... yes
>> checking whether gcc accepts -g... yes
>> checking for gcc option to accept ISO C89... none needed
>> checking for gcc option to accept ISO C99... -std=gnu99
>> checking for a BSD-compatible install... /usr/bin/install -c
>> checking for ranlib... ranlib
>> checking for bison... bison -y
>> checking for flex... flex
>> checking lex output file root... lex.yy
>> checking lex library... -lfl
>> checking whether yytext is a pointer... yes
>> checking for ar... ar
>> checking for convert... no
>> checking for perl... /usr/bin/perl
>> checking for inline... inline
>> checking for special C compiler options needed for large files... no
>> checking for _FILE_OFFSET_BITS value needed for large files... no
>> checking how to run the C preprocessor... gcc -std=gnu99 -E
>> checking for grep that handles long lines and -e... /usr/bin/grep
>> checking for egrep... /usr/bin/grep -E
>> checking for ANSI C header files... yes
>> checking for sys/types.h... yes
>> checking for sys/stat.h... yes
>> checking for stdlib.h... yes
>> checking for string.h... yes
>> checking for memory.h... yes
>> checking for strings.h... yes
>> checking for inttypes.h... yes
>> checking for stdint.h... yes
>> checking for unistd.h... yes
>> checking size of short... 2
>> checking size of int... 4
>> checking size of long... 8
>> checking size of long long... 8
>> checking for log in -lm... yes
>> checking for accept in -lsocket... no
>> checking for inet_ntoa in -lnsl... no
>> checking for inet_ntop in -lresolv... yes
>> checking for inet_ntop in -lbind... no
>> checking for pthread_exit in -lpthread... yes
>> checking for libiconv in -liconv... no
>> checking for ANSI C header files... (cached) yes
>> checking sys/ioctl.h usability... yes
>> checking sys/ioctl.h presence... yes
>> checking for sys/ioctl.h... yes
>> checking sys/time.h usability... yes
>> checking sys/time.h presence... yes
>> checking for sys/time.h... yes
>> checking for sys/types.h... (cached) yes
>> checking for unistd.h... (cached) yes
>> checking sys/poll.h usability... yes
>> checking sys/poll.h presence... yes
>> checking for sys/poll.h... yes
>> checking pthread.h usability... yes
>> checking pthread.h presence... yes
>> checking for pthread.h... yes
>> checking getopt.h usability... yes
>> checking getopt.h presence... yes
>> checking for getopt.h... yes
>> checking syslog.h usability... yes
>> checking syslog.h presence... yes
>> checking for syslog.h... yes
>> checking iconv.h usability... yes
>> checking iconv.h presence... yes
>> checking for iconv.h... yes
>> checking zlib.h usability... yes
>> checking zlib.h presence... yes
>> checking for zlib.h... yes
>> checking execinfo.h usability... yes
>> checking execinfo.h presence... yes
>> checking for execinfo.h... yes
>> checking for stdlib.h... (cached) yes
>> checking sys/socket.h usability... yes
>> checking sys/socket.h presence... yes
>> checking for sys/socket.h... yes
>> checking sys/sockio.h usability... yes
>> checking sys/sockio.h presence... yes
>> checking for sys/sockio.h... yes
>> checking netinet/in.h usability... yes
>> checking netinet/in.h presence... yes
>> checking for netinet/in.h... yes
>> checking for net/if.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 localtime_r... yes
>> checking for gmtime_r... yes
>> checking for backtrace... yes
>> checking for srandom... yes
>> checking for getopt... yes
>> checking for gethostbyname_r... no
>> checking for gethostbyname... 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 regex.h usability... yes
>> checking regex.h presence... yes
>> checking for regex.h... yes
>> checking for regcomp... yes
>>
>> Checking for POSIX threads support ...
>> checking for working pthreads... yes
>> checking for pthread_spinlock support... no
>> checking for pthread_rwlock support... yes
>> checking for sem_init in -lrt... no
>> checking for semaphore support... no
>>
>> Checking for libxml2 support ...
>> checking for xml2-config... /opt/local/bin/xml2-config
>> checking libxml version... 2.7.6
>>
>> Configuring for PCRE support ...
>> checking whether to compile with PCRE support... disabled
>>
>> Configuring DocBook support ...
>> checking for jade... no
>> checking for jadetex... no
>> checking for pdfjadetex... no
>> checking for dvips... no
>> checking for fig2dev... no
>> checking for convert... no
>> checking for
>> /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/html/docbook.dsl... no
>> checking for /usr/lib/sgml/stylesheets/nwalsh-modular/html/docbook.dsl... 
>> no
>> checking for
>> /usr/share/sgml/docbook/dsssl-stylesheets-1.*/html/docbook.dsl... no
>> checking for
>> /usr/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl...
>> no
>> checking for
>> /usr/share/sgml/docbook/stylesheet/dsssl/modular/html/docbook.dsl... no
>> checking for /usr/share/sgml/docbook/dsssl/modular/html/docbook.dsl... no
>> checking for
>> /usr/local/lib/sgml/stylesheet/dsssl/docbook/nwalsh/html/docbook.dsl...
>> no
>> checking for
>> /usr/local/lib/sgml/stylesheets/nwalsh-modular/html/docbook.dsl... no
>> checking for
>> /usr/local/share/sgml/docbook/dsssl-stylesheets-1.*/html/docbook.dsl...
>> no
>> checking for
>> /usr/local/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl... no
>> checking for
>> /usr/local/share/sgml/docbook/stylesheet/dsssl/modular/html/docbook.dsl...
>> no
>> checking for 
>> /usr/local/share/sgml/docbook/dsssl/modular/html/docbook.dsl...
>> no
>> checking for
>> /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/print/docbook.dsl... no
>> checking for
>> /usr/lib/sgml/stylesheets/nwalsh-modular/print/docbook.dsl...
>> no
>> checking for
>> /usr/share/sgml/docbook/dsssl-stylesheets-1.*/print/docbook.dsl... no
>> checking for 
>> /usr/share/sgml/docbook/dsssl-stylesheets/print/docbook.dsl...
>> no
>> checking for
>> /usr/share/sgml/docbook/stylesheet/dsssl/modular/print/docbook.dsl... no
>> checking for /usr/share/sgml/docbook/dsssl/modular/print/docbook.dsl...
>> no
>> checking for
>> /usr/local/lib/sgml/stylesheet/dsssl/docbook/nwalsh/print/docbook.dsl... 
>> no
>> checking for
>> /usr/local/lib/sgml/stylesheets/nwalsh-modular/print/docbook.dsl... no
>> checking for
>> /usr/local/share/sgml/docbook/dsssl-stylesheets-1.*/print/docbook.dsl... 
>> no
>> checking for
>> /usr/local/share/sgml/docbook/dsssl-stylesheets/print/docbook.dsl... no
>> checking for
>> /usr/local/share/sgml/docbook/stylesheet/dsssl/modular/print/docbook.dsl...
>> no
>> checking for
>> /usr/local/share/sgml/docbook/dsssl/modular/print/docbook.dsl... no
>> Not building documentation.
>>
>> Configuring parameters ...
>> checking which malloc to use... native malloc
>> enabling local time
>> enabling cookies
>> enabling HTTP/1.1 keep-alive
>>
>> Configuring OpenSSL support ...
>> checking whether to compile with SSL support... trying /usr/lib
>> /usr/include/openssl
>> checking for openssl... /opt/local/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 openssl/x509.h usability... yes
>> checking openssl/x509.h presence... yes
>> checking for openssl/x509.h... yes
>> checking openssl/rsa.h usability... yes
>> checking openssl/rsa.h presence... yes
>> checking for openssl/rsa.h... yes
>> checking openssl/crypto.h usability... yes
>> checking openssl/crypto.h presence... yes
>> checking for openssl/crypto.h... yes
>> checking openssl/pem.h usability... yes
>> checking openssl/pem.h presence... yes
>> checking for openssl/pem.h... yes
>> checking openssl/ssl.h usability... yes
>> checking openssl/ssl.h presence... yes
>> checking for openssl/ssl.h... yes
>> checking openssl/err.h usability... yes
>> checking openssl/err.h presence... yes
>> checking for openssl/err.h... yes
>> checking openssl/hmac.h usability... yes
>> checking openssl/hmac.h presence... yes
>> checking for openssl/hmac.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
>> checking whether to compile with SQLite2 support... disabled
>> checking whether to compile with SQLite3 support... disabled
>> checking whether to compile with Oracle support... disabled
>> checking whether to compile with PostgresSQL support... disabled
>>
>> Generating output files ...
>> configure: creating ./config.status
>> config.status: creating gwlib/gw_uuid_types.h
>> config.status: creating Makefile
>> config.status: creating gw-config.h
>> config.status: gw-config.h is unchanged
>>
>>
>> Nikos Balkanas wrote:
>>>
>>> Hi,
>>>
>>> Better download latest CVS. However, didn't ask for configuration. I 
>>> asked
>>> for configuration logs, the result of running ./configure.
>>>
>>> BR,
>>> Nikos
>>> ----- Original Message ----- 
>>> From: "digiTonik" <[email protected]>
>>> To: <[email protected]>
>>> Sent: Wednesday, March 31, 2010 11:33 AM
>>> Subject: Re: Compiling Kannel on mac snow leopard (10.6)
>>>
>>>
>>>>
>>>> I using gateway-1.4.3.tar.gz listed under Stable release in Kannel.org
>>>> download section.
>>>>
>>>> config logs:
>>>> group = core
>>>> admin-port = 13000
>>>> admin-password = bar
>>>>
>>>> # SMSBOX SETUP
>>>> group = smsbox
>>>> bearerbox-host = localhost
>>>> sendsms-port = 13013
>>>>
>>>>
>>>> # SEND-SMS USERS
>>>>
>>>> group = sendsms-user
>>>> username = tester
>>>> password = foobar
>>>> #user-deny-ip = ""
>>>> #user-allow-ip = ""
>>>>
>>>> # SMSC Fake
>>>> group = smsc
>>>> smsc = fake
>>>> host = 127.0.0.1
>>>> port = 13013
>>>>
>>>>
>>>> # this sender is for Kannel relay testing (http_smsc)
>>>> group = sendsms-user
>>>> username = kannel
>>>> password = rL4y
>>>> user-deny-ip = "*.*.*.*"
>>>> user-allow-ip = "127.0.0.1"
>>>>
>>>>
>>>> # SMS SERVICE Default
>>>> # there should be default always
>>>> group = sms-service
>>>> keyword = default
>>>> text = "No service specified"
>>>>
>>>> Nikos Balkanas wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> Please post configuration logs. Are you using the latest CVS sources
>>>>> from
>>>>> kannel's site?
>>>>>
>>>>> BR,
>>>>> Nikos
>>>>> ----- Original Message ----- 
>>>>> From: "digiTonik" <[email protected]>
>>>>> To: <[email protected]>
>>>>> Sent: Wednesday, March 31, 2010 9:37 AM
>>>>> Subject: Compiling Kannel on mac snow leopard (10.6)
>>>>>
>>>>>
>>>>>>
>>>>>> I downloaded the gzip tarball. I installed it with the following 
>>>>>> steps.
>>>>>> ./configure
>>>>>> make
>>>>>> make install
>>>>>>
>>>>>> When I run ./bearerbox kannel.conf. I am using the sample conf that
>>>>>> came
>>>>>> in
>>>>>> the package. I get the following error.
>>>>>> 2010-03-31 07:25:22 [39761] [0] INFO: Debug_lvl = -1, log_file =
>>>>>> <none>,
>>>>>> log_lvl = 0
>>>>>> 2010-03-31 07:25:22 [39761] [0] WARNING: DLR: using default
>>>>>> 'internal'
>>>>>> for
>>>>>> storage type.
>>>>>> 2010-03-31 07:25:22 [39761] [0] INFO: DLR using storage type:
>>>>>> internal
>>>>>> Segmentation fault
>>>>>> -- 
>>>>>> View this message in context:
>>>>>> http://old.nabble.com/Compiling-Kannel-on-mac-snow-leopard-%2810.6%29-tp28091962p28091962.html
>>>>>> Sent from the Kannel - User mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>> -- 
>>>> View this message in context:
>>>> http://old.nabble.com/Compiling-Kannel-on-mac-snow-leopard-%2810.6%29-tp28091962p28092886.html
>>>> Sent from the Kannel - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>
>>>
>>>
>>>
>>
>> -- 
>> View this message in context: 
>> http://old.nabble.com/Compiling-Kannel-on-mac-snow-leopard-%2810.6%29-tp28091962p28093462.html
>> Sent from the Kannel - User mailing list archive at Nabble.com.
>>
>> 
> 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Compiling-Kannel-on-mac-snow-leopard-%2810.6%29-tp28091962p28099938.html
Sent from the Kannel - User mailing list archive at Nabble.com.


Reply via email to