Error While deviceatlas compile/make from source

2023-09-18 Thread Amol Arote
Dear Team,

We are trying to upgrade/install deviceatlas-enterprise-c-3.2 , but while
compiling deviceatlas its showing some error.
Below are the steps which we performed and occured error for the same.

*Device Atlas Version :* deviceatlas-enterprise-c-3.2

[root@govinda opt]# cd /opt/deviceatlas-enterprise-c-3.2/Src/
[root@govinda Src]# cmake .
-DCMAKE_INSTALL_PREFIX=/opt/deviceatlas-enterprise-c-3.2
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found CURL: /usr/lib64/libcurl.so (found version "7.29.0")
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7")
-- Performing Test HAVE_BUILTIN__BOOL
-- Performing Test HAVE_BUILTIN__BOOL - Success
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found
version "1.0.2k")
-- Found OpenSSL MD5
-- Performing Test HAS_CURLSSLSET
-- Performing Test HAS_CURLSSLSET - Failed
-- Could NOT find ZIP
-- Performing Test HAS_STD_ATOMICS
-- Performing Test HAS_STD_ATOMICS - Failed
-- Performing Test HAS_BUILTIN_ATOMICS
-- Performing Test HAS_BUILTIN_ATOMICS - Success
-- Performing Test HAS_ATTR_COLD
-- Performing Test HAS_ATTR_COLD - Success
-- Performing Test HAS_ATTR_ALLOC
-- Performing Test HAS_ATTR_ALLOC - Failed
-- Performing Test HAS_ATTR_NOSANITIZE
-- Performing Test HAS_ATTR_NOSANITIZE - Success
-- Performing Test HAS_BUILTIN_EXPECT
-- Performing Test HAS_BUILTIN_EXPECT - Success
-- Performing Test HAS_WIN32_ATOMICS
-- Performing Test HAS_WIN32_ATOMICS - Failed
-- Performing Test HAS_WIN32_ATTR_ALLOC
-- Performing Test HAS_WIN32_ATTR_ALLOC - Failed
-- Performing Test HAS_WIN32_UNUSED
-- Performing Test HAS_WIN32_UNUSED - Failed
--  version
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/deviceatlas-enterprise-c-3.2/Src

[image: image.png]


