tags 520863 + patch thanks On Mon, Mar 23, 2009 at 09:04:39AM +0100, Bastian Blank wrote: > Package: ogre > Version: 1.6.1.dfsg1-1 > Severity: serious > > There was an error while trying to autobuild your package: > > > Automatic build of ogre_1.6.1.dfsg1-1 on debian-31.osdl.marist.edu by > > sbuild/s390 98 > [...] > > s390-linux-gnu-g++ -DTIXML_USE_STL -Wall -g -O2 -o .libs/OgreXMLConverter > > OgreXMLConverter-OgreXMLMeshSerializer.o > > OgreXMLConverter-OgreXMLSkeletonSerializer.o OgreXMLConverter-main.o > > OgreXMLConverter-tinystr.o OgreXMLConverter-tinyxml.o > > OgreXMLConverter-tinyxmlerror.o OgreXMLConverter-tinyxmlparser.o > > -L/build/buildd/ogre-1.6.1.dfsg1/OgreMain/src > > /build/buildd/ogre-1.6.1.dfsg1/OgreMain/src/.libs/libOgreMain.so > > -lfreeimage -lpthread -lz -lm -ldl > > /build/buildd/ogre-1.6.1.dfsg1/OgreMain/src/.libs/libOgreMain.so: undefined > > reference to `pthread_mutexattr_setkind_np(pthread_mutexattr_t*, int)'
The attached patch fixes the bug. Thanks, -- Peter
diff -u ogre-1.6.1.dfsg1/debian/patches/series ogre-1.6.1.dfsg1/debian/patches/series --- ogre-1.6.1.dfsg1/debian/patches/series +++ ogre-1.6.1.dfsg1/debian/patches/series @@ -3,0 +4 @@ +pthread_extern_c.patch only in patch2: unchanged: --- ogre-1.6.1.dfsg1.orig/debian/patches/pthread_extern_c.patch +++ ogre-1.6.1.dfsg1/debian/patches/pthread_extern_c.patch @@ -0,0 +1,11 @@ +--- ogre-1.6.1.dfsg1/OgreMain/src/nedmalloc/malloc.c.h.orig 2009-01-05 12:07:43.000000000 +0000 ++++ ogre-1.6.1.dfsg1/OgreMain/src/nedmalloc/malloc.c.h 2009-05-15 18:45:23.000000000 +0100 +@@ -1839,7 +1839,7 @@ + /* skipped internal declaration from pthread.h */ + #ifdef linux + #ifndef PTHREAD_MUTEX_RECURSIVE +-extern int pthread_mutexattr_setkind_np __P ((pthread_mutexattr_t *__attr, ++extern "C" int pthread_mutexattr_setkind_np __P ((pthread_mutexattr_t *__attr, + int __kind)); + #define PTHREAD_MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP + #define pthread_mutexattr_settype(x,y) pthread_mutexattr_setkind_np(x,y)
signature.asc
Description: Digital signature