Dear All

I have been busy trying to build
fenics version 1.5  on Redhat using
the fenics-install.sh script.
after a couple of attempts i realized that I had to
install
git patch gcc-c++  gcc-gfortran zlib and zlib-devel
with this preparation everthing worked until
vtk was reached that bombed out with not finding
pthread_create, although the trivial c-program:

#include <stdio.h>
#include <pthread.h>
main()  {
  pthread_t f2_thread, f1_thread;
  void *f2(), *f1();
  int i1,i2;
  i1 = 1;
  i2 = 2;
  pthread_create(&f1_thread,NULL,f1,&i1);
  pthread_create(&f2_thread,NULL,f2,&i2);
  pthread_join(f1_thread,NULL);
  pthread_join(f2_thread,NULL);
}
void *f1(int *x){
  int i;
  i = *x;
  sleep(1);
  printf("f1: %d",i);
  pthread_exit(0);
}
void *f2(int *x){
  int i;
  i = *x;
  sleep(1);
  printf("f2: %d",i);
  pthread_exit(0);
}

could be compiled as

gcc ps.c -lpthread -o ps.exe

and   ps.exe gives the expected output!

Thus redhat has got pthreads but the vtk compilation flags cannot find it!

I could of course disable vtk,  but it is nicer to have it.

Any help will be appreciated!


regards

Moritz

-- 
Prof M Braun         Tel.:27-12-4298006/8027
Physics Department  Fax.: 27-12-4293643
University of South Africa (UNISA)
[email protected]
P.O. Box 392
0003
UNISA
 South Africa
http://moritz-braun.blogspot.com
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to