LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-08-2021, 04:57 PM   #1
babydr
Member
 
Registered: Aug 2015
Location: Fairbanks , Alaska
Distribution: Slackware-14.2+
Posts: 60

Rep: Reputation: Disabled
freshclam: create_curl_handle: Unable to bind DNS resolves to xxx.xxx.xxx.xxx. Option requires that libcurl was built with c-ares.


Having just compiled and installed on a MultiInterface server clamav-0.103.2 following the contents (if NOT using the script) of SlackBuilds.org for clamav .
The freshclam.conf.8 manpage says (to me) insert your primary exterior interface ip in the config entry , "LocalIPAddress" , So I did .

When running freshclam (see below(*1)) , curl reports the message saying that libcurl needs c-ares (ie: libc-ares) be complied in , in order to use the "LocalIPAddress" functionality .

Fyi , Leaving "LocalIPAddress" empty allows freshclam to run just fine . As my system is multiInterfaced tho Not multirouted at the moment but will be , Thus my concern .

Tho for those running on true MultiRouted servers are going have a problem when they HAVE to use the "LocalIPAddress" .

How & Who should be contacted to have this library be compiled into curl ?

(*2) Below MAY show that curl is not compiled with libc-ares .
Tho ...
Code:
# nm /usr/lib64/libcurl.so.4.7.0 
nm: /usr/lib64/libcurl.so.4.7.0: no symbols"
Code:
(*1)# freshclam
Thu Apr  8 12:57:54 2021 -> *Current working dir is /var/lib/clamav/
Thu Apr  8 12:57:54 2021 -> *Loaded mirrors.dat:
Thu Apr  8 12:57:54 2021 -> *  version:    1
Thu Apr  8 12:57:54 2021 -> *  uuid:       d2f866ca-6562-4830-9b50-ec5820d2d4ff
Thu Apr  8 12:57:54 2021 -> ClamAV update process started at Thu Apr  8 12:57:54 2021
Thu Apr  8 12:57:54 2021 -> *Current working dir is /var/lib/clamav/
Thu Apr  8 12:57:54 2021 -> *Querying current.cvd.clamav.net
Thu Apr  8 12:57:54 2021 -> *TTL: 1254
Thu Apr  8 12:57:54 2021 -> *fc_dns_query_update_info: Software version from DNS: 0.103.2
Thu Apr  8 12:57:54 2021 -> *Current working dir is /var/lib/clamav/
Thu Apr  8 12:57:54 2021 -> ^[LibClamAV] cl_cvdhead: Can't read CVD header in daily.cvd
Thu Apr  8 12:57:54 2021 -> *check_for_new_database_version: No local copy of "daily" database.
Thu Apr  8 12:57:54 2021 -> *query_remote_database_version: daily.cvd version from DNS: 26134
Thu Apr  8 12:57:54 2021 -> daily database available for download (remote version: 26134)
Thu Apr  8 12:57:54 2021 -> *Retrieving https://database.clamav.net/daily.cvd
Thu Apr  8 12:57:54 2021 -> *Local IPv4 address requested: xxx.xxx.xxx.xxx
Thu Apr  8 12:57:54 2021 -> !create_curl_handle: Unable to bind DNS resolves to xxx.xxx.xxx.xxx. Option requires that libcurl was built with c-ares.
Thu Apr  8 12:57:54 2021 -> !downloadFile: Failed to create curl handle.
Thu Apr  8 12:57:54 2021 -> ^Can't download daily.cvd from https://database.clamav.net/daily.cvd
Thu Apr  8 12:57:54 2021 -> !Unexpected error when attempting to update daily: Invalid configuration settings(s)
Thu Apr  8 12:57:54 2021 -> !Database update process failed: Invalid configuration settings(s)
Thu Apr  8 12:57:54 2021 -> !Update failed.
Code:
(*2)# curl --version
curl 7.76.0 (x86_64-pc-linux-gnu) libcurl/7.76.0 OpenSSL/1.1.1k zlib/1.2.11 brotli/1.0.9 zstd/1.4.9 libidn2/2.3.0 libpsl/0.21.1 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.43.0
Release-Date: 2021-03-31
Protocols: dict file ftp ftps gopher gophers http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: alt-svc AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets zstd
 
