Re: src compiling failed... dont know why =(

2008-12-16 Thread Aldo Zavala
=1 -I. -Igw -g -O2 -pthread -D_LARGE_FILES= 
-I/usr/local/include/libxml2 -I/usr/local/include -I/usr/include/openssl  -o 
wmlscript/wmlsc wmlscript/wmlsc.o libgw.a libwmlscript.a libwap.a libgwlib.a 
-lssl -lrt -lm  -lkse -L/usr/local/lib -lxml2 -lz -L/usr/local/lib -liconv -lm 
-L/usr/lib -lcrypto -lssl
wmlscript/wmlsc.o(.text+0x125): In function `main':
wmlscript/wmlsc.c:177: undefined reference to `ws_create'
wmlscript/wmlsc.o(.text+0x1ea):wmlscript/wmlsc.c:236: undefined reference to 
`ws_compile_data'
wmlscript/wmlsc.o(.text+0x236):wmlscript/wmlsc.c:248: undefined reference to 
`ws_free_byte_code'
wmlscript/wmlsc.o(.text+0x32c):wmlscript/wmlsc.c:251: undefined reference to 
`ws_compile_file'
wmlscript/wmlsc.o(.text+0x341):wmlscript/wmlsc.c:267: undefined reference to 
`ws_destroy'
wmlscript/wmlsc.o(.text+0x3f1):wmlscript/wmlsc.c:260: undefined reference to 
`ws_result_to_string'
wmlscript/wmlsc.o(.text+0x4f7): In function `pragma_meta':
wmlscript/wmlsc.c:298: undefined reference to `ws_utf8_to_latin1'
wmlscript/wmlsc.o(.text+0x511):wmlscript/wmlsc.c:299: undefined reference to 
`ws_utf8_to_latin1'
wmlscript/wmlsc.o(.text+0x52e):wmlscript/wmlsc.c:300: undefined reference to 
`ws_utf8_to_latin1'
wmlscript/wmlsc.o(.text+0x5ac):wmlscript/wmlsc.c:313: undefined reference to 
`ws_utf8_free_data'
wmlscript/wmlsc.o(.text+0x5b4):wmlscript/wmlsc.c:314: undefined reference to 
`ws_utf8_free_data'
wmlscript/wmlsc.o(.text+0x5c3):wmlscript/wmlsc.c:315: undefined reference to 
`ws_utf8_free_data'
*** Error code 1

Stop in /test/gateway.
[/output]

Thanks, 



- Original Message -
From: Nikos Balkanas
[mailto:nbalka...@gmail.com]
To: users@kannel.org, Aldo Zavala
[mailto:a...@.net]
Sent: Mon, 15 Dec 2008 14:39:01 -0700
Subject:
Re: src compiling failed... dont know why =(


 I think I see your problem. You seem to be missing libiconv. You need to get
 
 it for kannel. I am surprised that configure didn't fail because of that. 
 Also it wouldn't heart to get pcre.
 
 BTW, 1.4.1 is ~4 years old. Download the latest CVS from the site.
 
 BR,
 Nikos
 
 - Original Message - 
 From: Aldo Zavala a...@.net
 To: Nikos Balkanas nbalka...@gmail.com; users@kannel.org
 Sent: Monday, December 15, 2008 9:38 PM
 Subject: Re: src compiling failed... dont know why =(
 
 
 Here the output of the ./configure  , thanks for the reply.
 [output]
 radius# ./configure
 
 Configuring for Kannel gateway version 1.4.1 ...
 
 Running system checks ...
 checking build system type... i386-unknown-freebsd7.0
 checking host system type... i386-unknown-freebsd7.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 ANSI C... none needed
 checking for a BSD-compatible install... /usr/bin/install -c
 checking for ranlib... ranlib
 checking for bison... no
 checking for byacc... byacc
 checking for flex... flex
 checking for yywrap in -lfl... yes
 checking lex output file root... lex.yy
 checking whether yytext is a pointer... yes
 checking for convert... no
 checking for perl... /usr/bin/perl
 checking for pthread_exit in -lc_r... no
 checking for pthread_exit in -lkse... yes
 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 for _LARGE_FILES value needed for large files... no
 checking how to run the C preprocessor... gcc -E
 checking for egrep... 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 for short... yes
 checking size of short... 2
 checking for int... yes
 checking size of int... 4
 checking for long... yes
 checking size of long... 4
 checking for long long... yes
 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... no
 checking for inet_ntop in -lbind... no
 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

Re: src compiling failed... dont know why =(

2008-12-16 Thread Nikos Balkanas

Both configure output:
checking for libiconv in -liconv... no

And make error:
wmlscript/wmlsc.o(.text+0x511):wmlscript/wmlsc.c:299: undefined reference to 
`ws_utf8_to_latin1'


indicate that configure cannot find libiconv. Is libiconv in your 
LD_LIBRARY_PATH?


BR,
Nikos
- Original Message - 
From: Aldo Zavala a...@cleartalk.net

To: Nikos Balkanas nbalka...@gmail.com; users@kannel.org
Sent: Tuesday, December 16, 2008 10:24 AM
Subject: Re: src compiling failed... dont know why =(


I do have the libiconv installed, I downloaded the cvs version and still 
fails the make... what can be wrong?

this is the proof that I have the libiconv installed:
[output]
radius# pkg_info | grep libiconv
libiconv-1.11_1 A character set conversion library
[output]

Here is the ./configure output
[output]
radius# ./configure
checking cvs checkout date... 20081210

Configuring for Kannel gateway version cvs-20081210 ...

Running system checks ...
checking build system type... i386-unknown-freebsd7.0
checking host system type... i386-unknown-freebsd7.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... no
checking for byacc... byacc
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 pthread_exit in -lc_r... no
checking for pthread_exit in -lkse... yes
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... 4
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... no
checking for inet_ntop in -lbind... no
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... no
checking iconv.h presence... no
checking for iconv.h... no
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking execinfo.h usability... no
checking execinfo.h presence... no
checking for execinfo.h... no
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... no
checking for srandom... yes
checking for getopt... yes
checking for gethostbyname_r... yes
checking for which type of gethostbyname_r... 6
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

Re: src compiling failed... dont know why =(

2008-12-16 Thread Aldo Zavala
[output]
radius# gmake bindir=/usr/local/kannel install
/usr/bin/install -c -d /usr/local/kannel
for prog in wmlscript/wmlsc wmlscript/wmlsdasm utils/seewbmp utils/mtbatch 
gw-config; do \
/usr/bin/install -c $prog \
/usr/local/kannel/`basename $prog`; \
done
test -r /usr/local/kannel/gw-config || \
ln -sf gw-config /usr/local/kannel/gw-config
/usr/bin/install -c -d /usr/local/sbin
for prog in gw/bearerbox gw/smsbox gw/wapbox utils/run_kannel_box; do \
/usr/bin/install -c $prog \
/usr/local/sbin/`basename $prog`; \
done
/usr/bin/install -c -d /usr/local/share/man/man1
/usr/bin/install -c utils/seewbmp.1 utils/mtbatch.1 wmlscript/wmlsc.1 
wmlscript/wmlsdasm.1 /usr/local/share/man/man1
/usr/bin/install -c -d /usr/local/share/man/man8
/usr/bin/install -c gw/kannel.8 utils/run_kannel_box.8 /usr/local/share/man/man8
/usr/bin/install -c -d /usr/local/include/kannel/gwlib
/usr/bin/install -c -m 644 ./gwlib/*.h /usr/local/include/kannel/gwlib
/usr/bin/install -c -m 644 ./gwlib/*.def /usr/local/include/kannel/gwlib
/usr/bin/install -c -d /usr/local/include/kannel/gw
/usr/bin/install -c -m 644 ./gw/*.h /usr/local/include/kannel/gw
/usr/bin/install -c -m 644 ./gw/*.def /usr/local/include/kannel/gw
/usr/bin/install -c -d /usr/local/include/kannel/gw/smsc
/usr/bin/install -c -m 644 ./gw/smsc/*.h /usr/local/include/kannel/gw/smsc
/usr/bin/install -c -m 644 ./gw/smsc/*.def /usr/local/include/kannel/gw/smsc
/usr/bin/install -c -d /usr/local/include/kannel/wap
/usr/bin/install -c -m 644 ./wap/*.h /usr/local/include/kannel/wap
/usr/bin/install -c -m 644 ./wap/*.def /usr/local/include/kannel/wap
/usr/bin/install -c -m 644 gw-config.h /usr/local/include/kannel
/usr/bin/install -c -d /usr/local/lib/kannel
/usr/bin/install -c -m 644 libgwlib.a /usr/local/lib/kannel
/usr/bin/install -c -m 644 libgw.a /usr/local/lib/kannel
/usr/bin/install -c -m 644 libwap.a /usr/local/lib/kannel
[/output]


I binded the gmake to this dir: /usr/local/kannel that is what I got on that 
dir after the gmake install

[output]
radius# ls -lG /usr/local/kannel
total 2114
-rwxr-xr-x  1 root  wheel 704 Dec 16 08:27 gw-config
-rwxr-xr-x  1 root  wheel  582226 Dec 16 08:27 mtbatch
-rwxr-xr-x  1 root  wheel   15138 Dec 16 08:27 seewbmp
-rwxr-xr-x  1 root  wheel  737759 Dec 16 08:27 wmlsc
-rwxr-xr-x  1 root  wheel  740701 Dec 16 08:27 wmlsdasm
[/output]

I also noticed that there are no /usr/local/etc/rc.d/kannel file in this 
kannel installation, how should I start the daemons and even how should I set 
them to autostart when system boots? How can I know if the 
installation/compiling was successful?

Many Thanks, 




- Original Message -
From: preeteesh kakkar
[mailto:preeteesh.kak...@gmail.com]
To: Aldo Zavala
[mailto:a...@cleartalk.net]
Cc: Nikos Balkanas [mailto:nbalka...@gmail.com],
users@kannel.org
Sent: Tue, 16 Dec 2008 02:00:47 -0700
Subject: Re: src
compiling failed... dont know why =(


 Try using gmake instead of make and tell me if it works or not?
 



Re: src compiling failed... dont know why =(

2008-12-16 Thread Aldo Zavala
Hello, does anybody have a working release of Kannel running on FreeBSD 7 ?



Re: src compiling failed... dont know why =(

2008-12-16 Thread Nikos Balkanas
If I understand you correctly you want the init scripts for kannel. Try 
configure --enable-start-stop-daemon


BR,
Nikos
- Original Message - 
From: Aldo Zavala a...@cleartalk.net

To: preeteesh kakkar preeteesh.kak...@gmail.com
Cc: Nikos Balkanas nbalka...@gmail.com; users@kannel.org
Sent: Tuesday, December 16, 2008 6:24 PM
Subject: Re: src compiling failed... dont know why =(


[output]
radius# gmake bindir=/usr/local/kannel install
/usr/bin/install -c -d /usr/local/kannel
for prog in wmlscript/wmlsc wmlscript/wmlsdasm utils/seewbmp utils/mtbatch 
gw-config; do \

   /usr/bin/install -c $prog \
   /usr/local/kannel/`basename $prog`; \
   done
test -r /usr/local/kannel/gw-config || \
   ln -sf gw-config /usr/local/kannel/gw-config
/usr/bin/install -c -d /usr/local/sbin
for prog in gw/bearerbox gw/smsbox gw/wapbox utils/run_kannel_box; do \
   /usr/bin/install -c $prog \
   /usr/local/sbin/`basename $prog`; \
   done
/usr/bin/install -c -d /usr/local/share/man/man1
/usr/bin/install -c utils/seewbmp.1 utils/mtbatch.1 wmlscript/wmlsc.1 
wmlscript/wmlsdasm.1 /usr/local/share/man/man1

/usr/bin/install -c -d /usr/local/share/man/man8
/usr/bin/install -c gw/kannel.8 utils/run_kannel_box.8 
/usr/local/share/man/man8

/usr/bin/install -c -d /usr/local/include/kannel/gwlib
/usr/bin/install -c -m 644 ./gwlib/*.h /usr/local/include/kannel/gwlib
/usr/bin/install -c -m 644 ./gwlib/*.def /usr/local/include/kannel/gwlib
/usr/bin/install -c -d /usr/local/include/kannel/gw
/usr/bin/install -c -m 644 ./gw/*.h /usr/local/include/kannel/gw
/usr/bin/install -c -m 644 ./gw/*.def /usr/local/include/kannel/gw
/usr/bin/install -c -d /usr/local/include/kannel/gw/smsc
/usr/bin/install -c -m 644 ./gw/smsc/*.h /usr/local/include/kannel/gw/smsc
/usr/bin/install -c -m 644 ./gw/smsc/*.def /usr/local/include/kannel/gw/smsc
/usr/bin/install -c -d /usr/local/include/kannel/wap
/usr/bin/install -c -m 644 ./wap/*.h /usr/local/include/kannel/wap
/usr/bin/install -c -m 644 ./wap/*.def /usr/local/include/kannel/wap
/usr/bin/install -c -m 644 gw-config.h /usr/local/include/kannel
/usr/bin/install -c -d /usr/local/lib/kannel
/usr/bin/install -c -m 644 libgwlib.a /usr/local/lib/kannel
/usr/bin/install -c -m 644 libgw.a /usr/local/lib/kannel
/usr/bin/install -c -m 644 libwap.a /usr/local/lib/kannel
[/output]


I binded the gmake to this dir: /usr/local/kannel that is what I got on 
that dir after the gmake install


[output]
radius# ls -lG /usr/local/kannel
total 2114
-rwxr-xr-x  1 root  wheel 704 Dec 16 08:27 gw-config
-rwxr-xr-x  1 root  wheel  582226 Dec 16 08:27 mtbatch
-rwxr-xr-x  1 root  wheel   15138 Dec 16 08:27 seewbmp
-rwxr-xr-x  1 root  wheel  737759 Dec 16 08:27 wmlsc
-rwxr-xr-x  1 root  wheel  740701 Dec 16 08:27 wmlsdasm
[/output]

I also noticed that there are no /usr/local/etc/rc.d/kannel file in this 
kannel installation, how should I start the daemons and even how should I 
set them to autostart when system boots? How can I know if the 
installation/compiling was successful?


Many Thanks,




- Original Message -
From: preeteesh kakkar
[mailto:preeteesh.kak...@gmail.com]
To: Aldo Zavala
[mailto:a...@cleartalk.net]
Cc: Nikos Balkanas [mailto:nbalka...@gmail.com],
users@kannel.org
Sent: Tue, 16 Dec 2008 02:00:47 -0700
Subject: Re: src
compiling failed... dont know why =(



Try using gmake instead of make and tell me if it works or not?






Re: src compiling failed... dont know why =(

2008-12-16 Thread Aldo

hello, how can I just undo or delete all what gmake install has installed?
I think I will back to the port version... :S I found harder compiling 
it from csv release


Nikos Balkanas wrote:
If I understand you correctly you want the init scripts for kannel. 
Try configure --enable-start-stop-daemon


BR,
Nikos
- Original Message - From: Aldo Zavala a...@cleartalk.net
To: preeteesh kakkar preeteesh.kak...@gmail.com
Cc: Nikos Balkanas nbalka...@gmail.com; users@kannel.org
Sent: Tuesday, December 16, 2008 6:24 PM
Subject: Re: src compiling failed... dont know why =(


[output]
radius# gmake bindir=/usr/local/kannel install
/usr/bin/install -c -d /usr/local/kannel
for prog in wmlscript/wmlsc wmlscript/wmlsdasm utils/seewbmp 
utils/mtbatch gw-config; do \

   /usr/bin/install -c $prog \
   /usr/local/kannel/`basename $prog`; \
   done
test -r /usr/local/kannel/gw-config || \
   ln -sf gw-config /usr/local/kannel/gw-config
/usr/bin/install -c -d /usr/local/sbin
for prog in gw/bearerbox gw/smsbox gw/wapbox utils/run_kannel_box; do \
   /usr/bin/install -c $prog \
   /usr/local/sbin/`basename $prog`; \
   done
/usr/bin/install -c -d /usr/local/share/man/man1
/usr/bin/install -c utils/seewbmp.1 utils/mtbatch.1 wmlscript/wmlsc.1 
wmlscript/wmlsdasm.1 /usr/local/share/man/man1

/usr/bin/install -c -d /usr/local/share/man/man8
/usr/bin/install -c gw/kannel.8 utils/run_kannel_box.8 
/usr/local/share/man/man8

/usr/bin/install -c -d /usr/local/include/kannel/gwlib
/usr/bin/install -c -m 644 ./gwlib/*.h /usr/local/include/kannel/gwlib
/usr/bin/install -c -m 644 ./gwlib/*.def /usr/local/include/kannel/gwlib
/usr/bin/install -c -d /usr/local/include/kannel/gw
/usr/bin/install -c -m 644 ./gw/*.h /usr/local/include/kannel/gw
/usr/bin/install -c -m 644 ./gw/*.def /usr/local/include/kannel/gw
/usr/bin/install -c -d /usr/local/include/kannel/gw/smsc
/usr/bin/install -c -m 644 ./gw/smsc/*.h 
/usr/local/include/kannel/gw/smsc
/usr/bin/install -c -m 644 ./gw/smsc/*.def 
/usr/local/include/kannel/gw/smsc

/usr/bin/install -c -d /usr/local/include/kannel/wap
/usr/bin/install -c -m 644 ./wap/*.h /usr/local/include/kannel/wap
/usr/bin/install -c -m 644 ./wap/*.def /usr/local/include/kannel/wap
/usr/bin/install -c -m 644 gw-config.h /usr/local/include/kannel
/usr/bin/install -c -d /usr/local/lib/kannel
/usr/bin/install -c -m 644 libgwlib.a /usr/local/lib/kannel
/usr/bin/install -c -m 644 libgw.a /usr/local/lib/kannel
/usr/bin/install -c -m 644 libwap.a /usr/local/lib/kannel
[/output]


I binded the gmake to this dir: /usr/local/kannel that is what I got 
on that dir after the gmake install


[output]
radius# ls -lG /usr/local/kannel
total 2114
-rwxr-xr-x  1 root  wheel 704 Dec 16 08:27 gw-config
-rwxr-xr-x  1 root  wheel  582226 Dec 16 08:27 mtbatch
-rwxr-xr-x  1 root  wheel   15138 Dec 16 08:27 seewbmp
-rwxr-xr-x  1 root  wheel  737759 Dec 16 08:27 wmlsc
-rwxr-xr-x  1 root  wheel  740701 Dec 16 08:27 wmlsdasm
[/output]

I also noticed that there are no /usr/local/etc/rc.d/kannel file in 
this kannel installation, how should I start the daemons and even how 
should I set them to autostart when system boots? How can I know if 
the installation/compiling was successful?


Many Thanks,




- Original Message -
From: preeteesh kakkar
[mailto:preeteesh.kak...@gmail.com]
To: Aldo Zavala
[mailto:a...@cleartalk.net]
Cc: Nikos Balkanas [mailto:nbalka...@gmail.com],
users@kannel.org
Sent: Tue, 16 Dec 2008 02:00:47 -0700
Subject: Re: src
compiling failed... dont know why =(



Try using gmake instead of make and tell me if it works or not?











src compiling failed... dont know why =(

2008-12-15 Thread Aldo Zavala
Hello, I found buggy the FreeBSD Kannel port, so I tried to install it from 
latest source, I am following the INSTALL instructions, and I get this error 
when hit make command, do you guys know what this means? or how can I fix 
this?

[output]
radius# make
ar rc libgw.a
ranlib libgw.a
ar rc libwmlscript.a
ranlib libwmlscript.a
ar rc libwap.a
ranlib libwap.a
ar rc  libgwlib.a
ranlib libgwlib.a
gcc -D_REENTRANT=1 -I. -Igw -g -O2 -pthread -I/usr/local/include/libxml2 
-I/usr/local/include -I/usr/include/openssl -o wmlscript/wmlsc.o -c 
wmlscript/wmlsc.c
gcc -D_REENTRANT=1 -I. -Igw -g -O2 -pthread -I/usr/local/include/libxml2 
-I/usr/local/include -I/usr/include/openssl -o wmlscript/wmlsdasm.o -c 
wmlscript/wmlsdasm.c
gcc -D_REENTRANT=1 -I. -Igw -g -O2 -pthread -I/usr/local/include/libxml2 
-I/usr/local/include -I/usr/include/openssl -o utils/seewbmp.o -c 
utils/seewbmp.c
gcc -D_REENTRANT=1 -I. -Igw -g -O2 -pthread -I/usr/local/include/libxml2 
-I/usr/local/include -I/usr/include/openssl -o utils/mtbatch.o -c 
utils/mtbatch.c
gcc -D_REENTRANT=1 -I. -Igw -g -O2 -pthread -I/usr/local/include/libxml2 
-I/usr/local/include -I/usr/include/openssl -o gw/bearerbox.o -c gw/bearerbox.c
gcc -D_REENTRANT=1 -I. -Igw -g -O2 -pthread -I/usr/local/include/libxml2 
-I/usr/local/include -I/usr/include/openssl -o gw/smsbox.o -c gw/smsbox.c
gcc -D_REENTRANT=1 -I. -Igw -g -O2 -pthread -I/usr/local/include/libxml2 
-I/usr/local/include -I/usr/include/openssl -o gw/wapbox.o -c gw/wapbox.c
gcc -D_REENTRANT=1 -I. -Igw -g -O2 -pthread -I/usr/local/include/libxml2 
-I/usr/local/include -I/usr/include/openssl -o utils/run_kannel_box.o -c 
utils/run_kannel_box.c
gcc -D_REENTRANT=1 -I. -Igw -g -O2 -pthread -I/usr/local/include/libxml2 
-I/usr/local/include -I/usr/include/openssl  -o wmlscript/wmlsc 
wmlscript/wmlsc.o libgw.a libwmlscript.a libwap.a libgwlib.a -lssl -lrt -lm  
-lkse -L/usr/local/lib -lxml2 -lz -L/usr/local/lib -liconv -lm -L/usr/lib 
-lcrypto -lssl
wmlscript/wmlsc.o(.text+0x125): In function `main':
wmlscript/wmlsc.c:177: undefined reference to `ws_create'
wmlscript/wmlsc.o(.text+0x1ea):wmlscript/wmlsc.c:236: undefined reference to 
`ws_compile_data'
wmlscript/wmlsc.o(.text+0x236):wmlscript/wmlsc.c:248: undefined reference to 
`ws_free_byte_code'
wmlscript/wmlsc.o(.text+0x32c):wmlscript/wmlsc.c:251: undefined reference to 
`ws_compile_file'
wmlscript/wmlsc.o(.text+0x341):wmlscript/wmlsc.c:267: undefined reference to 
`ws_destroy'
wmlscript/wmlsc.o(.text+0x3f1):wmlscript/wmlsc.c:260: undefined reference to 
`ws_result_to_string'
wmlscript/wmlsc.o(.text+0x4f7): In function `pragma_meta':
wmlscript/wmlsc.c:298: undefined reference to `ws_utf8_to_latin1'
wmlscript/wmlsc.o(.text+0x511):wmlscript/wmlsc.c:299: undefined reference to 
`ws_utf8_to_latin1'
wmlscript/wmlsc.o(.text+0x52e):wmlscript/wmlsc.c:300: undefined reference to 
`ws_utf8_to_latin1'
wmlscript/wmlsc.o(.text+0x5ac):wmlscript/wmlsc.c:313: undefined reference to 
`ws_utf8_free_data'
wmlscript/wmlsc.o(.text+0x5b4):wmlscript/wmlsc.c:314: undefined reference to 
`ws_utf8_free_data'
wmlscript/wmlsc.o(.text+0x5c3):wmlscript/wmlsc.c:315: undefined reference to 
`ws_utf8_free_data'
*** Error code 1

Stop in /gateway-1.4.1.
[/output]


Thanks, 

Aldo Zavala



Re: src compiling failed... dont know why =(

2008-12-15 Thread Nikos Balkanas

What is the output of your configure script?

- Original Message - 
From: Aldo Zavala a...@cleartalk.net

To: users@kannel.org
Sent: Monday, December 15, 2008 9:16 PM
Subject: src compiling failed... dont know why =(


Hello, I found buggy the FreeBSD Kannel port, so I tried to install it from 
latest source, I am following the INSTALL instructions, and I get this error 
when hit make command, do you guys know what this means? or how can I fix 
this?


[output]
radius# make
ar rc libgw.a
ranlib libgw.a
ar rc libwmlscript.a
ranlib libwmlscript.a
ar rc libwap.a
ranlib libwap.a
ar rc  libgwlib.a
ranlib libgwlib.a
gcc -D_REENTRANT=1 -I. -Igw -g -O2 -pthread -I/usr/local/include/libxml2 -I/usr/local/include 
-I/usr/include/openssl -o wmlscript/wmlsc.o -c wmlscript/wmlsc.c
gcc -D_REENTRANT=1 -I. -Igw -g -O2 -pthread -I/usr/local/include/libxml2 -I/usr/local/include 
-I/usr/include/openssl -o wmlscript/wmlsdasm.o -c wmlscript/wmlsdasm.c
gcc -D_REENTRANT=1 -I. -Igw -g -O2 -pthread -I/usr/local/include/libxml2 -I/usr/local/include 
-I/usr/include/openssl -o utils/seewbmp.o -c utils/seewbmp.c
gcc -D_REENTRANT=1 -I. -Igw -g -O2 -pthread -I/usr/local/include/libxml2 -I/usr/local/include 
-I/usr/include/openssl -o utils/mtbatch.o -c utils/mtbatch.c
gcc -D_REENTRANT=1 -I. -Igw -g -O2 -pthread -I/usr/local/include/libxml2 -I/usr/local/include 
-I/usr/include/openssl -o gw/bearerbox.o -c gw/bearerbox.c
gcc -D_REENTRANT=1 -I. -Igw -g -O2 -pthread -I/usr/local/include/libxml2 -I/usr/local/include 
-I/usr/include/openssl -o gw/smsbox.o -c gw/smsbox.c
gcc -D_REENTRANT=1 -I. -Igw -g -O2 -pthread -I/usr/local/include/libxml2 -I/usr/local/include 
-I/usr/include/openssl -o gw/wapbox.o -c gw/wapbox.c
gcc -D_REENTRANT=1 -I. -Igw -g -O2 -pthread -I/usr/local/include/libxml2 -I/usr/local/include 
-I/usr/include/openssl -o utils/run_kannel_box.o -c utils/run_kannel_box.c
gcc -D_REENTRANT=1 -I. -Igw -g -O2 -pthread -I/usr/local/include/libxml2 -I/usr/local/include 
-I/usr/include/openssl  -o wmlscript/wmlsc wmlscript/wmlsc.o libgw.a 
libwmlscript.a libwap.a 
libgwlib.a -lssl -lrt -lm  -lkse -L/usr/local/lib -lxml2 -lz -L/usr/local/lib 
-liconv -lm -L/usr/lib -lcrypto -lssl

wmlscript/wmlsc.o(.text+0x125): In function `main':
wmlscript/wmlsc.c:177: undefined reference to `ws_create'
wmlscript/wmlsc.o(.text+0x1ea):wmlscript/wmlsc.c:236: undefined reference to 
`ws_compile_data'
wmlscript/wmlsc.o(.text+0x236):wmlscript/wmlsc.c:248: undefined reference to 
`ws_free_byte_code'
wmlscript/wmlsc.o(.text+0x32c):wmlscript/wmlsc.c:251: undefined reference to 
`ws_compile_file'
wmlscript/wmlsc.o(.text+0x341):wmlscript/wmlsc.c:267: undefined reference to 
`ws_destroy'
wmlscript/wmlsc.o(.text+0x3f1):wmlscript/wmlsc.c:260: undefined reference to 
`ws_result_to_string'

wmlscript/wmlsc.o(.text+0x4f7): In function `pragma_meta':
wmlscript/wmlsc.c:298: undefined reference to `ws_utf8_to_latin1'
wmlscript/wmlsc.o(.text+0x511):wmlscript/wmlsc.c:299: undefined reference to 
`ws_utf8_to_latin1'
wmlscript/wmlsc.o(.text+0x52e):wmlscript/wmlsc.c:300: undefined reference to 
`ws_utf8_to_latin1'
wmlscript/wmlsc.o(.text+0x5ac):wmlscript/wmlsc.c:313: undefined reference to 
`ws_utf8_free_data'
wmlscript/wmlsc.o(.text+0x5b4):wmlscript/wmlsc.c:314: undefined reference to 
`ws_utf8_free_data'
wmlscript/wmlsc.o(.text+0x5c3):wmlscript/wmlsc.c:315: undefined reference to 
`ws_utf8_free_data'

*** Error code 1

Stop in /gateway-1.4.1.
[/output]


Thanks,

Aldo Zavala




Re: src compiling failed... dont know why =(

2008-12-15 Thread Nikos Balkanas
I think I see your problem. You seem to be missing libiconv. You need to get 
it for kannel. I am surprised that configure didn't fail because of that. 
Also it wouldn't heart to get pcre.


BTW, 1.4.1 is ~4 years old. Download the latest CVS from the site.

BR,
Nikos

- Original Message - 
From: Aldo Zavala a...@cleartalk.net

To: Nikos Balkanas nbalka...@gmail.com; users@kannel.org
Sent: Monday, December 15, 2008 9:38 PM
Subject: Re: src compiling failed... dont know why =(


Here the output of the ./configure  , thanks for the reply.
[output]
radius# ./configure

Configuring for Kannel gateway version 1.4.1 ...

Running system checks ...
checking build system type... i386-unknown-freebsd7.0
checking host system type... i386-unknown-freebsd7.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 ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for bison... no
checking for byacc... byacc
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for convert... no
checking for perl... /usr/bin/perl
checking for pthread_exit in -lc_r... no
checking for pthread_exit in -lkse... yes
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 for _LARGE_FILES value needed for large files... no
checking how to run the C preprocessor... gcc -E
checking for egrep... 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 for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for long long... yes
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... no
checking for inet_ntop in -lbind... no
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... no
checking iconv.h presence... no
checking for iconv.h... no
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking execinfo.h usability... no
checking execinfo.h presence... no
checking for execinfo.h... no
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... no
checking for srandom... yes
checking for getopt... yes
checking for gethostbyname_r... yes
checking for which type of gethostbyname_r... 6
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... yes
checking for pthread_rwlock support... yes
checking for sem_init in -lrt... yes
checking for semaphore support... yes

Checking for libxml2 support ...
checking for xml2