[Csync2] Re: Building csync2-1.29 on Fedora Core

Michael Mansour mic at npgx.com.au
Thu Jan 5 05:31:27 CET 2006


Hi Clifford,

> Hi,
> 
> there are some problems with building csync2-1.29 on Fedora Core:
> 
> 	** configure output **
> 	checking for libgnutls - version >= 1.0.0... yes
> 	checking for SSL_new in -lgnutls-openssl... no
> 	configure: error: libgnutls-openssl is required
> 
> 	** config.log snippet **
> 	/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../libgnutls-openssl.so: 
> undefined reference to `asn1_delete_structure' 	/usr/lib/gcc/i386-
> redhat-linux/4.0.1/../../../libgnutls-openssl.so: undefined 
> reference to `asn1_create_element' 	/usr/lib/gcc/i386-redhat-
> linux/4.0.1/../../../libgnutls-openssl.so: undefined reference to
`asn1_der_decoding'
> 	collect2: ld returned 1 exit status
> 
> The following patch solves the issue:
> 
> --snip--
> 
> --- configure.ac        (revision 344)
> +++ configure.ac        (revision 345)
> @@ -51,8 +51,14 @@
>  )
>  AM_CONDITIONAL([PRIVATE_LIBSQLITE], [test -n 
> "$libsqlite_source_file"])
> 
> -# Check for libssl.
> +# Check for gnuTLS.
>  AM_PATH_LIBGNUTLS(1.0.0, , [ AC_MSG_ERROR([[gnuTLS not found; 
> install gnuTLS-devel package for your system]]) ]) + +# This is a 
> bloody hack for fedora core +CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS" 
> +LIBS="$LIBS $LIBGNUTLS_LIBS -ltasn1" + +# Check gnuTLS SSL 
> compatibility lib. AC_CHECK_LIB([gnutls-openssl], [SSL_new], , 
> [AC_MSG_ERROR(libgnutls-openssl is required)])
> 
>  AC_CONFIG_FILES([Makefile])
> 
> --snap--

I copied this into a "csync2.patch" file, then tried to apply it against a
fresh csync2-1.2.9 extraction:

# patch -p0 < csync2.patch
patching file configure.ac
patch: **** malformed patch at line 4: )

Any ideas?

Michael.


More information about the Csync2 mailing list