re: when we compile the latest svn code it fails

2016-02-11 Thread Grant Saicom
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  
  ^ 
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  
  ^ 
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  
  ^ 
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  
  ^ 
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=31864=0> 
Cell: 083-232 
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=31864=1>] 
On Behalf Of [hidden email] 
<http://kannel.6189.n7.nabble.com/user/SendEmail.jtp?type=node=31864=2> 
Sent: 04 January 2016 04:15 PM 
To: Hillel 
Cc: [hidden email] 
<http://kannel.6189.n7.nabble.com/user/SendEmail.jtp?type=node=31864=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

Re: when we compile the latest svn code it fails

2016-02-01 Thread amalysh
Hi Hillel,

you are welcome.

Alex

> Am 31.01.2016 um 22:25 schrieb hbil...@ecommunicate.biz:
> 
> Hi Alex,
> 
> We resolved the issue and found that the problem was openssl-devel.x86_64 as
> not installed.
> Once we installed it, the latest Kannel SVN was able to compile.
> 
> Thanks for your response, as it made us recheck our environment.
> 
> Regards
> 
> --
> 
> Date: Fri, 15 Jan 2016 16:32:24 +0200
> From: <hbil...@ecommunicate.biz>
> To: <amal...@kannel.org>
> Cc: devel@kannel.org
> Subject: RE: when we compile the latest svn code it fails
> Message-ID:
>   
>  yFwBAA==@ecommunicate.co.za>
>   
> Content-Type: text/plain; charset="utf-8"
> 
> 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 
>  ^
> 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 
>  ^
> 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 
>  ^
> 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 
>  ^
> 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: hbil...@ecommunicate.co.za
> Cell: 083-232
> 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 

RE: when we compile the latest svn code it fails

2016-01-31 Thread hbilman
Hi Alex,

We resolved the issue and found that the problem was openssl-devel.x86_64 as
not installed.
Once we installed it, the latest Kannel SVN was able to compile.

Thanks for your response, as it made us recheck our environment.

Regards

--

Date: Fri, 15 Jan 2016 16:32:24 +0200
From: <hbil...@ecommunicate.biz>
To: <amal...@kannel.org>
Cc: devel@kannel.org
Subject: RE: when we compile the latest svn code it fails
Message-ID:



Content-Type: text/plain;   charset="utf-8"

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 
  ^
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 
  ^
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 
  ^
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 
  ^
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: hbil...@ecommunicate.co.za
Cell: 083-232
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:malys...@gmail.com] On Behalf Of
amal...@kannel.org
Sent: 04 January 2016 04:15 PM
To: Hillel
Cc: devel@kannel.org
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 hbil...@ecommunicate.biz:

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/kan

RE: when we compile the latest svn code it fails

2016-01-15 Thread hbilman
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 
  ^
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 
  ^
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 
  ^
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 
  ^
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: hbil...@ecommunicate.co.za
Cell: 083-232
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:malys...@gmail.com] On Behalf Of 
amal...@kannel.org
Sent: 04 January 2016 04:15 PM
To: Hillel
Cc: devel@kannel.org
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 hbil...@ecommunicate.biz:

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





Re: when we compile the latest svn code it fails

2016-01-04 Thread amalysh
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 hbil...@ecommunicate.biz 
> :
> 
> 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
>