This is the mail archive of the mailing list for the pthreas-win32 project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Minor troubles compiling snap-2005-01-03

I picked up the latest version and had a few minor troubles compiling
Visual Studio .NET.  First, the version.rc did not compile.  It was
to use _MS_VER to determine of the Microsoft Compiler was being used.
correct symbol should be _MSC_VER, but that doesn't help because the rc
does not predefine this symbol.  Looking at the Makefile, I determined
PTW32_RC_MSC was being defined and not used anywhere.  So, I am guessing
is what you intended to use.

I also attempted to run the tests, and found that there were problems
as well.  There is a create3 test called for in the Makefile, but no
file.  Perhaps, you forgot to put it in the distribution?  Also, the
exit4, exit5, cancel7, cancel8, and cancel9 are missing the .pass

Here are the changes I made to get things to work properly.  You
probably need
to reinstate the create3 test if you have it.

--- version.rc.orig     2005-01-01 08:25:03.000000000 -0600
+++ version.rc  2005-01-21 09:33:18.769330700 -0600
@@ -33,7 +33,7 @@
 #include <winver.h>
 #include "pthread.h"

-#ifdef _MS_VER
+#ifdef PTW32_RC_MSC
 #  if defined(__CLEANUP_C)
 #    define PTW32_VERSIONINFO_NAME "pthreadVC\0"
 #    define PTW32_VERSIONINFO_COMMENT "MS C build -- longjmp thread

--- Makefile.orig	2004-11-22 02:28:22.000000000 -0600
+++ Makefile	2005-01-21 09:46:44.659650700 -0600
@@ -89,7 +89,7 @@
 	  condvar1.pass  condvar1_1.pass  condvar1_2.pass  condvar2.pass
condvar2_1.pass  \
 	  exit1.pass  create1.pass  create2.pass  reuse1.pass
reuse2.pass  equal1.pass  \
 	  kill1.pass  valid1.pass  valid2.pass  \
-	  exit2.pass  exit3.pass  exit4  exit5  \
+	  exit2.pass  exit3.pass  exit4.pass  exit5.pass  \
 	  join0.pass  join1.pass  join2.pass join3.pass  \
 	  mutex4.pass  mutex6.pass  mutex6n.pass  mutex6e.pass
mutex6r.pass  \
 	  mutex6s.pass  mutex6es.pass  mutex6rs.pass  \
@@ -109,13 +109,13 @@
 	  rwlock2_t.pass  rwlock3_t.pass  rwlock4_t.pass  rwlock5_t.pass
rwlock6_t.pass  rwlock6_t2.pass  \
 	  context1.pass  \
 	  cancel3.pass  cancel4.pass  cancel5.pass  cancel6a.pass
cancel6d.pass  \
-	  cancel7  cancel8  \
+	  cancel7.pass  cancel8.pass  \
 	  cleanup0.pass  cleanup1.pass  cleanup2.pass  cleanup3.pass  \
 	  priority1.pass priority2.pass inherit1.pass  \
 	  spin1.pass  spin2.pass  spin3.pass  spin4.pass  \
 	  barrier1.pass  barrier2.pass  barrier3.pass  barrier4.pass
barrier5.pass  \
 	  exception1.pass  exception2.pass  exception3.pass  \
-	  cancel9 create3
+	  cancel9.pass
 	  benchtest1.bench benchtest2.bench benchtest3.bench
benchtest4.bench benchtest5.bench

           Tim Theisen                 Lead Research Software Engineer
   E-mail:    TomoTherapy Incorporated
Telephone: +1 608 824 2848             1240 Deming Way
      Fax: +1 608 824 2996             Madison, WI 53717-1954

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]