On 2003-12-29 15:52-0500 Koen van der Drift wrote:
> Hi all,
>
> I have been able to do some more testing, and I now also have the
> tcl/tk scripting and examples working, although I get the following
> warning when making the examples:
>
>
> [ModusOperandi:plplot5.2.1.cvs.20031228/examples/c] koen% sudo make
> plplot_libtool --mode=link gcc -g -O2 x01c.c -I/sw/include/plplot
> -L/sw/lib -lplplotd -o x01c
> mkdir .libs
> gcc -g -O2 x01c.c -I/sw/include/plplot -o x01c -L/sw/lib
> /sw/lib/libplplotd.dylib /sw/lib/libcsirocsa.dylib -ltk -ltcl
> -L/usr/X11R6/lib -lX11 -lm
> ld: warning multiple definitions of symbol _tclPlatStubsPtr
> /sw/lib/libtcl.dylib(tclStubLib.o) definition of _tclPlatStubsPtr
> /sw/lib/libtk.dylib(tclStubLib.o) definition of _tclPlatStubsPtr
> ld: warning multiple definitions of symbol _tclIntStubsPtr
> /sw/lib/libtcl.dylib(tclStubLib.o) definition of _tclIntStubsPtr
> /sw/lib/libtk.dylib(tclStubLib.o) definition of _tclIntStubsPtr
> ld: warning multiple definitions of symbol _Tcl_InitStubs
> /sw/lib/libtcl.dylib(tclStubLib.o) definition of _Tcl_InitStubs
> /sw/lib/libtk.dylib(tclStubLib.o) definition of _Tcl_InitStubs
> ld: warning multiple definitions of symbol _tclIntPlatStubsPtr
> /sw/lib/libtcl.dylib(tclStubLib.o) definition of _tclIntPlatStubsPtr
> /sw/lib/libtk.dylib(tclStubLib.o) definition of _tclIntPlatStubsPtr
> ld: warning multiple definitions of symbol _tclStubsPtr
> /sw/lib/libtcl.dylib(tclStubLib.o) definition of _tclStubsPtr
> /sw/lib/libtk.dylib(tclStubLib.o) definition of _tclStubsPtr
> ld: warning suggest use of -bind_at_load, as lazy binding may result in
> errors or different symbols being used
> symbol _Tcl_InitStubs used from dynamic library
> /sw/lib/libtcl.dylib(tclStubLib.o) not from earlier dynamic library
> /sw/lib/libtk8.4.dylib(tclStubLib.o)
> symbol _tclIntPlatStubsPtr used from dynamic library
> /sw/lib/libtcl.dylib(tclStubLib.o) not from earlier dynamic library
> /sw/lib/libtk8.4.dylib(tclStubLib.o)
> symbol _tclIntStubsPtr used from dynamic library
> /sw/lib/libtcl.dylib(tclStubLib.o) not from earlier dynamic library
> /sw/lib/libtk8.4.dylib(tclStubLib.o)
> symbol _tclPlatStubsPtr used from dynamic library
> /sw/lib/libtcl.dylib(tclStubLib.o) not from earlier dynamic library
> /sw/lib/libtk8.4.dylib(tclStubLib.o)
> symbol _tclStubsPtr used from dynamic library
> /sw/lib/libtcl.dylib(tclStubLib.o) not from earlier dynamic library
> /sw/lib/libtk8.4.dylib(tclStubLib.o)
> symbol _TclSetStartupScriptFileName used from dynamic library
> /sw/lib/libtcl.dylib(tclMain.o) not from earlier dynamic library
> /sw/lib/libplplotd.9.dylib(tclMain.o)
> symbol _TclGetStartupScriptFileName used from dynamic library
> /sw/lib/libtcl.dylib(tclMain.o) not from earlier dynamic library
> /sw/lib/libplplotd.9.dylib(tclMain.o)
>
> Are these harmless?
Possibly, although it looks like there are some general nameclash issues
(same symbols defined in both libraries) that need to be sorted out for the
tcl and tk libraries in Mac OS X.
To make sure these issues are harmless, I suggest doing the following
tcl/tk tests for PLplot:
Try
./x01c -dev tk
Does that interactive device (that depends on tcl/tk) work?
Also in the _installed_ examples directory (or copy of it) try the
./plplot-test.sh script. That is a comprehensive check that all the
language interfaces (including tcl) are working properly for file devices.
Lots of different plots (postscript by default, but try ./plplot-test.sh
--help to see about other file device alternatives) are produced so don't
give up on this command if not many messages are being printed as it
executes.
Also try some of the interactive checks of tcl/tk mentioned in
examples/tcl/README.tcldemos and examples/tk/README.tkdemos.
>
>
> Also, to enable output in png and jpeg, I installed the necessary
> packahes from fink, and as
> seen below, lgd, lpng, ljpeg and lz are all found:
>
> ...
> configure: WARNING: Java Native Interface include file not found,
> configure: WARNING: setting enable_java=no
> checking for GD header files... found in default
> checking for main in -lgd... yes
> checking for main in -lpng... yes
> checking for main in -ljpeg... yes
> checking for main in -lz... yes
> checking for png support in libgd... no
> configure: WARNING: png driver disabled
> checking for jpeg support in libgd... no
> configure: WARNING: jpeg driver disabled
> checking for libcd header files... not found
> configure: WARNING: libcd header files not found, setting enable_cgm=no
> checking for main in -lcd... no
> configure: WARNING: cd library not found, setting enable_cgm=no
> checking for freetype library header files... not found
> configure: WARNING: freetype header files not found,
> configure: WARNING: setting with_freetype=no
> checking for main in -lfreetype... no
> configure: WARNING: freetype library not found, setting with_freetype=no
> ...
>
> As you can see there is a problem with libgd, so enable_png and
> enable_jpeg are set to no. What version of the gd package are you
> using, maybe fink has a wrong version?
The above message means
every required gd header, and png, jpeg, and zlib library was found, but
this section of sysloc.in did not work correctly:
AC_MSG_CHECKING(for png support in libgd)
AC_TRY_LINK_FUNC([
gdImagePng
], [AC_MSG_RESULT(yes)], [
AC_MSG_RESULT(no)
AC_MSG_WARN(png driver disabled)
enable_png=no
])
This fails if you have a really old version of libgd (like for RH 6.2), but
I doubt that is the source of the problem. For example, version 2.0.1 of
libgd works fine on Debian stable, and IIRC even libgd 1.8.x worked well.
What does the relevant part of your config.log say about this test? Mine
reads:
configure:22002: checking for png support in libgd
configure:22031: gcc -o conftest -Idefault conftest.c -Ldefault -Ldefault -Ldefault -Ldefault -lgd -lpng -ljpeg -lz >&5
configure:22037: $? = 0
configure:22041: test -z
|| test ! -s conftest.err
configure:22044: $? = 0
configure:22047: test -s conftest
configure:22050: $? = 0
configure:22052: result: yes
>
> The other error is about the freetype files, which cannot be found. I
> have XWindows installed, and know that other packages are able to use
> the freetype files.
>
> If freetype support is important to plplot, is there a way I can fix
> this?
freetype is a way to use system fonts in PLplot rather than the default
built-in (Hershey) fonts. It's a fairly new feature that currently is only
implemented for the gd-associated devices (png, jpeg). See
http://plplot.sourceforge.net/resources/docbook-manual/plplot-html-5.2.1.cvs.20030929/freetype-notes.html
for more discussion. Although our current support for feature is limited to
these two devices, nevertheless it is a fairly interesting feature that is
well worth including.
From sysloc.in, currently the freetype headers are only looked for
in /usr/include/freetype2 and /usr/local/include/freetype2, and similarly
the freetype library is only looked for in /usr/lib and /usr/local/lib.
To specify other locations set the FREETYPEINCDIR and/or FREETYPELIBDIR
environment variables before running the ./configure command.
Alan
__________________________
Alan W. Irwin
email: irwin@...
phone: 250-727-2902
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the PLplot scientific plotting software
package (plplot.org), the Yorick front-end to PLplot (yplot.sf.net), the
Loads of Linux Links project (loll.sf.net), and the Linux Brochure Project
(lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
|