Hi Mahendra, sorry for late reply but you cam download a JSON from this
page https://deviceatlas.com/deviceatlas-haproxy-module
now they are compatible with the V3 api.
Kind regards.
On Wed, 20 Sept 2023 at 23:50, Mahendra Patil
wrote:
> *After installation haproxy not able to start , show below error*
>
> [root@govinda opt]# /opt/haproxy-ssl/sbin/haproxy -f
> /opt/haproxy-ssl/conf/haproxy.cfg
> [NOTICE] (42915) : haproxy version is 2.8.3-86e043a
> [NOTICE] (42915) : path to executable is /opt/haproxy-ssl/sbin/haproxy
> [ALERT](42915) : config : deviceatlas :
> '/opt/deviceatlas/20230802_compact.json' json file is invalid.
>
> On Tue, Sep 19, 2023 at 5:36 PM David CARLIER wrote:
>
>> We are almost there, now remains the linkage part to pass.
>> In your /opt/deviceatlas-enterprise-c-3.2 folder, there should be a
>> `include` and a `lib` or a `lib64` folder
>> So for the last command, what needs to be done instead is one of the
>> following (no need to repeat step 1) :
>>
>> make TARGET=linux-glibc USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1
>> USE_DEVICEATLAS=1 DEVICEATLAS_INC=/opt/deviceatlas-enterprise-c-3.2/include
>> DEVICEATLAS_LIB=/opt/deviceatlas-enterprise-c-3.2/lib
>> DEVICEATLAS_LDFLAGS="-L/opt/deviceatlas-enterprise-c-3.2/lib
>> -Wl,-rpath,/opt/deviceatlas-enterprise-c-3.2/lib -lda"
>>
>> or
>>
>> make TARGET=linux-glibc USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1
>> USE_DEVICEATLAS=1 DEVICEATLAS_INC=/opt/deviceatlas-enterprise-c-3.2/include
>> DEVICEATLAS_LIB=/opt/deviceatlas-enterprise-c-3.2/lib64
>> DEVICEATLAS_LDFLAGS="-L/opt/deviceatlas-enterprise-c-3.2/lib64
>> -Wl,-rpath,/opt/deviceatlas-enterprise-c-3.2/lib64 -lda"
>>
>> The only difference is `lib` vs `lib64`
>>
>> Hope it's useful.
>>
>> Kindest regards.
>>
>>
>>
>> On Tue, 19 Sept 2023 at 12:52, Mahendra Patil
>> wrote:
>>
>>>
>>> 1)
>>> cd /opt/deviceatlas-enterprise-c-3.2
>>> cmake . -DCMAKE_INSTALL_PREFIX=/opt/deviceatlas-enterprise-c-3.2
>>> -DCMAKE_C_FLAGS="-std=gnu99"
>>> make
>>> make install
>>>
>>> 2)
>>> cd haproxy-2.8.3
>>> make TARGET=linux-glibc USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1
>>> USE_DEVICEATLAS=1 DEVICEATLAS_INC=/opt/deviceatlas-enterprise-c-3.2/include
>>> DEVICEATLAS_LIB=/opt/deviceatlas-enterprise-c-3.2/lib
>>>
>>> LD haproxy
>>> /usr/bin/ld: cannot find -lda
>>> collect2: error: ld returned 1 exit status
>>> make: *** [haproxy] Error 1
>>>
>>>
>>>
>>>
>>>
>>> On Tue, Sep 19, 2023 at 10:19 AM David CARLIER
>>> wrote:
>>>
Hi,
Since you build the DeviceAtlas library from cmake prior, the following
steps are more appropriate :
1/ Inside the deviceatlas-enterprise-c-3.2 folder
cmake . -DCMAKE_INSTALL_PREFIX=/opt/deviceatlas-enterprise-c-3.2
-DCMAKE_C_FLAGS="-std=gnu99"
make
make install
2/ Inside the haproxy-2.8.3 folder
make TARGET=linux-glibc USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1
USE_DEVICEATLAS=1 DEVICEATLAS_INC=/opt/deviceatlas-enterprise-c-3.2/include
DEVICEATLAS_LIB=/opt/deviceatlas-enterprise-c-3.2/lib
Let me know if you have any further question.
On Tue, 19 Sept 2023 at 00:02, Mahendra Patil <
mahendra.pa...@naaptol.com> wrote:
> Thanks for yours prompt reply about deviceatlas-enterprise-c-3.2
> error while make
> after yours suggestion deviceatlas-enterprise-c-3.2 *make *works fine
>
> But while using with haproxy-2.8.3 version gives following error
>
> [root@govinda opt]# cd haproxy-2.8.3
> [root@govinda haproxy-2.8.3]# make TARGET=linux-glibc USE_PCRE=1
> USE_OPENSSL=1 USE_ZLIB=1 USE_DEVICEATLAS=1
> DEVICEATLAS_SRC=/opt/deviceatlas-enterprise-c-3.2/Src/
> CC src/ev_poll.o
> CC src/ev_epoll.o
> CC src/cpuset.o
> CC src/ssl_sock.o
> CC src/ssl_ckch.o
> CC src/ssl_sample.o
> CC src/ssl_crtlist.o
> CC src/cfgparse-ssl.o
> CC src/ssl_utils.o
> CC src/jwt.o
> CC src/ssl_ocsp.o
> CC /opt/deviceatlas/Src//Os/daunix.o
> CC /opt/deviceatlas/Src//dadwcom.o
> CC /opt/deviceatlas/Src//dasch.o
> CC /opt/deviceatlas/Src//json.o
> CC /opt/deviceatlas/Src//dac.o
> /opt/deviceatlas/Src//dac.c:1033:0: warning: ignoring #pragma optimize
> [-Wunknown-pragmas]
> #pragma optimize("Ofast")
> ^
> /opt/deviceatlas/Src//dac.c:1041:0: warning: ignoring #pragma optimize
> [-Wunknown-pragmas]
> #pragma optimize("Ofast")
> ^
> /opt/deviceatlas/Src//dac.c:1049:0: warning: ignoring #pragma optimize
> [-Wunknown-pragmas]
> #pragma optimize("Ofast")
> ^
> /opt/deviceatlas/Src//dac.c:1057:0: warning: ignoring #pragma optimize
> [-Wunknown-pragmas]
> #pragma optimize("Ofast")
> ^
> /opt/deviceatlas/Src//dac.c:1065:0: warning: ignoring #pragma optimize
> [-Wunknown-pragmas]
> #pragma optimize("Ofast")
> ^
> /opt/deviceatlas/Src//