Old 04-09-2021, 06:32 PM   #2
babydr
Member
 
Registered: Aug 2015
Location: Fairbanks , Alaska
Distribution: Slackware-14.2+
Posts: 60

Original Poster
Rep: Reputation: Disabled
Hello ALL , Thank You . Whoever picked up my concern and passed it onto the appropriate maintainer :-) .

Code:
Fri Apr  9 20:21:07 UTC 2021
...
n/c-ares-1.17.1-x86_64-1.txz:  Added.
  Adding this since curl can make use of it, and some programs expect this
  functionality.
n/curl-7.76.0-x86_64-2.txz:  Rebuilt.
  Recompiled to link with c-ares-1.17.1. Thanks to babydr.
...
Tnx Agn , JimL
 
1 members found this post helpful.
Old 04-12-2021, 05:32 PM   #3
babydr
Member
 
Registered: Aug 2015
Location: Fairbanks , Alaska
Distribution: Slackware-14.2+
Posts: 60

Original Poster
Rep: Reputation: Disabled
First chance I've had time to test the c-ares library addition with curl .
Thank You all , the Local-Address capability functions well for me .

Code:
# freshclam --local-address=XXX.XXX.XXX.xxx
Mon Apr 12 14:22:06 2021 -> *Current working dir is /var/lib/clamav/
Mon Apr 12 14:22:06 2021 -> *Loaded mirrors.dat:
Mon Apr 12 14:22:06 2021 -> *  version:    1
Mon Apr 12 14:22:06 2021 -> *  uuid:       d2f866ca-6562-4830-9b50-ec5820d2d4ff
Mon Apr 12 14:22:06 2021 -> ClamAV update process started at Mon Apr 12 14:22:06 2021
Mon Apr 12 14:22:06 2021 -> *Current working dir is /var/lib/clamav/
Mon Apr 12 14:22:06 2021 -> *Querying current.cvd.clamav.net
Mon Apr 12 14:22:06 2021 -> *TTL: 199
Mon Apr 12 14:22:06 2021 -> *fc_dns_query_update_info: Software version from DNS: 0.103.2
Mon Apr 12 14:22:06 2021 -> *Current working dir is /var/lib/clamav/
Mon Apr 12 14:22:06 2021 -> *check_for_new_database_version: Local copy of daily found: daily.cvd.
Mon Apr 12 14:22:06 2021 -> *query_remote_database_version: daily.cvd version from DNS: 26138
Mon Apr 12 14:22:06 2021 -> daily database available for update (local version: 26134, remote version: 26138)
Current database is 4 versions behind.
Downloading database patch # 26135...
Mon Apr 12 14:22:09 2021 -> *Retrieving https://database.clamav.net/daily-26135.cdiff
Mon Apr 12 14:22:09 2021 -> *Local IPv4 address requested: XXX.XXX.XXX.xxx
Mon Apr 12 14:22:09 2021 -> *downloadFile: Download source:      https://database.clamav.net/daily-26135.cdiff
Mon Apr 12 14:22:09 2021 -> *downloadFile: Download destination: ./clamav-62c1ded2a09844e3e08f1e78e85f0430.tmp
*   Trying 104.16.218.84:443...
* Connected to database.clamav.net (104.16.218.84) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: none
*  CApath: /etc/ssl/certs
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=CA; L=San Francisco; O=Cloudflare, Inc.; CN=sni.cloudflaressl.com
*  start date: Aug 15 00:00:00 2020 GMT
*  expire date: Aug 15 12:00:00 2021 GMT
*  subjectAltName: host "database.clamav.net" matched cert's "database.clamav.net"
*  issuer: C=US; O=Cloudflare, Inc.; CN=Cloudflare Inc ECC CA-3
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0xc8dab0)
> GET /daily-26135.cdiff HTTP/2
Host: database.clamav.net
user-agent: ClamAV/0.103.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64, UUID: d2f866ca-6562-4830-9b50-ec5820d2d4ff)
accept: */*
connection: close

* old SSL session ID is stale, removing
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 200 
< date: Mon, 12 Apr 2021 22:22:09 GMT
< content-type: application/octet-stream
< content-length: 16194
< set-cookie: __cfduid=d9def04df3de02df3584d7393076184ea1618266129; expires=Wed, 12-May-21 22:22:09 GMT; path=/; domain=.clamav.net; HttpOnly; SameSite=Lax
< last-modified: Fri, 09 Apr 2021 11:10:00 GMT
< etag: "60703608-3f42"
< expires: Tue, 12 Apr 2022 22:15:07 GMT
< cache-control: public, max-age=31535578
< cf-cache-status: HIT
< age: 299107
< accept-ranges: bytes
< cf-request-id: 0969c69d99000042a54388f000000001
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< strict-transport-security: max-age=15552000
< x-content-type-options: nosniff
< server: cloudflare
< cf-ray: 63efda0f5cd242a5-LAX
< 
Time:    0.1s, ETA:    0.0s [========================>]   15.81KiB/15.81KiB
* Connection #0 to host database.clamav.net left intact
Mon Apr 12 14:22:10 2021 -> *cdiff_apply: Parsed 297 lines and executed 297 commands
Downloading database patch # 26136...
Mon Apr 12 14:22:10 2021 -> *Retrieving https://database.clamav.net/daily-26136.cdiff
Mon Apr 12 14:22:10 2021 -> *Local IPv4 address requested: XXX.XXX.XXX.xxx
Mon Apr 12 14:22:10 2021 -> *downloadFile: Download source:      https://database.clamav.net/daily-26136.cdiff
Mon Apr 12 14:22:10 2021 -> *downloadFile: Download destination: ./clamav-dc372c9d5111e2c1f46a225e4e524b6f.tmp
*   Trying 104.16.218.84:443...
* Connected to database.clamav.net (104.16.218.84) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: none
*  CApath: /etc/ssl/certs
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=CA; L=San Francisco; O=Cloudflare, Inc.; CN=sni.cloudflaressl.com
*  start date: Aug 15 00:00:00 2020 GMT
*  expire date: Aug 15 12:00:00 2021 GMT
*  subjectAltName: host "database.clamav.net" matched cert's "database.clamav.net"
*  issuer: C=US; O=Cloudflare, Inc.; CN=Cloudflare Inc ECC CA-3
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0xcc93f0)
> GET /daily-26136.cdiff HTTP/2
Host: database.clamav.net
user-agent: ClamAV/0.103.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64, UUID: d2f866ca-6562-4830-9b50-ec5820d2d4ff)
accept: */*
connection: close

