File libopensync-update-gcc48.patch of Package libopensync-plugin-opie
--- configure.ac.orig
+++ configure.ac
@@ -31,9 +31,9 @@ CFLAGS=$OLD_CFLAGS
AC_CHECK_LIB(curl,curl_global_init,,AC_MSG_ERROR(You must have libcurl installed.))
-AC_ISC_POSIX
-AC_PROG_CC
-AM_PROG_CC_STDC
+AC_PROG_CC_STDC
+AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
AC_HEADER_STDC
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
--- src/opie_qcop.c.orig
+++ src/opie_qcop.c
@@ -545,7 +545,7 @@ static void opie_base64_init(char *rank)
{
int i;
- memset(rank, 0xff, sizeof(rank));
+ memset(rank, 0xff, strlen(rank));
for (i=0;i<64;i++) {
rank[(unsigned int)base64_alphabet[i]] = i;
}
--- src/Makefile.am.orig
+++ src/Makefile.am
@@ -2,8 +2,8 @@ plugindir=@OPENSYNC_PLUGINDIR@
configdir=@OPENSYNC_CONFIGDIR@
formatsdir=@OPENSYNC_FORMATSDIR@
opensyncheaderdir=@OPENSYNC_HEADERDIR@
-
-AM_CFLAGS = @PACKAGE_CFLAGS@ -Wall -Werror
+AM_CPPFLAGS = -include config.h
+AM_CFLAGS = @PACKAGE_CFLAGS@ -Wall
EXTRA_DIST = \
opie-sync \
@@ -24,11 +24,11 @@ opensyncheader_HEADER = opie_sync.h
formats_LTLIBRARIES = opie.la
opie_la_SOURCES = opie_format.c opie_xml.c
-opie_la_LDFLAGS = -avoid-version -export-dynamic -module
+opie_la_LDFLAGS = -no-undefined -avoid-version -module -shared -export-dynamic
opie_la_LIBADD = @PACKAGE_LIBS@ @LIBS@
plugin_LTLIBRARIES = opie_sync.la
opie_sync_la_SOURCES = opie_sync.c opie_qcop.c opie_comms.c opie_xml.c
-opie_sync_la_LDFLAGS = -avoid-version -export-dynamic -module
+opie_sync_la_LDFLAGS = -no-undefined -avoid-version -module -shared -export-dynamic
opie_sync_la_LIBADD = @PACKAGE_LIBS@ @LIBS@