Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 253729 - gnome-base/gnome-vfs-2.24.0 fails to build with >=net-libs/gnutls-2.7.1
Summary: gnome-base/gnome-vfs-2.24.0 fails to build with >=net-libs/gnutls-2.7.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords: NeedPatch
Depends on:
Blocks: 253709
  Show dependency tree
 
Reported: 2009-01-04 15:19 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2009-03-08 21:59 UTC (History)
1 user (show)

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


Attachments
patch which solves the problem (gnome-vfs-2.24.0-gnutls-check.patch,1.59 KB, patch)
2009-03-07 20:26 UTC, Romain Perier (RETIRED)
Details | Diff
the new ebuild including the patch (gnome-vfs-2.24.0-r1.ebuild,3.10 KB, text/plain)
2009-03-07 20:27 UTC, Romain Perier (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-01-04 15:19:20 UTC
...
checking gcrypt.h usability... yes                                                                                                                           
checking gcrypt.h presence... yes                                                                                                                            
checking for gcrypt.h... yes                                                                                                                                 
checking for libgnutls-config... no                                                                                                                          
checking for libgnutls - version >= 1.0.0... no                                                                                                              
*** The libgnutls-config script installed by LIBGNUTLS could not be found                                                                                    
*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in                                                                                         
*** your path, or set the LIBGNUTLS_CONFIG environment variable to the                                                                                       
*** full path to libgnutls-config.                                                                                                                           
checking for libgnutls-config... (cached) no                                                                                                                 
checking for libgnutls - version >= 0.5.1... no                                                                                                              
*** The libgnutls-config script installed by LIBGNUTLS could not be found                                                                                    
*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in                                                                                         
*** your path, or set the LIBGNUTLS_CONFIG environment variable to the                                                                                       
*** full path to libgnutls-config.                                                                                                                           
configure: error: Unable to find GNUTLS


'libgnutls-config' and 'libgnutls-extra-config' scripts have been removed in
>=net-libs/gnutls-2.7.1, so 'pkg-config gnutls' / 'pkg-config gnutls-extra'
should be used.
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-01-04 15:39:57 UTC
your report is missing the usual needed information.
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-01-12 22:12:22 UTC
please get back to us.
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-01-13 16:23:46 UTC
Portage 12494-svn (default/linux/amd64/2008.0/desktop, gcc-4.3.2-r2
glibc-2.8_p20080602-r1, 2.6.27-tuxonice x86_64)
=================================================================
Timestamp of tree: Tue, 13 Jan 2009 07:43:25 +0100
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.6.1, 3.0.0-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.1-r1
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.51.0.1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
/etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild
/etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -pipe -O2"
DISTDIR="/usr/distfiles"
FEATURES="buildsyspkg collision-protect distlocks metadata-transfer
parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch
userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl
http://gentoo.po.opole.pl http://gentoo.ynet.sk/pub http://mirror.gentoo.no
http://mirrors.evolva.ro/gentoo http://ftp.du.se/pub/os/gentoo
http://ftp.linux.ee/pub/gentoo/distfiles
ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo http://ftp.lug.ro/gentoo
http://src.gentoo.pl"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LDFLAGS="-Wl,-O1,--as-needed,--gc-sections,--hash-style=gnu,--sort-common"
LINGUAS="pl en la lt"
MAKEOPTS="-j3"
PKGDIR="/usr/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/manifest1_obsolete --prune-empty-dirs"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
--exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/repositories/local
/usr/repositories/python-experimental"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa apache2 arts audiofile bash-completion
berkdb bzip2 cairo caps cddb cdparanoia cdr cracklib crypt cscope ctype cups
curl curlwrappers cxx dbus dga directfb dri dts dvb dvd dvdr dvdread emboss
encode enscript exif expat fam fbcon ffmpeg firefox flac foomaticdb ftp gcj gd
gdbm ggi gif gimp glut gmp gnutls gpm graphviz gstreamer gtk guile hal hardened
iconv idn imagemagick imlib ipv6 java javascript jbig jpeg jpeg2k kde
kdeenablefinal kdehiddenvisibility lame lash lcms ldap libcaca lm_sensors lzo
mad matroska matrox memlimit mhash mikmod mime mmap mmx mng motif mp3 mpeg mpi
mplayer musepack ncurses netcdf nls nptl nsplugin odbc ogg openal openexr
opengl pam pcntl pcre pda pdf perl png portaudio posix ppds python qt3 qt4
quicktime rdesktop readline ruby sasl scanner sdl session shorten simplexml
slang slp sndfile soap sockets speex spell sqlite sqlite3 sse sse2 ssl
subversion svg svga symlink szip tcl tcpd theora threads tiff tk truetype
unicode usb vcd vim-syntax vorbis wavpack win32codecs wmf wxwindows x264 x86
xattr xcb xcomposite xine xml xmlrpc xpm xprint xscreensaver xsl xv xvid zlib"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix
dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter
mulaw multi null plug rate route share shm softvol"
APACHE2_MODULES="access_compat actions alias auth_basic authn_alias authn_anon
authn_core authn_dbm authn_default authn_file authz_core authz_dbm
authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache
dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache
filter headers include info log_config logio mem_cache mime mime_magic
negotiation rewrite serf setenvif speling status unique_id userdir usertrack
vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse"
KERNEL="linux" LINGUAS="pl en la lt" USERLAND="GNU" VIDEO_CARDS="vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS,
PORTAGE_COMPRESS_FLAGS
Comment 4 Romain Perier (RETIRED) gentoo-dev 2009-03-07 17:11:38 UTC
the problem is due by gnutls itself which doesn't provide libgnutls*.m4 aclocal extension since apparently 2.7 version (so 2.7.4 and 2.7.6 in portage), i think that the better way to solve the problem is to patch the configure.in of gnome-vfs by replacing AM_PATH_LIBGNUTLS call (which doesn't exist in >=gnutls 2.7.0) to PKG_CHECK_MODULE macro.