* old SSL session ID is stale, removing
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 200 
< date: Mon, 12 Apr 2021 22:22:10 GMT
< content-type: application/octet-stream
< content-length: 12981
< set-cookie: __cfduid=d7387b5156ec87754a3bac3ff3c40ffda1618266130; expires=Wed, 12-May-21 22:22:10 GMT; path=/; domain=.clamav.net; HttpOnly; SameSite=Lax
< last-modified: Sat, 10 Apr 2021 11:09:00 GMT
< etag: "6071874c-32b5"
< expires: Tue, 12 Apr 2022 22:17:35 GMT
< cache-control: public, max-age=31535725
< cf-cache-status: HIT
< age: 212902
< accept-ranges: bytes
< cf-request-id: 0969c69f0f0000d33e5c140000000001
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< strict-transport-security: max-age=15552000
< x-content-type-options: nosniff
< server: cloudflare
< cf-ray: 63efda11ac1cd33e-LAX
< 
Time:    0.1s, ETA:    0.0s [========================>]   12.68KiB/12.68KiB
* Connection #0 to host database.clamav.net left intact
Mon Apr 12 14:22:10 2021 -> *cdiff_apply: Parsed 210 lines and executed 210 commands
Downloading database patch # 26137...
Mon Apr 12 14:22:10 2021 -> *Retrieving https://database.clamav.net/daily-26137.cdiff
Mon Apr 12 14:22:10 2021 -> *Local IPv4 address requested: XXX.XXX.XXX.xxx
Mon Apr 12 14:22:10 2021 -> *downloadFile: Download source:      https://database.clamav.net/daily-26137.cdiff
Mon Apr 12 14:22:10 2021 -> *downloadFile: Download destination: ./clamav-b93d41eccf4ad4267c1c82cbd044ca48.tmp
*   Trying 104.16.219.84:443...
* Connected to database.clamav.net (104.16.219.84) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: none
*  CApath: /etc/ssl/certs
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=CA; L=San Francisco; O=Cloudflare, Inc.; CN=sni.cloudflaressl.com
*  start date: Aug 15 00:00:00 2020 GMT
*  expire date: Aug 15 12:00:00 2021 GMT
*  subjectAltName: host "database.clamav.net" matched cert's "database.clamav.net"
*  issuer: C=US; O=Cloudflare, Inc.; CN=Cloudflare Inc ECC CA-3
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0xca7eb0)
> GET /daily-26137.cdiff HTTP/2
Host: database.clamav.net
user-agent: ClamAV/0.103.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64, UUID: d2f866ca-6562-4830-9b50-ec5820d2d4ff)
accept: */*
connection: close

* old SSL session ID is stale, removing
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 200 
< date: Mon, 12 Apr 2021 22:22:10 GMT
< content-type: application/octet-stream
< content-length: 6959
< set-cookie: __cfduid=d2d28e366df467f44aeca0d33c0f68f281618266130; expires=Wed, 12-May-21 22:22:10 GMT; path=/; domain=.clamav.net; HttpOnly; SameSite=Lax
< last-modified: Sun, 11 Apr 2021 11:07:00 GMT
< etag: "6072d854-1b2f"
< expires: Tue, 12 Apr 2022 22:16:09 GMT
< cache-control: public, max-age=31535639
< cf-cache-status: HIT
< age: 126431
< accept-ranges: bytes
< cf-request-id: 0969c6a0040000366d39375000000001
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< strict-transport-security: max-age=15552000
< x-content-type-options: nosniff
< server: cloudflare
< cf-ray: 63efda133837366d-LAX
< 
Time:    0.1s, ETA:    0.0s [========================>]    6.80KiB/6.80KiB
* Connection #0 to host database.clamav.net left intact
Mon Apr 12 14:22:10 2021 -> *cdiff_apply: Parsed 54 lines and executed 54 commands
Downloading database patch # 26138...
Mon Apr 12 14:22:10 2021 -> *Retrieving https://database.clamav.net/daily-26138.cdiff
Mon Apr 12 14:22:10 2021 -> *Local IPv4 address requested: XXX.XXX.XXX.xxx
Mon Apr 12 14:22:10 2021 -> *downloadFile: Download source:      https://database.clamav.net/daily-26138.cdiff
Mon Apr 12 14:22:10 2021 -> *downloadFile: Download destination: ./clamav-b4fbfe5c2343c38d49b2858ef9e8330f.tmp
*   Trying 104.16.219.84:443...
* Connected to database.clamav.net (104.16.219.84) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: none
*  CApath: /etc/ssl/certs
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: C=US; ST=CA; L=San Francisco; O=Cloudflare, Inc.; CN=sni.cloudflaressl.com
*  start date: Aug 15 00:00:00 2020 GMT
*  expire date: Aug 15 12:00:00 2021 GMT
*  subjectAltName: host "database.clamav.net" matched cert's "database.clamav.net"
*  issuer: C=US; O=Cloudflare, Inc.; CN=Cloudflare Inc ECC CA-3
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0xcc93f0)
> GET /daily-26138.cdiff HTTP/2
Host: database.clamav.net
user-agent: ClamAV/0.103.2 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64, UUID: d2f866ca-6562-4830-9b50-ec5820d2d4ff)
accept: */*
connection: close

