re: when we compile the latest svn code it fails
Grant Saicom <[email protected]> Fri, 12 Feb 2016 09:50:50 +0200
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi
I came across the same issue this morning.
./configure --with-mysql --enable-start-stop-daemon -enable-ssl
"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 "
I added the following packages into my server and it compiled afterwards: libssh-dev libssl-dev
Not sure if you dealt with it the same way.
Regards
G
--------------------------
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: [hidden email] <http://kannel.6189.n7.nabble.com/user/SendEmail.jtp?type=node&node=31864&i=0>
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:[hidden email] <http://kannel.6189.n7.nabble.com/user/SendEmail.jtp?type=node&node=31864&i=1>] On Behalf Of [hidden email] <http://kannel.6189.n7.nabble.com/user/SendEmail.jtp?type=node&node=31864&i=2>
Sent: 04 January 2016 04:15 PM
To: Hillel
Cc: [hidden email] <http://kannel.6189.n7.nabble.com/user/SendEmail.jtp?type=node&node=31864&i=3>
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 [hidden email] <http://kannel.6189.n7.nabble.com/user/SendEmail.jtp?type=node&node=31864&i=4>:
Hi Alex,
Based on https://redmine.kannel.org/projects/kannel/repository <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