i'll to write a patch to fix it ;)
Comment 5 Romain Perier (RETIRED) gentoo-dev 2009-03-07 17:44:14 UTC
a problem could be occur with gnutls pkg-config module, because the LDFLAGS between this last and libgnutls*-config script itself are different, and these script are not provided by >=gnutls-2.7 too, we could have an "undefined reference to" message error at compile time...

any suggestion ?
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-03-07 18:13:35 UTC
(In reply to comment #5)
> a problem could be occur with gnutls pkg-config module, because the LDFLAGS
> between this last and libgnutls*-config script itself are different, and
> these script are not provided by >=gnutls-2.7 too, we could have an
> "undefined reference to" message error at compile time...
> 
> any suggestion ?

Just use 'pkg-config gnutls --libs'.
Comment 7 Romain Perier (RETIRED) gentoo-dev 2009-03-07 18:55:14 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > a problem could be occur with gnutls pkg-config module, because the LDFLAGS
> > between this last and libgnutls*-config script itself are different, and
> > these script are not provided by >=gnutls-2.7 too, we could have an
> > "undefined reference to" message error at compile time...
> > 
> > any suggestion ?
> 
> Just use 'pkg-config gnutls --libs'.

yes i know, but the problem is that LDFLAGS returned by this command are different that these returned by libgnutls-config --libs, so it could be generated aventually error at compile time.

Comment 8 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-03-07 19:08:30 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > (In reply to comment #5)
> > > a problem could be occur with gnutls pkg-config module, because the LDFLAGS
> > > between this last and libgnutls*-config script itself are different, and
> > > these script are not provided by >=gnutls-2.7 too, we could have an
> > > "undefined reference to" message error at compile time...
> > > 
> > > any suggestion ?
> > 
> > Just use 'pkg-config gnutls --libs'.
> 
> yes i know, but the problem is that LDFLAGS returned by this command

'pkg-config gnutls --libs' prints libraries, not any LDFLAGS.

> are different that these returned by libgnutls-config --libs, so it could be
> generated aventually error at compile time.

'pkg-config gnutls --libs' prints correct libraries. What is printed by `libgnutls-config --libs`?
Comment 9 Romain Perier (RETIRED) gentoo-dev 2009-03-07 19:22:08 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > (In reply to comment #6)
> > > (In reply to comment #5)
> > > > a problem could be occur with gnutls pkg-config module, because the LDFLAGS
> > > > between this last and libgnutls*-config script itself are different, and
> > > > these script are not provided by >=gnutls-2.7 too, we could have an
> > > > "undefined reference to" message error at compile time...
> > > > 
> > > > any suggestion ?
> > > 
> > > Just use 'pkg-config gnutls --libs'.
> > 
> > yes i know, but the problem is that LDFLAGS returned by this command
> 
> 'pkg-config gnutls --libs' prints libraries, not any LDFLAGS.
> 
> > are different that these returned by libgnutls-config --libs, so it could be
> > generated aventually error at compile time.
> 
> 'pkg-config gnutls --libs' prints correct libraries. What is printed by
> `libgnutls-config --libs`?

yes pkg-config gnutls --libs print libraries name with -l option, which gcc traited as linker options, so LDFLAGS, this is not the problem.

$ libgnutils-config --libs
-L/usr/lib64 -lgnutls -L/usr/lib64 -ltasn1 -L/usr/lib64 -lgcrypt -lgpg-error

$ pkg-config gnutls --libs
-lgnutls

with gnutls 2.6.4, i'll try with the last gnutls version, so after i'll attach the patch
Comment 10 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-03-07 19:31:05 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > (In reply to comment #7)
> > > (In reply to comment #6)
> > > > (In reply to comment #5)
> > > > > a problem could be occur with gnutls pkg-config module, because the LDFLAGS
> > > > > between this last and libgnutls*-config script itself are different, and
> > > > > these script are not provided by >=gnutls-2.7 too, we could have an
> > > > > "undefined reference to" message error at compile time...
> > > > > 
> > > > > any suggestion ?
> > > > 
> > > > Just use 'pkg-config gnutls --libs'.
> > > 
> > > yes i know, but the problem is that LDFLAGS returned by this command
> > 
> > 'pkg-config gnutls --libs' prints libraries, not any LDFLAGS.
> > 
> > > are different that these returned by libgnutls-config --libs, so it could be
> > > generated aventually error at compile time.
> > 
> > 'pkg-config gnutls --libs' prints correct libraries. What is printed by
> > `libgnutls-config --libs`?
> 
> yes pkg-config gnutls --libs print libraries name with -l option, which gcc
> traited as linker options, so LDFLAGS, this is not the problem.
> 
> $ libgnutils-config --libs
> -L/usr/lib64 -lgnutls -L/usr/lib64 -ltasn1 -L/usr/lib64 -lgcrypt -lgpg-error

/usr/lib64 is in default library search path on amd64, so -L/usr/lib64 isn't needed.
libtasn1, libgcrypt and libgpg-error are dependencies of GnuTLS.

> $ pkg-config gnutls --libs
> -lgnutls
Comment 11 Romain Perier (RETIRED) gentoo-dev 2009-03-07 20:26:07 UTC
Problem was reproduicible on my amd64, please find in attachment :
- In first a patch which normaly fixs the problem.
- In second the new ebuild including the patch
Comment 12 Romain Perier (RETIRED) gentoo-dev 2009-03-07 20:26:53 UTC
Created attachment 184268 [details, diff]
patch which solves the problem
Comment 13 Romain Perier (RETIRED) gentoo-dev 2009-03-07 20:27:20 UTC
Created attachment 184270 [details]
the new ebuild including the patch
Comment 14 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-03-08 21:59:41 UTC
fixed in 2.24.0-r1 and reported upstream. Thanks for the patch.