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. |
From: Vince D. <vi...@sa...> - 2003-02-12 14:11:51
|
On Wed, 12 Feb 2003, Pankaj Laddha wrote: > 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? Was everything built with -D USE_TCL_STUBS -D USE_TK_STUBS? I wouldn't worry too much about building the executables anyway, using 'load' is much better. > 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 Try 'load libtclmatrix.so Matrix' (and make sure there is a symbol Matrix_Init in there) > % 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 symbols are in the .so? I would look for 'Plplotter_Init' try load ....libplplplot.so.5 Plplotter cheers, Vince. |
From: Pankaj L. <pa...@da...> - 2003-02-12 14:34:33
|
I am sorry about my ignorance, I am new to Solaris, and tcl/tk. Where am I suppose to give this options ? I thought ./configure will take care of every thing once I enable tcl/tk drivers. Thanks for the help. regards, Pankaj. ----- Original Message ----- From: Vince Darley <vi...@sa...> To: Pankaj Laddha <pa...@da...> Cc: Joao Cardoso <jc...@fe...>; Alan W. Irwin <ir...@be...>; PLplot development list <Plp...@li...> Sent: Wednesday, February 12, 2003 7:41 PM Subject: Re: [Plplot-devel] tcl/tk driver build results on Solaris : NeedsHelp > On Wed, 12 Feb 2003, Pankaj Laddha wrote: > > 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? > > Was everything built with -D USE_TCL_STUBS -D USE_TK_STUBS? > > I wouldn't worry too much about building the executables anyway, using > 'load' is much better. > > > 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 > > Try 'load libtclmatrix.so Matrix' > > (and make sure there is a symbol Matrix_Init in there) > > > % 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 symbols are in the .so? I would look for 'Plplotter_Init' > > try > > load ....libplplplot.so.5 Plplotter > > cheers, > > Vince. > > |
From: Alan W. I. <ir...@be...> - 2003-02-12 16:46:19
|
I don't have access to the combination of tcl/tk and solaris, but I believe Maurice got tcl/tk to work on solaris for plplot-5.2.0. I don't know the details of what he had to do to get it to work. My understanding is Maurice is completely under new job pressure at the moment, but eventually I hope he will be able to answer you. Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the Canadian Centre for Climate Modelling and Analysis (www.cccma.bc.ec.gc.ca) and the PLplot scientific plotting software package (plplot.org). __________________________ Linux-powered Science __________________________ |
From: Pankaj L. <pa...@da...> - 2003-02-13 10:18:45
|
Hi Maurice, Did you try building tcl/tk driver on Solaris? Can you please share you results/changes with me, as I am trying to build plplot 5.2.0 on Solaris. I am getting following errors . 1. I was getting multiple defination error of "TclSetStartupScriptFileName, TclGetStartupScrip" symbols. I fixed this by commenting these function in tclMain.c. I have also defined -D USE_TCL_STUBS -D USE_TK_STUBS flags using CFLAGS. Are these flags required for building Plplotter with tcl/tk driver. I could build the shared libraries. I have enabled dynamic drivers. 2. After loading the Plplotter package in wish8.4, I am getting following error when try to creat a frame. % plfram .f Unable to load driver: tkwin_drv. *** PLPLOT ERROR *** Unable to load driver Program aborted 3. When I build the library with only static drivers, I try following I am getting some more errors. % package require Plplotter 5.2.0 % Plplotwin .p .p % Plplotwin .p2 Error in XCreatePixmap: BadWindow (invalid Windowparameter). Error in XCreatePixmap: BadDrawable (invalid Pixmap orWindow parameter). Error in XCreatePixmap: BadDrawable (invalid Pixmap orWindow parameter). X Error of failed request: BadWindow (invalid Windowparameter) Major opcode of failed request: 2 (X_ChangeWindowAttributes) Resource id in failed request: 0x440001a Serial number of failed request: 38 Current serial number in output stream: 41 Can you please help me to sort out above problems? Thanks for you time and help. Regards, Pankaj. ----- Original Message ----- From: Alan W. Irwin <ir...@be...> To: Pankaj Laddha <pa...@da...> Cc: PLplot development list <Plp...@li...> Sent: Wednesday, February 12, 2003 10:14 PM Subject: Re: [Plplot-devel] tcl/tk driver build results on Solaris : NeedsHelp > I don't have access to the combination of tcl/tk and solaris, but I believe > Maurice got tcl/tk to work on solaris for plplot-5.2.0. I don't know the > details of what he had to do to get it to work. My understanding is Maurice > is completely under new job pressure at the moment, but eventually I hope he > will be able to answer you. > > Alan |
From: Vince D. <vi...@sa...> - 2003-02-13 11:42:43
|
Looks like you are getting closer -- all this static/dynamic driver stuff is very unix-specific and not something I know anything about, except that it seems extraordinarily complex. -- Vince p.s. I'm on this mailing list, so no need to email me direct. On Thu, 13 Feb 2003, Pankaj Laddha wrote: > Hi Maurice, > > Did you try building tcl/tk driver on Solaris? Can you please share you > results/changes with me, as I am trying to build plplot 5.2.0 on Solaris. I am > getting following errors . > > 1. I was getting multiple defination error of "TclSetStartupScriptFileName, > TclGetStartupScrip" symbols. I fixed this by commenting these function in > tclMain.c. I have also defined -D USE_TCL_STUBS -D USE_TK_STUBS flags using > CFLAGS. Are these flags required for building Plplotter with tcl/tk driver. I > could build the shared libraries. I have enabled dynamic drivers. > > 2. After loading the Plplotter package in wish8.4, I am getting following error > when try to creat a frame. > > % plfram .f > Unable to load driver: tkwin_drv. > > *** PLPLOT ERROR *** > Unable to load driver > Program aborted > > 3. When I build the library with only static drivers, I try following I am > getting some more errors. > % package require Plplotter > 5.2.0 > % Plplotwin .p > .p > % Plplotwin .p2 > Error in XCreatePixmap: BadWindow (invalid Windowparameter). > Error in XCreatePixmap: BadDrawable (invalid Pixmap orWindow parameter). > Error in XCreatePixmap: BadDrawable (invalid Pixmap orWindow parameter). > X Error of failed request: BadWindow (invalid Windowparameter) > Major opcode of failed request: 2 > (X_ChangeWindowAttributes) > Resource id in failed request: 0x440001a > Serial number of failed request: 38 > Current serial number in output stream: 41 > > Can you please help me to sort out above problems? > > Thanks for you time and help. > > Regards, > Pankaj. > > > ----- Original Message ----- > From: Alan W. Irwin <ir...@be...> > To: Pankaj Laddha <pa...@da...> > Cc: PLplot development list <Plp...@li...> > Sent: Wednesday, February 12, 2003 10:14 PM > Subject: Re: [Plplot-devel] tcl/tk driver build results on Solaris : NeedsHelp > > > > I don't have access to the combination of tcl/tk and solaris, but I believe > > Maurice got tcl/tk to work on solaris for plplot-5.2.0. I don't know the > > details of what he had to do to get it to work. My understanding is Maurice > > is completely under new job pressure at the moment, but eventually I hope he > > will be able to answer you. > > > > Alan > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Plplot-devel mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-devel > |
From: Alan W. I. <ir...@be...> - 2003-02-13 16:15:12
|
On Thu, 13 Feb 2003, Vince Darley wrote: > Looks like you are getting closer -- all this static/dynamic driver stuff > is very unix-specific and not something I know anything about, except that > it seems extraordinarily complex. Yep, the old paradigm of throwing the fortran, c++, java, and tcl/tk front-ends, and *all* drivers (and the kitchen sink and the bathtub) into libplplot was much easier to get right since there were few linking issues to worry about. But we started abandoning that paradigm in 5.1.0 with the introduction of dynamic drivers, and we completely separated the front-ends from the libplot library for 5.2.0. I believe the lean/mean results of the new paradigm (for example being able to dynamically load the tcl/tk plplot interface from wish and tclsh using "package require") are worth the additional trouble we have had to take with the linking. I would never want to go back to the 5.0.x style of linking. Alan __________________________ Alan W. Irwin email: ir...@be... phone: 250-727-2902 Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the Canadian Centre for Climate Modelling and Analysis (www.cccma.bc.ec.gc.ca) and the PLplot scientific plotting software package (plplot.org). __________________________ Linux-powered Science __________________________ |