[root@govinda Src]# make
Scanning dependencies of target ci
[  6%] Building C object CMakeFiles/ci.dir/ci.c.o
[ 13%] Building C object CMakeFiles/ci.dir/dadwcom.c.o
[ 20%] Building C object CMakeFiles/ci.dir/dadwcurl.c.o
[ 26%] Building C object CMakeFiles/ci.dir/dadwarc.c.o
[ 33%] Building C object CMakeFiles/ci.dir/cisch.c.o
[ 40%] Building C object CMakeFiles/ci.dir/Os/ciunix.c.o
Linking C shared library libci.so
[ 40%] Built target ci
Scanning dependencies of target da
[ 46%] Building C object CMakeFiles/da.dir/Arch/amd64.c.o
[ 53%] Building C object CMakeFiles/da.dir/json.c.o
[ 60%] Building C object CMakeFiles/da.dir/dac.c.o
/opt/deviceatlas-enterprise-c-3.2/Src/dac.c: In function ârun_dyn_rulesâ:
/opt/deviceatlas-enterprise-c-3.2/Src/dac.c:2192:13: error: âforâ loop
initial declarations are only allowed in C99 mode
 for (size_t gt = 0; gt < result->fl[lvl]->yszcount; gt ++) {
 ^
/opt/deviceatlas-enterprise-c-3.2/Src/dac.c:2192:13: note: use option
-std=c99 or -std=gnu99 to compile your code
make[2]: *** [CMakeFiles/da.dir/dac.c.o] Error 1
make[1]: *** [CMakeFiles/da.dir/all] Error 2
make: *** [all] Error 2
[root@govinda Src]#

[image: image.png]

Regards,



Amol Arote

Senior IT Manager



*Mobile*: 9773868585 | 8097988585

*Phone:*  (022) 61934700 Ext 444

*Email:* amol.ar...@naaptol.com

*Web:* *https://www.naaptol.com <https://www.naaptol.com>*

-- 



haproxy 2.6.2 warnings while installation

2022-08-21 Thread Amol Arote
We are using haproxy 2.6.2 on Centos 7.9 ,

Following are warning seen during

*make TARGET=linux-glibc USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1*

[image: image.png]

src/http_fetch.c:356:6: warning: âhtxâ may be used uninitialized in this
function [-Wmaybe-uninitialized]
   sl = http_get_stline(htx);
  ^
src/http_fetch.c: At top level:
cc1: warning: unrecognized command line option "-Wno-atomic-alignment"
[enabled by default]
cc1: warning: unrecognized command line option "-Wno-string-plus-int"
[enabled by default]
cc1: warning: unrecognized command line option "-Wno-cast-function-type"
[enabled by default]
cc1: warning: unrecognized command line option
"-Wno-address-of-packed-member" [enabled by default]



Please let us know if any concern

Regards,



Amol Arote

Senior IT Manager



*Mobile*: 9773868585 | 8097988585

*Phone:*  (022) 61934700 Ext 444

*Email:* amol.ar...@naaptol.com

*Web:* *https://www.naaptol.com <https://www.naaptol.com>*

-- 



Re: deviceatlas compiler error

2022-06-03 Thread Amol Arote
  Thank you sir , For Prompt Reply

I install Some dependancies on CentOS 7.6 as per your last update
libcurl-devel , libzip-devel
But Seen Some failed Test Below , So let us know what Further Changes to be
done
OR can Ignore these Failed Test



---
Error while compiling
---


[root@test Src]# cmake . -DCMAKE_INSTALL_PREFIX=/opt/deviceatlas
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PCRE: /usr/include
-- Found CURL: /usr/lib64/libcurl.so (found version "7.29.0")
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7")
-- Performing Test HAVE_BUILTIN__BOOL
-- Performing Test HAVE_BUILTIN__BOOL - Success
-- Found OpenSSL: /usr/lib64/libssl.so;/usr/lib64/libcrypto.so (found
version "1.0.2k")
-- Found OpenSSL MD5
-- Performing Test HAS_CURLSSLSET
-- Performing Test HAS_CURLSSLSET - Failed
-- Found ZIP: /usr/lib64/libzip.so
-- Performing Test HAS_STD_ATOMICS
-- Performing Test HAS_STD_ATOMICS - Failed
-- Performing Test HAS_BUILTINS_ATOMICS
-- Performing Test HAS_BUILTINS_ATOMICS - Success
-- Performing Test HAS_ATTR_COLD
-- Performing Test HAS_ATTR_COLD - Success
-- Performing Test HAS_ATTR_ALLOC
-- Performing Test HAS_ATTR_ALLOC - Failed
-- Performing Test HAS_WIN32_ATOMICS
-- Performing Test HAS_WIN32_ATOMICS - Failed
-- Performing Test HAS_WIN32_ATTR_ALLOC
-- Performing Test HAS_WIN32_ATTR_ALLOC - Failed
-- Performing Test HAS_WIN32_UNUSED
-- Performing Test HAS_WIN32_UNUSED - Failed
--  version
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/deviceatlas/Src



Regards,



Amol Arote

Senior IT Manager



*Mobile*: 9773868585 | 8097988585

*Phone:*  (022) 61934700 Ext 444

*Email:* amol.ar...@naaptol.com

*Web:* *https://www.naaptol.com <https://www.naaptol.com>*




On Fri, Jun 3, 2022 at 12:25 PM David CARLIER  wrote:

> Hi Amole and thanks for your report.
>
> The C api 2.4.0 version is a major upgrade which comes with additional
> dependencies.
> Indeed as mentioned by your report
>
> ...
> > > -- Could NOT find CURL (missing:  CURL_LIBRARY CURL_INCLUDE_DIR)
> ...
> > > -- Could NOT find ZIP
> ...
>
> Here a sample of the README.Unix.html doc page
>
>  RedHat/CentOS 
> CentOS < 8 version
> Note: the libzip-devel system package is obsolete, thus the
> libzip-last-devel
> ought to be used instead. A third party repository might need to be
> enabled.
> ```shell
> % sudo dnf install gcc (or clang) pcre-devel cmake zlib-devel
> libzip-last-devel \
>   libcurl-devel
> ```
> CentOS >= 8 version
> ```shell
> % sudo dnf install gcc (or clang) pcre-devel cmake zlib-devel libzip-devel
> \
>   libcurl-devel
> ```
>
> If you have any further question, please let me know.
>
> Kindest regards.
>
> On Fri, 3 Jun 2022 at 07:21, Willy Tarreau  wrote:
> >
> > Hello Amol,
> >
> > On Fri, Jun 03, 2022 at 11:09:07AM +0530, Amol Arote wrote:
> >
> > David, please find the rest of the report below.
> >
> > Thanks!
> > Willy
> >
> > >
> ---
> > > *Versions*
> > >
> ---
> > > HAProxy version 2.4.2-553dee3 2021/07/07
> > > cmake version 2.8.12.2
> > > CentOS Linux release 7.6.1810 (Core)
> > > deviceatlas-enterprise-c-2.4.0.zip
> > >
> ---
> > > *deviceatlas compile steps*
> > >
> ---
> > > # yum install cmake
> > > # unzip deviceatlas-enterprise-c-2.4.0.zip
> > > # mv deviceatlas-enterprise-c-2.4.0  deviceatlas
> > > # cd /opt/deviceatlas/Src/
> > > # cmake . -DCMAKE_INSTALL_PREFIX=/opt/deviceatlas
> > > # make
> > >
> ---
> > > *Error while compiling woth command *
> > > * # cmake . -DCMAKE_INSTALL_PREFIX=/opt/deviceatlas   *
> > >
> --

deviceatlas compiler error

2022-06-02 Thread Amol Arote
Dear Team,

We are trying to upgrade deviceatlas for HAProxy version 2.4.2-553dee3, but
while compiling deviceatlas its showing some error.
Below are the versions and steps which we perform for the same.

---
*Versions*
---
HAProxy version 2.4.2-553dee3 2021/07/07
cmake version 2.8.12.2
CentOS Linux release 7.6.1810 (Core)
deviceatlas-enterprise-c-2.4.0.zip
---
*deviceatlas compile steps*
---
# yum install cmake
# unzip deviceatlas-enterprise-c-2.4.0.zip
# mv deviceatlas-enterprise-c-2.4.0  deviceatlas
# cd /opt/deviceatlas/Src/
# cmake . -DCMAKE_INSTALL_PREFIX=/opt/deviceatlas
# make
---
*Error while compiling woth command *
* # cmake . -DCMAKE_INSTALL_PREFIX=/opt/deviceatlas   *
---
[root@tt Src]## cmake . -DCMAKE_INSTALL_PREFIX=/opt/deviceatlas
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PCRE: /usr/include
-- Could NOT find CURL (missing:  CURL_LIBRARY CURL_INCLUDE_DIR)
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.7")
-- Performing Test HAVE_BUILTIN__BOOL
-- Performing Test HAVE_BUILTIN__BOOL - Success
-- Could NOT find ZIP
-- Performing Test HAS_STD_ATOMICS
-- Performing Test HAS_STD_ATOMICS - Failed
-- Performing Test HAS_BUILTINS_ATOMICS
-- Performing Test HAS_BUILTINS_ATOMICS - Success
-- Performing Test HAS_ATTR_COLD
-- Performing Test HAS_ATTR_COLD - Success
-- Performing Test HAS_ATTR_ALLOC
-- Performing Test HAS_ATTR_ALLOC - Failed
-- Performing Test HAS_WIN32_ATOMICS
-- Performing Test HAS_WIN32_ATOMICS - Failed
-- Performing Test HAS_WIN32_ATTR_ALLOC
-- Performing Test HAS_WIN32_ATTR_ALLOC - Failed
-- Performing Test HAS_WIN32_UNUSED
-- Performing Test HAS_WIN32_UNUSED - Failed
--  version
-- Configuring done
-- Generating done
-- Build files have been written to: /opt/deviceatlas/Src
[root@tt Src]#  #

Request you to please guide us on above matter


-- 

Regards,



Amol Arote

Senior IT Manager



*Mobile*: 9773868585 | 8097988585

*Phone:*  (022) 61934700 Ext 444

*Email:* amol.ar...@naaptol.com

*Web:* *https://www.naaptol.com <https://www.naaptol.com>*

-- 



Re: MaxMind config with HAProxy

2021-08-09 Thread Amol Arote
Dear Willy,

We are referring below reference links for configuration.where as per links
we need to install hapee-2.3r1-lb-maxmind module.
Need to know from where we can get this hapee-2.3r1-lb-maxmind module.

https://www.haproxy.com/documentation/hapee/latest/load-balancing/geolocation/maxmind/
https://blog.maxmind.com/2020/03/02/using-maxmind-geoip2-databases-with-haproxy-enterprise/#more-588





On Mon, Aug 9, 2021 at 8:05 PM Willy Tarreau  wrote:

> Hello,
>
> On Mon, Aug 09, 2021 at 07:54:09PM +0530, Amol Arote wrote:
> > Dear Team,
> >
> > We want to configure MaxMind GeoIP2 Country DB with HAProxy.
> > Please help with installation steps or help with which module of haproxy
> we
> > need to configure for the same. PFB our server details.
> >
> > HAProxy version 2.4.2-553dee3
> > Apache-2.4.48
> > CentOS Linux release 7.6
>
> You provided no information regarding the steps you already tried and
> failed,
> I doubt anybody can help you.
>
> Regards,
> Willy
>


-- 
Regards,
Amol

-- 



MaxMind config with HAProxy

2021-08-09 Thread Amol Arote
Dear Team,

We want to configure MaxMind GeoIP2 Country DB with HAProxy.
Please help with installation steps or help with which module of haproxy we
need to configure for the same. PFB our server details.

HAProxy version 2.4.2-553dee3
Apache-2.4.48
CentOS Linux release 7.6

-- 
Regards,
Amol

-- 



issue after upgrading haproxy 2.3.2

2021-01-19 Thread Amol Arote
Dear Team,

After upgrading haproxy 2.3.2 we are facing the below ssl tls issue while
connecting links internally, but when we check web browsing its auto
getting tls 1.2 there is no such issue.when connecting internal links its
not getting tls 1.2 its showing tls 1.0 and showing below error message.

org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (javax.net.ssl.SSLException) caught when processing
request: Received fatal alert: protocol_version

earlier we are using HA-Proxy version 2.1.2 where everything working fine
we are using centos 7.6 and Java 1.7

Request to check and help regarding the same.

-- 
Regards,
Amol

--