[Csync2] Re: Building csync2-1.29 on Fedora Core
Michael Mansour
mic at npgx.com.au
Thu Jan 5 05:36:10 CET 2006
Hi Clifford,
Just so you know, I also manually applied the changes in the patch below to
configure.ac file, then ran the autogen.sh to recreate the configure script,
and it still gave the same problem:
# ./autogen.sh
+ aclocal-1.7
+ autoheader
+ automake-1.7 --add-missing --copy
+ autoconf
+ '[' '' = clean ']'
# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for bison... bison -y
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for rs_sig_file in -lrsync... yes
checking for sqlite_exec in -lsqlite... yes
checking for libgnutls-config... /usr/bin/libgnutls-config
checking for libgnutls - version >= 1.0.0... yes
checking for SSL_new in -lgnutls-openssl... no
configure: error: libgnutls-openssl is required
Note that I'm using SL42 (RHEL4 Update 2) for this.
Thanks and regards,
Michael.
> 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--
>
> Just apply this patch and re-create the configure script by running
> ./autogen.sh in the csync2 source tree.
>
> The problem is that the fedora core libgnutls-openssl.so library is broken
> in a way that it does not contain the runtime dependency to libgnutls.so
> and libtasn1.so. The make it even worse, Fedora Core does not
> provide the libtasn1 aclocal file so the proper configure.ac could
> not be compiled to a configure script on FC. (Usually the aclocal
> files are contained in the *-devel packages. But in the case of
> libtasn1, the header file is part of the libtasn1 package and there
> is no libtasn1-devel..)
>
> yours,
> - clifford
>
> --
> SSSS PPPP L The SPL Programming Language
> S P P L http://www.clifford.at/spl/
> SSSS PPPP L ----------------------------------------------------
> S P L An object oriented, stateful, simple, small, c-like,
> SSSS P LLLL embeddable, feature rich, dynamic scripting language
>
> "They that can give up essential liberty to obtain a little
> temporary safety deserve neither liberty nor safety." -- Benjamin
> Franklin, Historical Review of Pennsylvania, 1759
------- End of Original Message -------
More information about the Csync2
mailing list