Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 431888 - net-analyzer/wireshark USE="ssl -gcrypt" - In file included from packet-dtls.c:64:0: packet-ssl-utils.h:36:20: fatal error: gcrypt.h: No such file or directory
Summary: net-analyzer/wireshark USE="ssl -gcrypt" - In file included from packet-dtls....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
: 468818 469018 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-18 17:44 UTC by Jeroen Roovers (RETIRED)
Modified: 2014-03-21 15:40 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
net-analyzer:wireshark-1.8.1:20120818-172140.log (20120818-172140.log,659.44 KB, text/plain)
2012-08-18 17:44 UTC, Jeroen Roovers (RETIRED)
Details
wireshark-1.10.0_rc1 build.log.gz (build.log.gz,66.38 KB, application/x-gzip)
2013-05-06 02:50 UTC, Ben Kohler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2012-08-18 17:44:13 UTC
Created attachment 321650 [details]
net-analyzer:wireshark-1.8.1:20120818-172140.log

The gnutls/libgcrypt dependencies need looking into.
Comment 1 Rick Farina (Zero_Chaos) gentoo-dev 2012-08-31 19:05:50 UTC
You mean you can't make it do this?

[ebuild   R   ~] net-analyzer/wireshark-1.8.2-r1  USE="caps geoip gtk ipv6 kerberos lua pcap portaudio python smi ssl zlib -adns -doc -doc-pdf -gcrypt -libadns -profile (-selinux)"
Comment 2 Dmitri Bachtin 2012-09-11 15:32:36 UTC
I can confirm this issue. 

Before installing libgcrypt a build with -gcrypt failed (only caps, ipv6, ssl, zlib enabled).
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-10-03 17:28:31 UTC
Should be fixed in 1.8.3-r1. Please test and confirm.
Comment 4 Bartosz Brachaczek 2012-10-06 21:21:53 UTC
I tested wireshark with USE="ssl -ipsec" (as gcrypt USE flag has been renamed to ipsec) and the SSL dissector doesn't work at all, it's not even compiled in. It's because it depends on both gnutls and libgcrypt.

And because compiling wireshark with libgcrypt enables more features than just ipsec decryption[1], I don't think the rename was good.

[1] Run `grep -r '#if.*LIBGCRYPT' .|cut -f1 -d':'|sort|uniq` in wireshark sources to get a list of files that include features depending by libgcrypt, packet-ipsec.c is just one of 17. So configure option description, which mentions only ipsec, is wrong.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2012-10-07 18:45:12 UTC
How about USE=crypto, then?
Comment 6 Bartosz Brachaczek 2012-10-07 21:00:17 UTC
(In reply to comment #5)
> How about USE=crypto, then?

Sounds good. And, because the SSL dissector requires --with-gcrypt, REQUIRED_USE="ssl? ( crypto )", which would allow to drop the "ssl? ( dev-libs/libgcrypt )" dependency.

BTW, did you notice my feedback in bug #436212? I'm asking because I don't see you being the assignee or CC'ed.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2012-10-08 18:28:50 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > How about USE=crypto, then?
> 
> Sounds good.

I picked USE=crypt instead as that is widely used in the tree already.

> And, because the SSL dissector requires --with-gcrypt,
> REQUIRED_USE="ssl? ( crypto )", which would allow to drop the "ssl? (
> dev-libs/libgcrypt )" dependency.

This is where it gets tricky. Apparently with USE=ssl we do not even set --with-ssl at this time, unless we count in the ugly hack enabled only when `use kerberos'.

> BTW, did you notice my feedback in bug #436212? I'm asking because I don't
> see you being the assignee or CC'ed.

I read netmon@g.o. Also, I am trying to come up with a single fix for all these issues, so it's a matter of getting to grips with the way the configure script works - and maybe we should patch that up as well.
Comment 8 Bartosz Brachaczek 2012-10-08 20:37:49 UTC
(In reply to comment #7)
> I picked USE=crypt instead as that is widely used in the tree already.

Ah, right. I thought "crypto" is what is already used widely.

> This is where it gets tricky. Apparently with USE=ssl we do not even set
> --with-ssl at this time, unless we count in the ugly hack enabled only when
> `use kerberos'.

And it's correct. Wireshark doesn't use OpenSSL at all. It seems to me that the main reason for the existence of --with-ssl in Wireshark is to make people aware that there is a potential licensing problem if Wireshark is linked to krb5 library which is linked to OpenSSL. Of course you can patch configure to avoid that hack in the ebuild.
Comment 9 Ben Kohler gentoo-dev 2013-05-06 02:50:29 UTC
Created attachment 347480 [details]
wireshark-1.10.0_rc1 build.log.gz

I'm getting a build failure today with wireshark-1.10.0_rc1[-crypt] that looks very similar to this one.  Is this basically the same bug or should I open a fresh report?
Comment 10 Bartosz Brachaczek 2013-05-06 23:26:34 UTC
(In reply to comment #9)
To me it's the same issue. As I've already stated, with current build system setup in Wireshark, crypto USE flag should be required if ssl USE flag is enabled.
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-08 02:19:05 UTC
(In reply to comment #6)
> And, because the SSL dissector requires --with-gcrypt,
> REQUIRED_USE="ssl? ( crypto )", which would allow to drop the "ssl? (
> dev-libs/libgcrypt )" dependency.

Fixed in wireshark-1.8.6-r1 and wireshark-1.10.0_rc1.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-08 02:21:02 UTC
*** Bug 468818 has been marked as a duplicate of this bug. ***
Comment 13 Jeroen Roovers (RETIRED) gentoo-dev 2013-05-08 13:21:13 UTC
*** Bug 469018 has been marked as a duplicate of this bug. ***