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:[email protected]] 
Sent: Thursday, January 4, 2018 7:53 AM
To: [email protected]
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!





--
To unsubscribe send an email with subject unsubscribe to [email protected].
Please contact [email protected] for questions.

Reply via email to