After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 124725 - autogen.sh --enable-gnutls doesn't work with automake1.6/1.7
autogen.sh --enable-gnutls doesn't work with automake1.6/1.7
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: Build
2.4.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
Depends on:
Blocks:
 
 
Reported: 2003-10-15 22:43 UTC by Sebastien Bacher
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastien Bacher 2003-10-15 22:43:44 UTC
That's the build error:

./autogen.sh --prefix=/usr \
                --mandir=\$${prefix}/share/man \
                --infodir=\$${prefix}/share/info --sysconfdir=/etc \
                --without-openssl-libs --without-openssl-includes \
                --disable-gtk-doc \
                --enable-gnutls
.
.
checking for openssl... Package openssl was not found in the pkg-config
search path.
Perhaps you should add the directory containing `openssl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'openssl' found
checking for OpenSSL includes... no
checking for OpenSSL libraries... no
checking for libgnutls-config... /usr/bin/libgnutls-config
checking for libgnutls - version >= 0.5.1... yes
.
.
checking for getaddrinfo... yes
configure: error: conditional "HAVE_SSL" was never defined.
Usually this means the macro was only invoked conditionally.
make: *** [stampdir/configure] Erreur 1

-----------

The build works fine on the same system with automake1.4 (but not with
automake1.6)
Comment 1 Christophe Fergeau 2003-10-16 07:31:57 UTC
I quickly tested that yesterday evening,  it seems the problem is
caused  by the -without-openssl-libs --without-openssl-includes bit.
To reproduce it easily, you just need to add
REQUIRED_AUTOMAKE_VERSION=1.7 in autogen.sh
Comment 2 Christophe Fergeau 2003-10-16 12:21:31 UTC
Fixed in both head and gnome-2-4 branch
Comment 3 Sebastien Bacher 2004-01-04 15:10:22 UTC
This bug is not totally fixed, the ssl-modules.conf file is not
installed with this solution. A patch to fix that on gnome-vfs 2.4.1
is attached to the bug report (the patch is used in the Debian package).

The CVS seems to have change, I don't know if this patch is needed for
gnome2.5 branch.


diff -r -u gnome-vfs-2.4.1.old/configure.in gnome-vfs-2.4.1/configure.in
--- gnome-vfs-2.4.1.old/configure.in    2003-10-12 12:51:55.000000000
+0200
+++ gnome-vfs-2.4.1/configure.in        2003-12-28 21:34:00.000000000
+0100
@@ -376,6 +376,7 @@
 dnl OpenSSL
 dnl ******************************
  
+AM_CONDITIONAL(HAVE_SSL, false)
 AC_ARG_ENABLE(openssl, [  --disable-openssl       build without
openssl support])
 if test "x$enable_openssl" != "xno"; then
   PKG_CHECK_MODULES(OPENSSL, openssl, AM_CONDITIONAL(HAVE_SSL, true),[
@@ -455,6 +456,7 @@
   else
     AM_PATH_LIBGNUTLS(0.5.1, AC_DEFINE(HAVE_GNUTLS),
                       AC_MSG_ERROR([Unable to find GNUTLS]))
+    AM_CONDITIONAL(HAVE_SSL, true)
   fi
 fi


Comment 4 Christophe Fergeau 2004-01-22 12:30:41 UTC
Fixed in both branches (HEAD and 2-4)