Hello,
I get below errors when I try to compile opensmppbox from source. Can
someone else please? ( I have already installed Kannel 1.5 with MySQL
support)
[root@smsbx opensmppbox]# make clean
Making clean in gw
make[1]: Entering directory `/usr/local/src/kannel/opensmppbox/gw'
rm -rf .libs _libs
rm -f opensmppbox opensmppbox
rm -f *.o
rm -f *.lo
make[1]: Leaving directory `/usr/local/src/kannel/opensmppbox/gw'
Making clean in .
make[1]: Entering directory `/usr/local/src/kannel/opensmppbox'
rm -rf .libs _libs
rm -f *.lo
make[1]: Leaving directory `/usr/local/src/kannel/opensmppbox'
[root@smsbx opensmppbox]#
[root@smsbx opensmppbox]#
[root@smsbx opensmppbox]#
[root@smsbx opensmppbox]#
[root@smsbx opensmppbox]#
[root@smsbx opensmppbox]#
[root@smsbx opensmppbox]#
[root@smsbx opensmppbox]#
[root@smsbx opensmppbox]#
[root@smsbx opensmppbox]#
[root@smsbx opensmppbox]#
[root@smsbx opensmppbox]# ./configure --prefix=/etc/kannel
--with-kannel-dir=/etc/kannel --with-mysql
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of
Makefiles... no
checking build system type... x86_64-redhat-linux-gnu
checking host system type... x86_64-redhat-linux-gnu
checking svn checkout revision... 77
Configuring for opensmppbox version svn-r77 ...
checking for style of include used by make... GNU
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 dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports
shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for working volatile... yes
checking whether closedir returns void... no
checking for error_at_line... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
Configuring PAM support ...
checking whether to compile with PAM support... checking whether to
compile with SSL support... trying /usr/include/openssl
Configuring DocBook support ...
checking for jade... no
checking for openjade... 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/dsssl/docbook-dsssl/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/dsssl/docbook-dsssl/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
/opt/local/lib/sgml/stylesheet/dsssl/docbook/nwalsh/html/docbook.dsl...
no
checking for
/opt/local/lib/sgml/stylesheets/nwalsh-modular/html/docbook.dsl... no
checking for /opt/local/share/dsssl/docbook-dsssl/html/docbook.dsl... no
checking for
/opt/local/share/sgml/docbook/dsssl-stylesheets-1.*/html/docbook.dsl...
no
checking for
/opt/local/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl... no
checking for
/opt/local/share/sgml/docbook/stylesheet/dsssl/modular/html/docbook.dsl...
no
checking for
/opt/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/dsssl/docbook-dsssl/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/dsssl/docbook-dsssl/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
checking for
/opt/local/lib/sgml/stylesheet/dsssl/docbook/nwalsh/print/docbook.dsl...
no
checking for
/opt/local/lib/sgml/stylesheets/nwalsh-modular/print/docbook.dsl... no
checking for
/opt/local/share/dsssl/docbook-dsssl/print/docbook.dsl... no
checking for
/opt/local/share/sgml/docbook/dsssl-stylesheets-1.*/print/docbook.dsl...
no
checking for
/opt/local/share/sgml/docbook/dsssl-stylesheets/print/docbook.dsl... no
checking for
/opt/local/share/sgml/docbook/stylesheet/dsssl/modular/print/docbook.dsl...
no
checking for
/opt/local/share/sgml/docbook/dsssl/modular/print/docbook.dsl... no
Not building documentation.
checking for Ct-Lib support... no
checking for FreeTDS Ct-Lib support... no
checking for gw-config... /etc/kannel/gw-config
checking Kannel version... svn-r5081
checking Kannel libs... -L/etc/kannel/lib/kannel -lgw -lwap -lgwlib
-lmysqlclient_r -lssl -ldl -lrt -lresolv -lnsl -lm -lpthread -lxml2 -lz
-lm -L/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../lib64 -lcrypto
-lssl -rdynamic -L/usr/lib64/mysql -lmysqlclient_r -lz -lpthread -lcrypt
-lnsl -lm -lpthread -lssl -lcrypto
checking Kannel includes... -I/etc/kannel/include/kannel -g -O2
-D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2
-Wall -I/usr/include/openssl -I/usr/include/mysql
checking for cfg_create in -lgwlib... yes
checking for Kannel's DB support... configure: creating ./config.status
config.status: creating Makefile
config.status: creating gw/Makefile
config.status: creating rpm/opensmppbox.spec
config.status: creating sb-config.h
config.status: sb-config.h is unchanged
config.status: executing depfiles commands
[root@smsbx opensmppbox]# make
make all-recursive
make[1]: Entering directory `/usr/local/src/kannel/opensmppbox'
Making all in gw
make[2]: Entering directory `/usr/local/src/kannel/opensmppbox/gw'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../gw -I../gw -g -O2
-D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/etc/kannel/include/kannel -g -O2
-D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2
-Wall -I/usr/include/openssl -I/usr/include/mysql -MT opensmppbox.o -MD
-MP -MF ".deps/opensmppbox.Tpo" -c -o opensmppbox.o opensmppbox.c; \
then mv -f ".deps/opensmppbox.Tpo" ".deps/opensmppbox.Po"; else
rm -f ".deps/opensmppbox.Tpo"; exit 1; fi
opensmppbox.c: In function a^send_pdua^:
opensmppbox.c:622: warning: passing argument 1 of a^smpp_pdu_dumpa^ from
incompatible pointer type
/etc/kannel/include/kannel/gw/smsc/smpp_pdu.h:239: note: expected
a^struct Octstr *a^ but argument is of type a^struct SMPP_PDU *a^
opensmppbox.c:622: error: too few arguments to function
a^smpp_pdu_dumpa^
opensmppbox.c: In function a^handle_pdua^:
opensmppbox.c:1513: warning: passing argument 1 of a^smpp_pdu_dumpa^
from
incompatible pointer type
/etc/kannel/include/kannel/gw/smsc/smpp_pdu.h:239: note: expected
a^struct Octstr *a^ but argument is of type a^struct SMPP_PDU *a^
opensmppbox.c:1513: error: too few arguments to function
a^smpp_pdu_dumpa^
opensmppbox.c: In function a^run_smppboxa^:
opensmppbox.c:2099: warning: cast from pointer to integer of
different size
opensmppbox.c: In function a^wait_for_connectionsa^:
opensmppbox.c:2156: warning: cast to pointer from integer of
different size
opensmppbox.c: In function a^smppboxc_runa^:
opensmppbox.c:2171: warning: cast from pointer to integer of
different size
make[2]: *** [opensmppbox.o] Error 1
make[2]: Leaving directory `/usr/local/src/kannel/opensmppbox/gw'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/kannel/opensmppbox'
make: *** [all] Error 2
[root@smsbx opensmppbox]#
What could be the problem?
Thank you,
Ali.