/ Zope / Apsis / Pound Mailing List / Archive / 2018 / 2018-01 / Pound Compiled with Openssl1.1

[ << ] [ >> ]

[ apache/modsecurity in front of load balancer / ... ] [ OCSP stapling support for pound / Filidor Wiese ... ]

Pound Compiled with Openssl1.1
Emilio Campos <emilio.campos.martin(at)gmail.com>
2018-01-04 16:52:51 [ FULL ]
Hi guys, we would like to compile pound 2.7 with latest openssl version
1.1, but at the moment of the compilation it fails. It seems like pound2.7
uses some macros not used anymore in Openssl1.1.

For example:
config.c: In function ‘parse_service’:
config.c:723:25: warning: implicit declaration of function ‘LHM_lh_new’;
did you mean ‘lh_new’? [-Wimplicit-function-declaration]
     if((res->sessions = LHM_lh_new(TABNODE, t)) == NULL)
                         ^~~~~~~~~~
                         lh_new
config.c:723:36: error: expected expression before ‘TABNODE’
     if((res->sessions = LHM_lh_new(TABNODE, t)) == NULL)
                                    ^~~~~~~
<builtin>: recipe for target 'config.o' failed
make: *** [config.o] Error 1


Someone got it, if not, is there some plan to support this?

BTW it seems like we are not the only ones with this problem?
http://www.apsis.ch/pound/pound_list/archive/2017/2017-02/1485991957000#1485991957000

Thanks!
Attachments:  
text.html text/html 2467 Bytes

RE: [Pound Mailing List] Pound Compiled with Openssl1.1
"Jacob Anderson" <jwa(at)beyond-ordinary.com>
2018-01-04 19:46:15 [ FULL ]
What if you add the macro back into config.h:

# define LHM_lh_new(type, name) \
  ((LHASH_OF(type) *)lh_new(LHASH_HASH_FN(name), LHASH_COMP_FN(name)))

Here's where it seems to have been removed:

https://mta.openssl.org/pipermail/openssl-commits/2016-January/002778.html

seems to be equivalent to:

+    static ossl_inline LHASH_OF(type) * \
+        lh_##type##_new(unsigned long (*hfn)(const type *), \
+                        int (*cfn)(const type *, const type *)) \
+    { 
+        return (LHASH_OF(type) *) \
+            lh_new((LHASH_HASH_FN_TYPE) hfn, (LHASH_COMP_FN_TYPE)cfn); \
+    } 




-----Original Message-----
From: Emilio Campos [mailto:emilio.campos.martin(at)gmail.com] 
Sent: Thursday, January 4, 2018 7:53 AM
To: pound(at)apsis.ch
Subject: [Pound Mailing List] Pound Compiled with Openssl1.1

Hi guys, we would like to compile pound 2.7 with latest openssl version 1.1,
but at the moment of the compilation it fails. It seems like pound2.7 uses some
macros not used anymore in Openssl1.1.

For example:
config.c: In function ‘parse_service’:
config.c:723:25: warning: implicit declaration of function ‘LHM_lh_new’;
did you mean ‘lh_new’? [-Wimplicit-function-declaration]
     if((res->sessions = LHM_lh_new(TABNODE, t)) == NULL)
                         ^~~~~~~~~~
                         lh_new
config.c:723:36: error: expected expression before ‘TABNODE’
     if((res->sessions = LHM_lh_new(TABNODE, t)) == NULL)
                                    ^~~~~~~
<builtin>: recipe for target 'config.o' failed
make: *** [config.o] Error 1




Someone got it, if not, is there some plan to support this? 

BTW it seems like we are not the only ones with this problem? 
http://www.apsis.ch/pound/pound_list/archive/2017/2017-02/1485991957000#1485991957000


Thanks!

Re: [Pound Mailing List] Pound Compiled with Openssl1.1
Philipp Grau <phgrau(at)ZEDAT.FU-Berlin.DE>
2018-01-08 21:45:38 [ FULL ]
Hello, 

* Jacob Anderson <jwa(at)beyond-ordinary.com> [04.01.18 20:04]:[...]

Does this fix all problems? To me it does not. While trying to complie
against OpenSSL 1.1.0f I run in more problems with the lhash stuff (at
least unfixable for me) and the RSA key stuff which I was able to fix
(perhaps).

Does anyone have a working version of pound (v2.8+), compilable with
OpenSSL 1.1.0+

Kind regards,

Philipp

MailBoxer