[185] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

pthreads beta4 on linux and sunos4

daemon@ATHENA.MIT.EDU (Marty Leisner)
Mon Oct 30 16:20:54 1995

To: pthreads@MIT.EDU
Date: Mon, 30 Oct 1995 12:45:36 PST
From: "Marty Leisner" <leisner@sdsp.mc.xerox.com>


I got shared libraries going on linux ...


On linux...
===================================================================
RCS file: engine-i386-linux-1.0.c,v
retrieving revision 1.1
diff -u -r1.1 engine-i386-linux-1.0.c
--- engine-i386-linux-1.0.c	1995/10/24 05:47:57	1.1
+++ engine-i386-linux-1.0.c	1995/10/30 04:32:44
@@ -359,6 +359,7 @@
 }
 
 
+#if 0
 /* ==========================================================================
  * machdep_sys_readv()
  */
@@ -398,6 +399,8 @@
 	return(ret);
 }
 
+#endif
+
 /* ==========================================================================
  * machdep_sys_sendmsg()
  */
@@ -416,6 +419,7 @@
 #endif
 }
 
+#if 0
 /* ==========================================================================
  * machdep_sys_writev()
  */
@@ -451,6 +455,8 @@

 		free(buffer);
 	return(ret);
 }
+
+#endif
 
 /* ==========================================================================
  * machdep_sys_recvmsg()


Also, in tests, maybe do:

all: tests benchmarks

tests: $(TESTS)

benchmarks: $(BENCHMARKS)

Also it seems test_preemption_float has problems...

collect2: ld returned 1 exit status
test_preemption_float.o: In function `log_loop':
/export/gnu/leisner/src/programming/pthreads-1_60_beta4/tests/test_preemption_float.c:22: undefined reference to `exp'
/export/gnu/leisner/src/programming/pthreads-1_60_beta4/tests/test_preemption_float.c:22: undefined reference to `log'
/export/gnu/leisner/src/programming/pthreads-1_60_beta4/tests/test_preemption_float.c:27: undefined reference to `sin'
test_preemption_float.o: In function `trig_loop':
/export/gnu/leisner/src/programming/pthreads-1_60_beta4/tests/test_preemption_float.c:46: undefined reference to `sin'
/export/gnu/leisner/src/programming/pthreads-1_60_beta4/tests/test_preemption_float.c:47: undefined reference to `cos'
/export/gnu/leisner/src/programming/pthreads-1_60_beta4/tests/test_preemption_float.c:51: undefined reference to `sin'
make: *** [test_preemption_float] Error 1

Are there thread safe copies of the math library floating around
or is it okay to use -lm?

On sunos4, does anyone have shared libraries working?
I tried the same things, but got mixed results...

marty		leisner@sdsp.mc.xerox.com   
Member of the League for Programming Freedom (http://www.lpf.org)
Any sufficiently advanced technology is indistinguishable from magic
        Arthur C. Clarke, The Lost Worlds of 2001

home help back first fref pref prev next nref lref last post