From: Maurice L. <mj...@ga...> - 2003-01-18 08:43:33
|
Sorry it took so long to get back to plplot work.. I've been pretty low on my free time budget recently. If the release goes out w/o me having solved my portability problems, so be it. I rarely use the release version anyway. :/ Alan W. Irwin writes: > Maurice, do you find a similar xwin problem on your OSF1 platform? Probably. I noticed a problem at link time so I didn't even bother trying an example program. But errors are easy to miss given the large amount of output. ... /bin/bash ../../libtool --mode=install /usr2/mjl/local/bin/install -c libplplottcltk.la /usr2/mjl/tools/lib/libplplottcltk.la libtool: install: warning: relinking `libplplottcltk.la' (cd /usr2/mjl/dev/plplot/latest/bindings/tcl; /bin/bash ../../libtool --mode=relink gcc -g -O2 -o libplplottcltk.la -rpath /usr2/mjl/tools/lib -version-info 7:0:2 -rpath /usr2/mjl/tools/lib -no-undefined -L/usr2/mjl/tools/lib -ltcl8.3 -L/usr2/mjl/tools/lib -litcl3.2 -L/usr2/mjl/tools/lib -litk3.2 -L/usr2/mjl/tools/lib -ltk8.3 -L../../src -lplplot -L. -ltclmatrix tclAPI.lo tclMain.lo Pltk_Init.lo plframe.lo plr.lo tcpip.lo tkMain.lo) gcc -shared tclAPI.o tclMain.o Pltk_Init.o plframe.o plr.o tcpip.o tkMain.o -Wl,-rpath -Wl,/usr2/mjl/tools/lib -L/usr2/mjl/tools/lib -ltcl8.3 -litcl3.2 -litk3.2 -ltk8.3 -L/usr2/mjl/dev/plplot/latest/src -lplplot -L/usr2/mjl/dev/plplot/latest/bindings/tcl -ltclmatrix -Wl,-msym -Wl,-soname -Wl,libplplottcltk.so.5 `test -n "7.2.0:5.0:6.0:7.0" && echo -Wl,-set_version -Wl,7.2.0:5.0:6.0:7.0` -Wl,-update_registry -Wl,.libs/so_locations -o .libs/libplplottcltk.so.7.2.0 /usr/ucb/ld: Warning: Unresolved: cos sin XLookupString XWarpPointer XQueryPointer XDrawLines XClearWindow XFlush XParseColor XSync But this was my first time when I forgot to put --enable-dyndrivers, so this points to a problem in the static driver configuration. Note there's no -lX11 in the above link line. :) Unfortunately, --enable-dyndrivers doesn't help -- it just moves the creation of the error to build-time. It gives the same error as before: gcc -shared tclAPI.o tclMain.o Pltk_Init.o plframe.o plr.o tcpip.o tkMain.o -Wl,-rpath -Wl,/usr2/mjl/dev/plplot/latest/src/.libs:/usr2/mjl/dev/plplot/latest/bindings/tcl/.libs:/usr2/mjl/tools/lib -L/usr2/mjl/tools/lib -ltcl8.3 -litcl3.2 -litk3.2 -ltk8.3 -L/usr2/mjl/dev/plplot/latest/src /usr2/mjl/dev/plplot/latest/src/.libs/libplplot.so -L/usr2/mjl/dev/plplot/latest/bindings/tcl /usr2/mjl/dev/plplot/latest/bindings/tcl/.libs/libtclmatrix.so -Wl,-msym -Wl,-soname -Wl,libplplottcltk.so.5 `test -n "7.2.0:5.0:6.0:7.0" && echo -Wl,-set_version -Wl,7.2.0:5.0:6.0:7.0` -Wl,-update_registry -Wl,.libs/so_locations -o .libs/libplplottcltk.so.7.2.0 /usr/ucb/ld: Warning: Unresolved: cos sin XLookupString XWarpPointer XQueryPointer XDrawLines XClearWindow XFlush XParseColor XSync As well as a new one: gcc -shared tk_drv_la-tk.o -Wl,-rpath -Wl,/usr2/mjl/dev/plplot/latest/bindings/tcl/.libs:/usr2/mjl/tools/lib -L/usr2/mjl/dev/plplot/latest/bindings/tcl/.libs -L/usr2/mjl/dev/plplot/latest/src/.libs -L/usr2/mjl/dev/plplot/latest/src -L/usr2/mjl/tools/lib -L/usr2/mjl/dev/plplot/latest/bindings/tcl /usr2/mjl/dev/plplot/latest/bindings/tcl/.libs/libplplottcltk.so -ltcl8.3 -ltk8.3 -Wl,-msym -Wl,-soname -Wl,libtk_drv.so `test -n "" && echo -Wl,-set_version -Wl,` -Wl,-update_registry -Wl,.libs/so_locations -o .libs/libtk_drv.so /usr/ucb/ld: Warning: Unresolved: plsc c_pltext c_plgra pdf_wr_header plexit plP_setpxl plP_setphy pdf_wr_1byte pdf_wr_2bytes pdf_wr_2nbytes pdf_wr_ieeef plGinInit plabort pdf_close plstrdup plFindCommand pdf_bopen plTranslateCursor Note I'm using a really old version of gcc on this machine but it looks like a config error rather than being gcc's fault: zion$ gcc -v Reading specs from /usr/local/lib/gcc-lib/alphaev56-dec-osf4.0b/2.8.1/specs gcc version 2.8.1 Aside: I really hate how many hundreds of lines of output there is. Makes it much harder to find errors. Unfortunately you can't just redirect stdout b/c you lose context of the errors that do occur. I suppose you could do: zion$ make install >foo.log libtool: install: warning: relinking `libplplottcltk.la' /usr/ucb/ld: Warning: Unresolved: cos sin XLookupString XWarpPointer XQueryPointer XDrawLines XClearWindow XFlush XParseColor XSync and then to see the context of that do: zion$ make install >foo.log 2>&1 What we need is a program that does for stderr what "tee" does for stdout, that way we could send output+errors to a file but only errors to the console. Should actually pretty easy to write one. -- Maurice LeBrun mj...@ga... Research Organization for Information Science and Technology of Japan (RIST) |