From: Joao C. <jc...@fe...> - 2002-01-29 21:00:59
|
On Tuesday 29 January 2002 7:24 pm, Alan W. Irwin wrote: > More information (hot off the presses). I hope you read all your mail > before responding to the previous messages in this thread. > > > Have you cross-platform guys tried all the examples? I wonder how many > other platforms demand the -ltclmatrixd link line? I wonder how Debian > woody works fine without requiring it? atexit() is in libc: [jcard@feup] nm -p /lib/libc.so.6 | fgrep atexit 001161ac ? __elf_set___libc_atexit_element__cleanup__ 00118aa0 b added_atexit_handler.186 001161ac a __start___libc_atexit 001161b0 a __stop___libc_atexit 0002f9a0 T __cxa_atexit 0002f960 T atexit ^^^ here it is defined as externaly visible. > If I add -ltclmatrixd to the link lines in the examples Makefile, > all C and Tk build and run without problems. So problem solved, and > thanks for listening as I worked through this. I don't understand, as I get -ltclmatrixd in the link automatically: [jcard@feup] make tkdemos gcc -c -O -I. -I/usr/lib/java//include xtk01.c gcc xtk01.o \ -L. -lplplotd -ltclmatrixd -o xtk01 -litk3.2 -ltk8.3 -litcl3.2=20 -ltcl8.3 -L/usr/X11R6/lib -lX11 -ldl -lm -lg2c -Wl,-rpath=20 -Wl,/home/jcard/plplot-devel/tmp even if I remove the tcllibrary, it links OK; [jcard@feup] gcc xtk01.o -L. -lplplotd -o xtk01 -litk3.2 -ltk8.3 -litc= l3.2=20 -ltcl8.3 -L/usr/X11R6/lib -lX11 -ldl -lm -lg2c -Wl,-rpath=20 -Wl,/home/jcard/plplot-devel/tmp But, with a standard make, "xtk01"f ails: [jcard@feup] ./xtk01=20 % myplot Segmentation fault [jcard@feup] ./xtk01=20 % myplot 1 *** PLPLOT ERROR *** plcol0: Please call plinit first, aborting operation =2E.. and so on. The README.tkdemos does not provides accurate instrutions on runing this=20 component of the demos, so I don't know if this is the correct way--I had= to=20 read the xtk01.c code. I have further tested: cdemos-OK fdemos-OK cxxdemos-OK jdemos-OK pythondemos-OK tcldemos-OK octave demos-OK tkdemos-half OK, the "start plserver, source tkdemos etc" worked, the xtk= ??=20 demos didn't. Joao |