Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: devel

Error building Mail::ClamAV after clamav ABI change

 

 

ClamAV devel RSS feed   Index | Next | Previous | View Threaded


rbgarga at gmail

Dec 18, 2007, 8:18 AM

Post #1 of 4 (1596 views)
Permalink
Error building Mail::ClamAV after clamav ABI change

Hello,

After last clamav ABI change on 0.92, i'm testing all related packages
on FreeBSD ports to make the update. But one of clamav dependant ports
didn't build. I've contacted maintainer and author, but, anyway, i'm
sending it here, maybe it's easy to fix and i can make a patch to fix
the port.

It's about a perl modules Mail::ClamAV, here is the buildlog:

http://tb3.droso.net/errors/7-garga/p5-Mail-ClamAV-0.20_1.log

Any idea to fix it?
--
Renato Botelho
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


sherpya at netfarm

Dec 18, 2007, 8:28 AM

Post #2 of 4 (1482 views)
Permalink
Re: Error building Mail::ClamAV after clamav ABI change [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Renato Botelho wrote:
> Hello,
>
> After last clamav ABI change on 0.92, i'm testing all related packages
> on FreeBSD ports to make the update. But one of clamav dependant ports
> didn't build. I've contacted maintainer and author, but, anyway, i'm
> sending it here, maybe it's easy to fix and i can make a patch to fix
> the port.
>
> It's about a perl modules Mail::ClamAV, here is the buildlog:
>
> http://tb3.droso.net/errors/7-garga/p5-Mail-ClamAV-0.20_1.log
>
> Any idea to fix it?

a software should not use directly CL_xxx constant
but call cl_strerror() passing the return code

Let me look at the code, the fix may be trivial

Regards

- --
Gianluigi Tiesi <sherpya [at] netfarm>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHZ/Ux3UE5cRfnO04RAknRAJ0b6oRB8Bny35KRzj4jmOJ6aDptngCfRzuN
p4Ucn+zl4ITpbuVZnaDL/bw=
=j01v
-----END PGP SIGNATURE-----
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


sherpya at netfarm

Dec 18, 2007, 8:36 AM

Post #3 of 4 (1489 views)
Permalink
Re: Error building Mail::ClamAV after clamav ABI change [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm not expert using perl
and this module uses a strange way
to wrap the c api
As I see the error code handling
is wrong by design, you may fix it
by removing the offending defines from ClamAV.pm

Regards

- --
Gianluigi Tiesi <sherpya [at] netfarm>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHZ/cc3UE5cRfnO04RAgFpAJ9wIc9yWHr9QBIEagYHlQnSpdEFEwCePYB9
SSt2ivg9iQX21BuKv55qGy4=
=LZ1I
-----END PGP SIGNATURE-----
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


rbgarga at gmail

Dec 18, 2007, 8:44 AM

Post #4 of 4 (1494 views)
Permalink
Re: Error building Mail::ClamAV after clamav ABI change [In reply to]

On Dec 18, 2007 2:36 PM, Gianluigi Tiesi <sherpya [at] netfarm> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I'm not expert using perl
> and this module uses a strange way
> to wrap the c api
> As I see the error code handling
> is wrong by design, you may fix it
> by removing the offending defines from ClamAV.pm

Yes, that worked. I removed these 4 CL_* and it built fine

--
Renato Botelho
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

ClamAV devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.