Hi Pierre,

On Mon, Mar 28, 2011 at 12:56 PM, Pierre Saramito
<[email protected]> wrote:
> Hello !
>
> Despite the recent patch applied in version 5.1.11.dfgs-4,
> the bug seems to be still present on sid/amd64 :

Yes, I also noticed that. I have reopened the bug now.

>    uname -a
>        Linux mobydick 2.6.32-5-amd64 #1 SMP Wed Jan 12 03:40:32 UTC 2011 
> x86_64 GNU/Linux
>
>    apt-cache policy libptscotch-dev
>    libptscotch-dev:
>      Installé : 5.1.11.dfsg-4
>      Candidat : 5.1.11.dfsg-4
>     Table de version :
>     *** 5.1.11.dfsg-4 0
>        500 http://ftp.fr.debian.org/debian/ sid/main amd64 Packages
>        100 /var/lib/dpkg/status
>
>
>    mpic++ -o ptscotch_test ptscotch_test.cpp -DSCOTCH_PTSCOTCH 
> -I/usr/include/scotch -lptscotch -lptscotcherr
>    ./ptscotch_test
>        (0): ERROR: SCOTCH_dgraphInit: linking with both libScotch and 
> libPTScotch is not allowed
>        MPI implementation is not thread-safe:
>        SCOTCH should be compiled without SCOTCH_PTHREAD
>
> Yet, scotch library is unusable...
> Any idea to get free from this problem ?

Yes, applying the attached patch to the git repository and rebuilding
the package fixes the problem for me.

Adam: Thanks for your work on this package! Could you please
incorporate this fix in the next upload?

Best regards,

Johannes
diff --git a/debian/patches/shared-libs.patch b/debian/patches/shared-libs.patch
index c0631c0..48a70b3 100644
--- a/debian/patches/shared-libs.patch
+++ b/debian/patches/shared-libs.patch
@@ -30,19 +30,17 @@ Index: scotch/src/libscotch/Makefile
  					./dummysizes$(EXE) libraryf.h scotchf.h
  
 -libptscotch$(LIB)		:	$(LIBPTSCOTCHDEPS) $(LIBSCOTCHDEPS)
--					$(AR) $(ARFLAGS) $(@) $(?)
-+libptscotch$(LIB)		:	$(LIBPTSCOTCHDEPS) libptscotcherr$(LIB) libscotch$(LIB)
-+					$(CC) -shared -Wl,-soname,libptscotch-5.1.so $(LIBPTSCOTCHDEPS) -L. -lptscotcherr -lscotch -lz -lpthread -lm -lrt -o libptscotch-5.1.so
++libptscotch$(LIB)               :       $(LIBPTSCOTCHDEPS) $(LIBSCOTCHDEPS) libptscotcherr$(LIB)
++					$(CC) -shared -Wl,-soname,libptscotch-5.1.so $(LIBPTSCOTCHDEPS) $(LIBSCOTCHDEPS) -L. -lptscotcherr -lpthread $(LDFLAGS) -o libptscotch-5.1.so
 +					ln -s libptscotch-5.1.so libptscotch.so
-+					$(AR) $(ARFLAGS) $(@) $(LIBPTSCOTCHDEPS)
+ 					$(AR) $(ARFLAGS) $(@) $(?)
  					-$(RANLIB) $(@)
  
 -libscotch$(LIB)			:	$(LIBSCOTCHDEPS)
--					$(AR) $(ARFLAGS) $(@) $(?)
-+libscotch$(LIB)			:	$(LIBSCOTCHDEPS) libscotcherr$(LIB)
-+					$(CC) -shared -Wl,-soname,libscotch-5.1.so $(LIBSCOTCHDEPS) -L. -lscotcherr -lz -lpthread -lm -lrt -o libscotch-5.1.so
++libscotch$(LIB)                 :       $(LIBSCOTCHDEPS) libscotcherr$(LIB)
++					$(CC) -shared -Wl,-soname,libscotch-5.1.so $(LIBSCOTCHDEPS) -L. -lscotcherr -lpthread $(LDFLAGS) -o libscotch-5.1.so
 +					ln -s libscotch-5.1.so libscotch.so
-+					$(AR) $(ARFLAGS) $(@) $(LIBSCOTCHDEPS)
+ 					$(AR) $(ARFLAGS) $(@) $(?)
  					-$(RANLIB) $(@)
  
  libptscotcherr$(LIB)		:	library_error$(OBJ)

Reply via email to