I checked this in.
-- David

On 06-Jul-2013 12:42 AM, Gianfranco Costamagna wrote:
Sending again to boinc-dev, Rom and David.

(with this patch everything is good so far, the problem I think is the
-as-needed gcc flag active by default on ubuntu)

thanks

Gianfranco

Sent from Yahoo! Mail on Android


--------------------------------------------------------------------------------
*From: * Gianfranco Costamagna <[email protected]>;
*To: * David Anderson <[email protected]>;
*Subject: * Boinc and linking problem
*Sent: * Thu, Jun 27, 2013 11:20:07 AM

Hi David, I'm not sure about the following fix, but it should be correct.

The problem is that libboinc_api.so uses pthread but is not linked against it.
In the newer saucy development release /gcc-4.8 we are getting linking failures 
because of it

an example of this issue
https://launchpad.net/ubuntu/+source/boinc-app-milkyway/0.18d-2/+build/4725147

ldd of the so file doesn't show the pthread library
and after my fix correctly shows the pthread and jpeg libraries.

+--- boinc-7.1.20+dfsg.orig/api/Makefile.am
++++ boinc-7.1.20+dfsg/api/Makefile.am
+@@ -36,7 +36,7 @@ endif
+
+ lib_LTLIBRARIES = libboinc_api.la
+ libboinc_api_la_SOURCES = $(api_files)
+-libboinc_api_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number 
$(LIBBOINC_VERSION)
++libboinc_api_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number 
$(LIBBOINC_VERSION) -lpthread
+
+ if BUILD_GRAPHICS_API
+ lib_LTLIBRARIES += libboinc_graphics2.la
+@@ -42,7 +42,7 @@ if BUILD_GRAPHICS_API
+ lib_LTLIBRARIES += libboinc_graphics2.la
+ libboinc_graphics2_la_SOURCES = $(graphics2_files)
+ # libboinc_graphics2_la_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/lib
+-libboinc_graphics2_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number 
$(LIBBOINC_VERSION)
++libboinc_graphics2_la_LDFLAGS = -L$(libdir) -rpath $(libdir) -version-number 
$(LIBBOINC_VERSION) -ljpeg
+ endif #BUILD_GRAPHICS_API
+
+ lib_LTLIBRARIES += libboinc_opencl.la



So would be nice to have them addressed upstream too.

I'm already building the new boinc in debian/ubuntu, for checking again the fix,
but should be ok.

bests

Gianfranco

_______________________________________________
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.

Reply via email to