From: Michel P. <Mic...@en...> - 2004-01-03 08:37:49
|
I edited drivers/xwin.c to remove the _NP. Using ./configure --disable-dyndrivers --disable-shared the compilation of xwin.c goes on without error and library .libs/libplplotd.a is created, but I get an error elsewhere: Making all in utils if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -I../bindings/tcl -g -O2 -MT plrender.o -MD -MP -MF ".deps/plrender.Tpo" \ -c -o plrender.o `test -f 'plrender.c' || echo './'`plrender.c; \ then mv -f ".deps/plrender.Tpo" ".deps/plrender.Po"; \ else rm -f ".deps/plrender.Tpo"; exit 1; \ fi /bin/sh ../libtool --mode=3Dlink gcc -g -O2 -o plrender -rpath /usr/local/plotcvs31/lib -no-undefined plrender.o ../src/libplplotd.la mkdir .libs gcc -g -O2 -o plrender plrender.o ../src/.libs/libplplotd.a /usr/local/src/plplot-5.2.1.cvs.20031231/lib/csa/.libs/libcsirocsa.a -L/usr/X11R6/lib -lX11 -lpthread -lm ld: warning prebinding disabled because of undefined symbols ld: Undefined symbols: _pthread_mutexattr_setkind_np make[2]: *** [plrender] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Michel %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Michel Peyrard, Professeur % Ph: +33 (0)4 7272 8374 % % Laboratoire de Physique % Fax: +33 (0)4 7272 8080 % % Ecole Normale Sup=E9rieure de Lyon % e-mail:Mic...@en... % % 46 all=E9e d'Italie % perso.ens-lyon.fr/michel.peyrard % % 69364 Lyon Cedex 07, France % (GPG key available on home page) % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% On Sat, 3 Jan 2004, Jo=E3o Cardoso wrote: > On Friday 02 January 2004 16:03, Michel Peyrard wrote: > | > I looked at the log file your sent. Your config.log tells that > | > libpthread was correctly detected by configure. I do not understand= why > | > the compilation of the xwin driver fails with > | > "`PTHREAD_MUTEX_RECURSIVE_NP' undeclared". Could you please send th= e > | > file /usr/include/pthread.h in your system (or wherever path it is)? > > Hi, > > I have used a non-portable kind of mutex, PTHREAD_MUTEX_RECURSIVE_NP (_NP > means Non Portable :), and this must be the problem. > > From your pthread.h, PTHREAD_MUTEX_RECURSIVE exists in your system -- cou= ld > you please delete "_NP" from the offending xwin.c source line and try > recompiling? > If it compiles OK, you need to test it. The easier is to add at examples/= c/ > x01c.c a getchar(): > > /* Don't forget to call plend() to finish off! */ > + getchar(); > plend(); > exit(0); > > Now, in examples/c, make x01c, run it with the xwin driver (./x01c -dev x= win) > and try resizing the window. Does it work? Also, if you obscure the x01c = plot > window with another window and then bring it to front, is it redrawn? > You can make the above tests with your current configuration first (no > pthreads), just to be sure what _not_ to expect latter. > > Thanks, > Joao |