From: Pankaj L. <pa...@da...> - 2003-02-12 13:36:16
|
Hi Alan, Joao, I tried building Plplot 5.2.0 on Solaris 8, Active tcl/tk 8.4. Following is the outcome of my try 1. I get following error while building. gcc -shared tclAPI.lo tclMain.lo Pltk_Init.lo plframe.lo plr.lo tcpip.lo tkMain.lo -Wl,--rpath -Wl,/usr/pankaj/plplot-5.2.0/src/.libs -Wl,--rpath -Wl,/u sr/pankaj/plplot-5.2.0/bindings/tcl/.libs -Wl,--rpath -Wl,/usr/local/lib -L/usr /ActiveTcl/lib -L/usr/pankaj/lib -ltcl8.4 -litcl3.2 -litk3.2 -ltk8.4 -L/usr/pank aj/plplot-5.2.0/src /usr/pankaj/plplot-5.2.0/src/.libs/libplplot.so -L/usr/pankaj/plplot-5.2.0/bindi ngs/tcl usr/pankaj/plplot-5.2.0/bindings/tcl/.libs/libtclmatrix.so -lc -Wl,-soname -W l,libplplottcltk.so.5 -o .libs/libplplottcltk.so.5.2.0 /usr/ActiveTcl/lib/libtcl8.4.a(tclMain.o): In function `TclSetStartupScriptFileName': tclMain.o(.text+0xd4): multiple definition of `TclSetStartupScriptFileName' tclMain.lo:/usr/pankaj/plplot-5.2.0/bindings/tcl/tclMain.c:142: first defined here /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2/../../../../sparc-sun-solaris2.8 /bin/ld: Warning: size of symbol `TclSetStartupScriptFileName' changed from 44 to 24 in tclMain.o /usr/ActiveTcl/lib/libtcl8.4.a(tclMain.o): In function `TclGetStartupScriptFileName': tclMain.o(.text+0xfc): multiple definition of `TclGetStartupScriptFileName' tclMain.lo:/usr/pankaj/plplot-5.2.0/bindings/tcl/tclMain.c:164: first defined here /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2/../../../../sparc-sun-solaris2.8 /bin/ld: Warning: size of symbol `TclGetStartupScriptFileName' changed from 44 to 40 in tclMain.o collect2: ld returned 1 exit status What is the cause of this erro? I tried building the source again by commenting "TclSetStartupScriptFileName, TclGetStartupScrip" functions in tclmain.c in plplot\binding\tcl folder. It did not gave me any error. Is this the correct way? 2. After building the shared libraries, I tried to load them using tcl wish. I get following error ~/Plplot11 >wish8.4 % load libtclmatrix.so couldn't find procedure Tclmatrix_Init % load /usr/pankaj/Plplot11/libtclmatrix.so couldn't find procedure Tclmatrix_Init % load /usr/pankaj/Plplot11/libplplot.so.5 couldn't find procedure Plplot_Init What can be the cause of the above error? Can anybody help me to correct above problems. I have attached output logs of configure, make and "make install" commands. Thanks for any help. regards, Pankaj. |