* old SSL session ID is stale, removing
* Connection state changed (MAX_CONCURRENT_STREAMS == 256)!
< HTTP/2 200 
< date: Mon, 12 Apr 2021 22:22:10 GMT
< content-type: application/octet-stream
< content-length: 16232
< set-cookie: __cfduid=dc03397863a0b8a60878ea8324cdd69771618266130; expires=Wed, 12-May-21 22:22:10 GMT; path=/; domain=.clamav.net; HttpOnly; SameSite=Lax
< last-modified: Mon, 12 Apr 2021 11:05:00 GMT
< etag: "6074295c-3f68"
< expires: Tue, 12 Apr 2022 22:16:53 GMT
< cache-control: public, max-age=31535683
< cf-cache-status: HIT
< age: 40094
< accept-ranges: bytes
< cf-request-id: 0969c6a03a0000058520bbc000000001
< expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< strict-transport-security: max-age=15552000
< x-content-type-options: nosniff
< server: cloudflare
< cf-ray: 63efda138a4e0585-LAX
< 
Time:    0.1s, ETA:    0.0s [========================>]   15.85KiB/15.85KiB
* Connection #0 to host database.clamav.net left intact
Mon Apr 12 14:22:10 2021 -> *cdiff_apply: Parsed 244 lines and executed 244 commands
Mon Apr 12 14:22:11 2021 -> *updatedb: Running g_cb_download_complete callback...
Mon Apr 12 14:22:11 2021 -> *download_complete_callback: Download complete for database : /var/lib/clamav/tmp.4285473c3d/clamav-e92e3c61c0da77cee805fe64c61b2713.tmp-daily.cld
Mon Apr 12 14:22:11 2021 -> *download_complete_callback:   fc_context->bTestDatabases   : 1
Mon Apr 12 14:22:11 2021 -> *download_complete_callback:   fc_context->bBytecodeEnabled : 1
Mon Apr 12 14:22:11 2021 -> Testing database: '/var/lib/clamav/tmp.4285473c3d/clamav-e92e3c61c0da77cee805fe64c61b2713.tmp-daily.cld' ...
Mon Apr 12 14:22:11 2021 -> Database test passed.
Mon Apr 12 14:22:11 2021 -> daily.cld updated (version: 26138, sigs: 3970005, f-level: 63, builder: raynman)
Mon Apr 12 14:22:12 2021 -> *fc_update_database: daily.cld updated.
Mon Apr 12 14:22:12 2021 -> *Current working dir is /var/lib/clamav/
Mon Apr 12 14:22:12 2021 -> *check_for_new_database_version: Local copy of main found: main.cvd.
Mon Apr 12 14:22:12 2021 -> *query_remote_database_version: main.cvd version from DNS: 59
Mon Apr 12 14:22:12 2021 -> main.cvd database is up-to-date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
Mon Apr 12 14:22:12 2021 -> *fc_update_database: main.cvd already up-to-date.
Mon Apr 12 14:22:12 2021 -> *Current working dir is /var/lib/clamav/
Mon Apr 12 14:22:12 2021 -> *check_for_new_database_version: Local copy of bytecode found: bytecode.cvd.
Mon Apr 12 14:22:12 2021 -> *query_remote_database_version: bytecode.cvd version from DNS: 333
Mon Apr 12 14:22:12 2021 -> bytecode.cvd database is up-to-date (version: 333, sigs: 92, f-level: 63, builder: awillia2)
Mon Apr 12 14:22:12 2021 -> *fc_update_database: bytecode.cvd already up-to-date.
Mon Apr 12 14:22:12 2021 -> ^Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.socket: No such file or directory
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Error, some other host already uses address XXX.XXX.XXX.XXX" mwbb_support Linux - Networking 5 01-20-2014 08:59 AM
Error, some other host already uses address xxx.xxx,xxx,xxx ryan462 Linux - Networking 20 01-24-2010 11:14 PM
smbclient -M xxx.xxx.xxx.xxx Doesnt Work DiscreetControl Linux - Networking 7 12-28-2007 10:50 AM
Need to separate the following value 'xxx.xxx.xxx.xxx:xx:xx' SlowCoder Linux - General 3 09-14-2007 04:19 PM
Host XXX.XXX.XXX.XXX is not allowed to connect to this MySQL server ocavid Linux - Newbie 2 03-16-2005 09:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration