Hi Alex,
Before the latest changes I was able to compile with these configure options
below:
I use: ./configure --with-defaults=speed --with-pgsql
--enable-start-stop-daemon --enable-ssl --disable-localtime --enable-cookies
--with-pgsql-dir=/usr/pgsql-9.4
Then: make;make install
If I add to gw-config.h:
/* Define if you have and want to use the ssl library (-lssl) */
#define HAVE_LIBSSL
I now get the error from make:
In file included from ./gwlib/gwlib.h:94:0,
from ./wap/wap_events.h:68,
from gw/wap_push_ppg.h:79,
from gw/wap_push_ppg.c:79:
./gwlib/conn.h:291:26: fatal error: openssl/x509.h: No such file or directory
#include <openssl/x509.h>
^
compilation terminated.
make: *** [gw/wap_push_ppg.o] Error 1
gcc -std=gnu99 -D_REENTRANT=1 -I. -Igw -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
-D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/pgsql-9.4/include -o
gw/wap_push_ppg.o -c gw/wap_push_ppg.c
In file included from ./gwlib/gwlib.h:94:0,
from ./wap/wap_events.h:68,
from gw/wap_push_ppg.h:79,
from gw/wap_push_ppg.c:79:
./gwlib/conn.h:291:26: fatal error: openssl/x509.h: No such file or directory
#include <openssl/x509.h>
^
compilation terminated.
make: *** [gw/wap_push_ppg.o] Error 1
If I also add to gw-config.h:
/* Define if you have and want to use the ssl library (-lssl) */
#define HAVE_LIBSSL
I now get the error from make:
gw/wapbox.c:213:23: error: missing expression between '(' and ')'
#if (HAVE_WTLS_OPENSSL)
^
gw/wapbox.c:744:23: error: missing expression between '(' and ')'
#if (HAVE_WTLS_OPENSSL)
^
gw/wapbox.c:816:23: error: missing expression between '(' and ')'
#if (HAVE_WTLS_OPENSSL)
^
gwlib/pki.c:66:23: error: missing expression between '(' and ')'
#if (HAVE_WTLS_OPENSSL)
^
wap/wtls-secmgr.c:79:23: error: missing expression between '(' and ')'
#if (HAVE_WTLS_OPENSSL)
^
gcc -std=gnu99 -D_REENTRANT=1 -I. -Igw -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
-D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/pgsql-9.4/include -o
gw/wap_push_ppg.o -c gw/wap_push_ppg.c
In file included from ./gwlib/gwlib.h:94:0,
from ./wap/wap_events.h:68,
from gw/wap_push_ppg.h:79,
from gw/wap_push_ppg.c:79:
./gwlib/conn.h:291:26: fatal error: openssl/x509.h: No such file or directory
#include <openssl/x509.h>
^
compilation terminated.
make: *** [gw/wap_push_ppg.o] Error 1
gcc -std=gnu99 -D_REENTRANT=1 -I. -Igw -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
-D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/pgsql-9.4/include -o
gw/wap_push_ppg.o -c gw/wap_push_ppg.c
In file included from ./gwlib/gwlib.h:94:0,
from ./wap/wap_events.h:68,
from gw/wap_push_ppg.h:79,
from gw/wap_push_ppg.c:79:
./gwlib/conn.h:291:26: fatal error: openssl/x509.h: No such file or directory
#include <openssl/x509.h>
^
compilation terminated.
make: *** [gw/wap_push_ppg.o] Error 1
Any suggestions on how to compile the latest Kannel?
Kind Regards
Hillel Bilman
Manager eCommunicate
mailto: [email protected]
Cell: 083-2300002
Landline: 011-443-6164
Fax: 088-011-443-6164
Mobile Wallets - .mobi Sites – Mobile Apps(Android, iPhone, Blackberry, Nokia)
- Premium Rated SMSs and short codes - SMS competitions and campaigns – Lead
Generation - opt-in subscription Billing – MMS campaigns - USSD campaigns - WAP
- Outlook SMS – Bulk SMS and Bulk Email – Email 2 SMS 2 Email - Developer Kit
for Mobile Services integration - Voice Over IP services
From: Alexander Malysh [mailto:[email protected]] On Behalf Of
[email protected]
Sent: 04 January 2016 04:15 PM
To: Hillel
Cc: [email protected]
Subject: Re: when we compile the latest svn code it fails
Hi,
I’m not sure why it breaks by you because by me it compiles without any issue.
Please check if HAVE_LIBSSL is enabled in gw-config.h
Thanks,
Alex
Am 30.12.2015 um 22:01 schrieb [email protected]:
Hi Alex,
Based on https://redmine.kannel.org/projects/kannel/repository
You recently added "test/test_http.c: implemented cmd line option to provide
CA file."
When we compile the latest code we get the error:
test/test_http.o: In function `main':
/home/kannel/gateway/test/test_http.c:456: undefined reference to
`conn_use_global_trusted_ca_file'
collect2: error: ld returned 1 exit status
make: *** [test/test_http] Error 1
Any idea why this is failing? Do we need to add a new configuration option
to get this to work?
Thanks to you and the other developers for all the Kannel improvements.
We wish you and the other Kannel developers a wonderful 2016