Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge net-libs/gnutls-3.3.17.1 fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
lutel
Tux's lil' helper
Tux's lil' helper


Joined: 19 Oct 2003
Posts: 110
Location: Pomroczna

PostPosted: Fri Sep 25, 2015 7:14 pm    Post subject: emerge net-libs/gnutls-3.3.17.1 fails Reply with quote

Hi,

emerge nettle gnutls

checking for cpuid.h... yes
checking for NETTLE... yes
checking for HOGWEED... no
configure: error:
***
*** Libhogweed (nettle's companion library) was not found. Note that you must compile nettle with gmp support.

in the config log i get:

Code:
configure:8449: checking for HOGWEED
configure:8457: $PKG_CONFIG --exists --print-errors "hogweed >= 2.7"
Package # was not found in the pkg-config search path.
Perhaps you should add the directory containing `#.pc'
to the PKG_CONFIG_PATH environment variable
Package '#', required by 'hogweed', not found
configure:8460: $? = 1
configure:8475: $PKG_CONFIG --exists --print-errors "hogweed >= 2.7"
Package # was not found in the pkg-config search path.
Perhaps you should add the directory containing `#.pc'
to the PKG_CONFIG_PATH environment variable
Package '#', required by 'hogweed', not found
configure:8478: $? = 1
Package # was not found in the pkg-config search path.
Perhaps you should add the directory containing `#.pc'
to the PKG_CONFIG_PATH environment variable
Package '#', required by 'hogweed', not found
configure:8506: result: no
configure:8509: error:
  ***
  *** Libhogweed (nettle's companion library) was not found. Note that you must compile nettle with gmp support.


I have nettle compiled with gmp, and library is in correct place...

ls -al /usr/lib/libhogweed.so*
lrwxrwxrwx 1 root root 17 wrz 25 20:18 /usr/lib/libhogweed.so -> libhogweed.so.4.1
lrwxrwxrwx 1 root root 17 wrz 25 20:18 /usr/lib/libhogweed.so.4 -> libhogweed.so.4.1
-rwxr-xr-x 1 root root 223016 wrz 25 20:18 /usr/lib/libhogweed.so.4.1

Im not able to compile any other version of gnutls as well...

Any ideas?
Back to top
View user's profile Send private message
russK
l33t
l33t


Joined: 27 Jun 2006
Posts: 665

PostPosted: Fri Sep 25, 2015 10:36 pm    Post subject: Reply with quote

lutel,

Which package failed, nettle or gnutls ?

It sounds like nettle needs the gmp USE flag in order to provide libhogweed. What are the USE flags you have for the nettle package?

For reference, I have these:
Code:
$ equery uses nettle net-libs/gnutls
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for dev-libs/nettle-2.7.1-r4:
 U I
 + + abi_x86_32  : 32-bit (x86) libraries
 - - doc         : Add extra documentation (API, Javadoc, etc). It is recommended to enable per
                   package instead of globally
 + + gmp         : Add support for dev-libs/gmp (GNU MP library)
 - - static-libs : Build static versions of dynamic libraries as well
 - - test        : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2
                   handles this internally, so don't set it in make.conf/package.use anymore

 * Found these USE flags for net-libs/gnutls-3.3.17.1:
 U I
 + + abi_x86_32    : 32-bit (x86) libraries
 + + crywrap       : (Restricted to >=net-libs/gnutls-3.2.10)
                     Build the crywrap TLS proxy service
 + + cxx           : Build support for C++ (bindings, extra libraries, code generation, ...)
 - - dane          : (Restricted to >=net-libs/gnutls-3.1.3)
                     Build libgnutls-dane, implementing DNS-based Authentication of Named Entities.
                     Requires net-dns/unbound
 - - doc           : Add extra documentation (API, Javadoc, etc). It is recommended to enable per
                     package instead of globally
 - - examples      : Install examples, usually source code
 - - guile         : Add support for the guile Scheme interpreter
 - - linguas_cs    : Czech locale
 - - linguas_de    : German locale
 + + linguas_en    : English locale
 - - linguas_fi    : Finnish locale
 - - linguas_fr    : French locale
 - - linguas_it    : Italian locale
 - - linguas_ms    : Malay locale
 - - linguas_nl    : Dutch locale
 - - linguas_pl    : Polish locale
 - - linguas_sv    : Swedish locale
 - - linguas_uk    : Ukrainian locale
 - - linguas_vi    : Vietnamese locale
 - - linguas_zh_CN : Chinese locale for Peoples Republic of China
 + + nls           : Add Native Language Support (using gettext - GNU locale utilities)
 + + openssl       : Build openssl compatibility libraries
 + + pkcs11        : Add support for PKCS#11 through app-crypt/p11-kit
 - - static-libs   : Build static versions of dynamic libraries as well
 - - test          : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2
                     handles this internally, so don't set it in make.conf/package.use anymore
 + + zlib          : Add support for zlib (de)compression
Back to top
View user's profile Send private message
lutel
Tux's lil' helper
Tux's lil' helper


Joined: 19 Oct 2003
Posts: 110
Location: Pomroczna

PostPosted: Fri Sep 25, 2015 10:55 pm    Post subject: Reply with quote

Hi RussK,

Yes I have gmp flag set, the emerge fails on gnutls...

Code:
equery uses nettle net-libs/gnutls
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for dev-libs/nettle-3.1.1:
 U I
 - - abi_x86_32        : 32-bit (x86) libraries
 + + cpu_flags_x86_aes : Enable support for Intel's AES instruction set (AES-NI)
 - - doc               : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
 + + gmp               : Add support for dev-libs/gmp (GNU MP library)
 - - static-libs       : Build static versions of dynamic libraries as well
 - - test              : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in make.conf/package.use
                         anymore

 * Found these USE flags for net-libs/gnutls-3.3.17.1:
 U I
 - - abi_x86_32    : 32-bit (x86) libraries
 + + crywrap       : (Restricted to >=net-libs/gnutls-3.2.10)
                     Build the crywrap TLS proxy service
 + + cxx           : Build support for C++ (bindings, extra libraries, code generation, ...)
 - - dane          : (Restricted to >=net-libs/gnutls-3.1.3)
                     Build libgnutls-dane, implementing DNS-based Authentication of Named Entities. Requires net-dns/unbound
 - - doc           : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
 - - examples      : Install examples, usually source code
 - - guile         : Add support for the guile Scheme interpreter
 - - linguas_cs    : Czech locale
 - - linguas_de    : German locale
 + + linguas_en    : English locale
 - - linguas_fi    : Finnish locale
 - - linguas_fr    : French locale
 - - linguas_it    : Italian locale
 - - linguas_ms    : Malay locale
 - - linguas_nl    : Dutch locale
 - - linguas_pl    : Polish locale
 - - linguas_sv    : Swedish locale
 - - linguas_uk    : Ukrainian locale
 - - linguas_vi    : Vietnamese locale
 - - linguas_zh_CN : Chinese locale for Peoples Republic of China
 + + nls           : Add Native Language Support (using gettext - GNU locale utilities)
 + + openssl       : Build openssl compatibility libraries
 - - pkcs11        : Add support for PKCS#11 through app-crypt/p11-kit
 - - static-libs   : Build static versions of dynamic libraries as well
 - - test          : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in make.conf/package.use anymore
 + + zlib          : Add support for zlib (de)compression
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Fri Sep 25, 2015 11:42 pm    Post subject: Re: emerge net-libs/gnutls-3.3.17.1 fails Reply with quote

look at your pkg-config trouble, from /var/tmp/portage.../temp/environment file you should see portage settings its path to
Code:
         export PKG_CONFIG_LIBDIR=${EPREFIX}/usr/$(get_libdir)/pkgconfig;


if it's not well set, or you lack the .pc (so in this case that file /usr/lib/pkgconfig/hogweed.pc) you're doom
Back to top
View user's profile Send private message
lutel
Tux's lil' helper
Tux's lil' helper


Joined: 19 Oct 2003
Posts: 110
Location: Pomroczna

PostPosted: Sat Sep 26, 2015 6:47 am    Post subject: Reply with quote

Both seems to be all right, the emerge still fails.

Quote:

cat /var/tmp/portage/net-libs/gnutls-3.3.17.1/temp/environment | grep PKG_CONFIG_LIBDIR
export PKG_CONFIG_LIBDIR=${EPREFIX}/usr/$(get_libdir)/pkgconfig;



Quote:
ls -al /usr/lib/pkgconfig/hogweed*
-rw-r--r-- 1 root root 527 wrz 25 23:23 /usr/lib/pkgconfig/hogweed.pc
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sat Sep 26, 2015 9:57 am    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=546092
Back to top
View user's profile Send private message
lutel
Tux's lil' helper
Tux's lil' helper


Joined: 19 Oct 2003
Posts: 110
Location: Pomroczna

PostPosted: Sat Sep 26, 2015 11:52 am    Post subject: Reply with quote

That was it, unmasked 0.9.11 pkgconf and emerged gnutls successfully. Thank you! :)
Back to top
View user's profile Send private message
lutel
Tux's lil' helper
Tux's lil' helper


Joined: 19 Oct 2003
Posts: 110
Location: Pomroczna

PostPosted: Sat Sep 26, 2015 11:54 am    Post subject: Reply with quote

On one of the systems where I could emerge gnutls I had dev-util/pkgconfig instead of dev-util/pkgconf installed - which one I should use?
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sat Sep 26, 2015 12:00 pm    Post subject: Reply with quote

On my system i still have pkgconfig and gnutls is happy with it.
Code:
emerge -pv pkgconf gnutls

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] dev-util/pkgconf-0.9.11::gentoo  USE="pkg-config -strict" 85 KiB
[uninstall     ] dev-util/pkgconfig-0.28-r3::gentoo  USE="-hardened -internal-glib"
[blocks b      ] dev-util/pkgconfig ("dev-util/pkgconfig" is blocking dev-util/pkgconf-0.9.11)
[blocks b      ] dev-util/pkgconf[pkg-config] ("dev-util/pkgconf[pkg-config]" is blocking dev-util/pkgconfig-0.28-r3)
[ebuild   R    ] net-libs/gnutls-3.3.17.1::gentoo  USE="crywrap cxx nls openssl zlib -dane -doc -examples -guile -pkcs11 -static-libs {-test}" LINGUAS="fr -cs -de -en -fi -it -ms -nl -pl -sv -uk -vi -zh_CN" 0 KiB

I think the problem is older pkgconf version only, i just keep pkgconfig until someone depends on pkgconf really and pkgconfig gets removed.
Back to top
View user's profile Send private message
saellaven
l33t
l33t


Joined: 23 Jul 2006
Posts: 648

PostPosted: Sat Sep 26, 2015 1:24 pm    Post subject: Reply with quote

Same issue here. I masked =dev-libs/nettle-3.1.1, emerged dev-libs/nettle-2.7.1-r4 and gnutls compiled fine again. I haven't had a chance to see what's going on under the hood.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum