Hi developers,
boinc fails with newer gcc with some strange errors:
libtool: link: /usr/bin/g++ -pthread -g -O2 -fPIE -fstack-protector-strong
-Wformat -Werror=format-security -Wall -O3 -funroll-loops -fforce-addr
-ffast-math -Wall -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z -Wl,relro -Wl,-z
-Wl,now -flto -Wl,--no-add-needed -o parse_test parse_test-parse_test.o
../lib/.libs/libboinc.a -L/usr/lib -pthread
libtool: link: /usr/bin/g++ -pthread -g -O2 -fPIE -fstack-protector-strong
-Wformat -Werror=format-security -Wall -O3 -funroll-loops -fforce-addr
-ffast-math -Wall -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z -Wl,relro -Wl,-z
-Wl,now -flto -Wl,--no-add-needed -o crypt_prog crypt_prog-crypt_prog.o
libboinc_crypt.a ../lib/.libs/libboinc.a -L/usr/lib -L/usr -lssl -lcrypto
-pthread
../lib/.libs/libboinc.a(libboinc_la-md5_file.o): In function `md5_file(char
const*, char*, double&, bool)':
/build/buildd/boinc-7.4.14+dfsg/lib/md5_file.cpp:66: undefined reference to
`md5_init'
/build/buildd/boinc-7.4.14+dfsg/lib/md5_file.cpp:85: undefined reference to
`md5_append'
/build/buildd/boinc-7.4.14+dfsg/lib/md5_file.cpp:87: undefined reference to
`md5_finish'
../lib/.libs/libboinc.a(libboinc_la-md5_file.o): In function
`md5_block(unsigned char const*, int, char*)':
/build/buildd/boinc-7.4.14+dfsg/lib/md5_file.cpp:101: undefined reference to
`md5_init'
/build/buildd/boinc-7.4.14+dfsg/lib/md5_file.cpp:102: undefined reference to
`md5_append'
/build/buildd/boinc-7.4.14+dfsg/lib/md5_file.cpp:103: undefined reference to
`md5_finish'
../lib/.libs/libboinc.a(libboinc_la-md5_file.o): In function `md5_block':
/build/buildd/boinc-7.4.14+dfsg/lib/md5_file.cpp:101: undefined reference to
`md5_init'
/build/buildd/boinc-7.4.14+dfsg/lib/md5_file.cpp:102: undefined reference to
`md5_append'
/build/buildd/boinc-7.4.14+dfsg/lib/md5_file.cpp:103: undefined reference to
`md5_finish'
/build/buildd/boinc-7.4.14+dfsg/lib/md5_file.cpp:101: undefined reference to
`md5_init'
/build/buildd/boinc-7.4.14+dfsg/lib/md5_file.cpp:102: undefined reference to
`md5_append'
/build/buildd/boinc-7.4.14+dfsg/lib/md5_file.cpp:103: undefined reference to
`md5_finish'
after looking deeply seems that you cannot mix c and cpp files, so I think the
best option is to rename md5.c into md5.cpp
and trivially change Makefile.am.
I think for some reasons having a file called ".c" makes the compiler stop
exporting __cplusplus leading to a failure in md5.h
"#ifdef __cplusplus" preprocessor.
build log:
https://launchpadlibrarian.net/183139069/buildlog_ubuntu-utopic-amd64.boinc_7.4.14%2Bdfsg-4~utopic1_FAILEDTOBUILD.txt.gz
@Eric, can you please apply this patch or fix that ugly pkg-config called in
Makefile.am?
have many thanks
The other patch is a de.po typo fix, from Steffen Moeller (cc'd)
many thanks,
Gianfranco
--- a/html/languages/translations/de.po
+++ b/html/languages/translations/de.po
@@ -1073,8 +1073,8 @@
#: ../inc/prefs.inc:158
#, php-format
-msgid "% of the processors"
-msgstr "% der Prozessoren"
+msgid "%% of the processors"
+msgstr "%% der Prozessoren"
#: ../inc/prefs.inc:162
msgid "Use at most %1 Can be used to reduce CPU heat %2"
@@ -1083,8 +1083,8 @@
#: ../inc/prefs.inc:167
#, php-format
-msgid "% of CPU time"
-msgstr "% der Prozessorzeit"
+msgid "%% of CPU time"
+msgstr "%% der Prozessorzeit"
#: ../inc/prefs.inc:175 ../inc/prefs.inc:189
msgid "Disk: use at most"
@@ -1103,8 +1103,8 @@
#: ../inc/prefs.inc:191 ../inc/prefs.inc:201 ../inc/prefs.inc:206
#: ../inc/prefs.inc:211
#, php-format
-msgid "% of total"
-msgstr "% von Gesamt"
+msgid "%% of total"
+msgstr "%% von Gesamt"
#: ../inc/prefs.inc:194
msgid "Tasks checkpoint to disk at most every"
@@ -5338,9 +5338,10 @@
"our message boards are moderated.\n"
"Message board postings are subject to the following posting rules:\n"
msgstr ""
+"\n"
"Um eine angenehme Diskussion und den bestmöglichen Informationsfluss zu "
-"gewährleisten wird dieses Forum moderiert. Forenbeiträge müssen den "
-"folgenden Regeln entsprechen:"
+"gewährleisten, wird dieses Forum moderiert. Forenbeiträge müssen den "
+"folgenden Regeln entsprechen:\n"
#: ../user/moderation.php:30
msgid ""
Author: Steffen Moeller <[email protected]>
Description: Later versions of Debian come with libnotify 0.7.
Disclaimer: For backports, this patch needs to be disabled.
--- a/clientgui/Makefile.am
+++ b/clientgui/Makefile.am
@@ -100,9 +100,13 @@
../lib/error_numbers.h \
locale
-boincmgr_CPPFLAGS = $(AM_CPPFLAGS) $(WX_CPPFLAGS) $(SQLITE3_CPPFLAGS) $(LIBNOTIFY_CFLAGS) $(CLIENTGUIFLAGS) `pkg-config --cflags gtk+-2.0`
-boincmgr_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CXXFLAGS) $(SQLITE3_CPPFLAGS) $(LIBNOTIFY_CFLAGS) $(CLIENTGUIFLAGS) `pkg-config --cflags gtk+-2.0`
-boincmgr_LDFLAGS = $(LIBBOINC) $(SQLITE3_LIBS) $(LIBNOTIFY_LIBS) $(CLIENTGUILIBS) $(BOINC_EXTRA_LIBS) $(CLIENTLIBS) `pkg-config --libs gtk+-2.0` -lnotify
+#boincmgr_CPPFLAGS = $(AM_CPPFLAGS) $(WX_CPPFLAGS) $(SQLITE3_CPPFLAGS) $(LIBNOTIFY_CFLAGS) $(CLIENTGUIFLAGS) `pkg-config --cflags gtk+-2.0`
+boincmgr_CPPFLAGS = $(AM_CPPFLAGS) $(WX_CPPFLAGS) $(SQLITE3_CPPFLAGS) $(LIBNOTIFY_CFLAGS) $(CLIENTGUIFLAGS) $(GTK_CLFAGS)
+#boincmgr_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CXXFLAGS) $(SQLITE3_CPPFLAGS) $(LIBNOTIFY_CFLAGS) $(CLIENTGUIFLAGS) `pkg-config --cflags gtk+-2.0`
+boincmgr_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CXXFLAGS) $(SQLITE3_CPPFLAGS) $(LIBNOTIFY_CFLAGS) $(CLIENTGUIFLAGS) $(GTK_CFLAGS)
+#boincmgr_LDFLAGS = $(LIBBOINC) $(SQLITE3_LIBS) $(LIBNOTIFY_LIBS) $(CLIENTGUILIBS) $(BOINC_EXTRA_LIBS) $(CLIENTLIBS) `pkg-config --libs gtk+-2.0` -lnotify
+boincmgr_LDADD = $(LIBBOINC) $(SQLITE3_LIBS) $(LIBNOTIFY_LIBS) $(CLIENTGUILIBS) $(BOINC_EXTRA_LIBS) $(CLIENTLIBS) $(GTK_LIBS)
+
win_config.h: $(top_srcdir)/config.h
grep '#define.*BOINC.*VERSION' $^ > $@
--- a/configure.ac
+++ b/configure.ac
@@ -893,14 +893,12 @@
dnl ---------- libNotify --------------------------------------------------
if test "${enable_manager}" = yes ; then
- pkg_config_args=libnotify
- AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
-
- LIBNOTIFY_CFLAGS=`$PKG_CONFIG libnotify --cflags`
- LIBNOTIFY_LIBS=`$PKG_CONFIG libnotify --libs`
+ PKG_CHECK_MODULES(LIBNOTIFY, [libnotify >= 0.7.0])
+fi
- AC_SUBST(LIBNOTIFY_CFLAGS)
- AC_SUBST(LIBNOTIFY_LIBS)
+dnl ---------- GTK2 -------------------------------------------------------
+if test "${enable_manager}" = yes ; then
+ PKG_CHECK_MODULES(GTK, [gtk+-2.0])
fi
dnl ---------- Sqlite3 ----------------------------------------------------
@@ -1057,7 +1055,7 @@
],
[enable_wx_debug="no"])
-CLIENTGUILIBS="${WX_LIBS} ${SQLITE3_LIBS} ${GTK_LIBS}"
+CLIENTGUILIBS="${WX_LIBS} ${SQLITE3_LIBS}"
if test "${enable_client_release}" = "yes" ; then
if test "x${WX_LIBS_STATIC}" = "x" ; then
_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.