On 11/30/2011 07:30 AM, Andrew Ross wrote:
On Wed, Nov 30, 2011 at 11:40:42AM +0000, Andrew Ross wrote:
I have fixed all the issues I have found. Still outstanding is Orions
fortran issue (I don't see this) and the copyright issue.
Here's what I have with svn12076:
make[1]: Entering directory `/usr/share/plplot5.9.9/examples/tk'
/usr/lib/ccache/gcc xtk01.c -o xtk01 `pkg-config --cflags --libs plplotd-tcl`
/usr/bin/ld: /tmp/ccZTLMLN.o: undefined reference to symbol 'cos@@GLIBC_2.0'
/usr/bin/ld: note: 'cos@@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so try
adding it to the linker command line
-lm needs to be added to the tk/Makefile. See updated patch.
I've also made a change to drop dl from libplplotd for NON_TRANSITIVE=ON.
Also seeing this:
plplot-ocaml.i686: E: binary-or-shlib-defines-rpath
/usr/lib/ocaml/stublibs/dllplplot_stubs.so ['/usr/lib/ocaml',
'/builddir/build/BUILD/plplot-5.9.9/fedora/src']
plplot-ocaml.i686: E: binary-or-shlib-defines-rpath
/usr/lib/ocaml/stublibs/dllplcairo_stubs.so ['/usr/lib',
'/builddir/build/BUILD/plplot-5.9.9/fedora/src']
Anyone know why the rpaths aren't being removed on install?
Still have:
plplot-qt.i686: W: unused-direct-shlib-dependency
/usr/lib/libplplotqtd.so.0.0.1 /usr/lib/libQtXml.so.4
from cmake Qt.
plplot-wxGTK.i686: W: unused-direct-shlib-dependency
/usr/lib/libplplotwxwidgetsd.so.0.0.0 /usr/lib/libfreetype.so.6
plplot-wxGTK.i686: W: unused-direct-shlib-dependency
/usr/lib/libplplotwxwidgetsd.so.0.0.0 /lib/libm.so.6
plplot-wxGTK.i686: W: unused-direct-shlib-dependency
/usr/lib/libplplotwxwidgetsd.so.0.0.0 /lib/libpthread.so.0
I've dropped FREETYPE_LIBRARIES from wxwidgets_LINK_FLAGS. Perhaps these and
the other changes need to wrapped in if(!NON_TRANSTIVE) as well.
pthread appears to be coming somehow from the cmake wxWidgets stuff.
libm I think is coming again from g++.
Trying to build with the attached patch though I get this:
/usr/lib/ccache/gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom
-fasynchronous-unwind-tables CMakeFiles/plserver.dir/plserver.c.o -o
plserver -rdynamic ../../src/libplplotd.so.11.0.0
../tcl/libplplottcltkd.so.9.2.0 -ltk -ltcl ../../src/libplplotd.so.11.0.0
-Wl,-rpath,/builddir/build/BUILD/plplot-5.9.9/fedora/src:/builddir/build/BUILD/plplot-5.9.9/fedora/bindings/tcl:/builddir/build/BUILD/plplot-5.9.9/fedora/lib/csa:/builddir/build/BUILD/plplot-5.9.9/fedora/lib/nn:/builddir/build/BUILD/plplot-5.9.9/fedora/lib/qsastime:
-Wl,-rpath-link,/builddir/build/BUILD/plplot-5.9.9/fedora/lib/csa:/builddir/build/BUILD/plplot-5.9.9/fedora/lib/nn:/builddir/build/BUILD/plplot-5.9.9/fedora/lib/qsastime:/builddir/build/BUILD/plplot-5.9.9/fedora/bindings/tcl
../../src/libplplotd.so.11.0.0: undefined reference to
`agg::font_engine_freetype_base::hinting(bool)'
....
../../src/libplplotd.so.11.0.0: undefined reference to
`plD_dispatch_init_tek4107f'
From the build line for libplplotd.so.11.0.0:
/usr/lib/ccache/c++ -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686
-mtune=atom -fasynchronous-unwind-tables -shared
-Wl,-soname,libplplotd.so.11 -o libplplotd.so.11.0.0
CMakeFiles/plplotd.dir/pdfutils.c.o CMakeFiles/plplotd.dir/plaffine.c.o
CMakeFiles/plplotd.dir/plarc.c.o CMakeFiles/plplotd.dir/plargs.c.o
CMakeFiles/plplotd.dir/plbox.c.o CMakeFiles/plplotd.dir/plcont.c.o
CMakeFiles/plplotd.dir/plcore.c.o CMakeFiles/plplotd.dir/plctrl.c.o
CMakeFiles/plplotd.dir/plcvt.c.o CMakeFiles/plplotd.dir/pldtik.c.o
CMakeFiles/plplotd.dir/plf2ops.c.o CMakeFiles/plplotd.dir/plfill.c.o
CMakeFiles/plplotd.dir/plfreetype.c.o CMakeFiles/plplotd.dir/plgradient.c.o
CMakeFiles/plplotd.dir/plhist.c.o CMakeFiles/plplotd.dir/plimage.c.o
CMakeFiles/plplotd.dir/plline.c.o CMakeFiles/plplotd.dir/plmap.c.o
CMakeFiles/plplotd.dir/plot3d.c.o CMakeFiles/plplotd.dir/plpage.c.o
CMakeFiles/plplotd.dir/plsdef.c.o CMakeFiles/plplotd.dir/plshade.c.o
CMakeFiles/plplotd.dir/plstdio.c.o CMakeFiles/plplotd.dir/plstripc.c.o
CMakeFiles/plplotd.dir/plsym.c.o CMakeFiles/plplotd.dir/pltick.c.o
CMakeFiles/plplotd.dir/plvpor.c.o CMakeFiles/plplotd.dir/plwind.c.o
CMakeFiles/plplotd.dir/plbuf.c.o CMakeFiles/plplotd.dir/plgridd.c.o
CMakeFiles/plplotd.dir/plvect.c.o CMakeFiles/plplotd.dir/mt19937ar.c.o
CMakeFiles/plplotd.dir/pltime.c.o CMakeFiles/plplotd.dir/pllegend.c.o
CMakeFiles/plplotd.dir/__/drivers/cairo.c.o
CMakeFiles/plplotd.dir/__/drivers/qt.cpp.o
CMakeFiles/plplotd.dir/__/bindings/qt_gui/plqt.cpp.o
CMakeFiles/plplotd.dir/__/drivers/mem.c.o
CMakeFiles/plplotd.dir/__/drivers/ntk.c.o
CMakeFiles/plplotd.dir/__/drivers/null.c.o
CMakeFiles/plplotd.dir/__/drivers/ps.c.o
CMakeFiles/plplotd.dir/__/drivers/pstex.c.o
CMakeFiles/plplotd.dir/__/drivers/psttf.cc.o
CMakeFiles/plplotd.dir/__/drivers/svg.c.o
CMakeFiles/plplotd.dir/__/drivers/tk.c.o
CMakeFiles/plplotd.dir/__/bindings/tcl/tclAPI.c.o
CMakeFiles/plplotd.dir/__/bindings/tcl/tclMain.c.o
CMakeFiles/plplotd.dir/__/bindings/tk/Pltk_Init.c.o
CMakeFiles/plplotd.dir/__/bindings/tk/plframe.c.o
CMakeFiles/plplotd.dir/__/bindings/tk/plr.c.o
CMakeFiles/plplotd.dir/__/bindings/tk/tcpip.c.o
CMakeFiles/plplotd.dir/__/bindings/tk/tkMain.c.o
CMakeFiles/plplotd.dir/__/bindings/tcl/tclMatrix.c.o
CMakeFiles/plplotd.dir/__/bindings/tcl/matrixInit.c.o
CMakeFiles/plplotd.dir/__/drivers/tkwin.c.o
CMakeFiles/plplotd.dir/__/bindings/tk-x-plat/Plplotter_Init.c.o
CMakeFiles/plplotd.dir/__/bindings/tk-x-plat/plplotter.c.o
CMakeFiles/plplotd.dir/__/drivers/wxwidgets_agg.cpp.o
CMakeFiles/plplotd.dir/__/drivers/wxwidgets.cpp.o
CMakeFiles/plplotd.dir/__/drivers/wxwidgets_app.cpp.o
CMakeFiles/plplotd.dir/__/drivers/wxwidgets_dc.cpp.o
CMakeFiles/plplotd.dir/__/drivers/wxwidgets_gc.cpp.o
CMakeFiles/plplotd.dir/__/drivers/xfig.c.o
CMakeFiles/plplotd.dir/__/drivers/xwin.c.o -pthread -lpangocairo-1.0
-lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
-lSM -lICE -lX11 -lXext -lSM -lICE -lX11 -lXext -lpthread -ltcl -ltk -litcl3.4
-litk3.4 -ltcl -ltk -ltcl -ltk -pthread -lLASi -lpangoft2-1.0 -lpango-1.0
-lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt
-lglib-2.0 -pthread -lwx_baseu-2.8 -lwx_gtk2u_core-2.8 -lQtSvg -lQtGui -lQtXml
-lQtCore -lm ../lib/csa/libcsirocsa.so.0.0.1 ../lib/nn/libcsironn.so.0.0.1
../lib/qsastime/libqsastime.so.0.0.1 -lfreetype -lpango-1.0 -lcairo
-lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lSM -lICE -lX11
-lXext -lpthread -ltcl -ltk -litcl3.4 -litk3.4 -lLASi -lpangoft2-1.0
-lfontconfig -lwx_baseu-2.8 -lwx_gtk2u_core-2.8 -lQtSvg -lQtGui -lQtXml
-lQtCore -lm
-Wl,-rpath,/builddir/build/BUILD/plplot-5.9.9/fedora/lib/csa:/builddir/build/BUILD/plplot-5.9.9/fedora/lib/nn:/builddir/build/BUILD/plplot-5.9.9/fedora/lib/qsastime:
Now, why is
'CMakeFiles/plplotd.dir/__/drivers/wxwidgets_agg.cpp.oCMakeFiles/plplotd.dir/__/drivers/wxwidgets.cpp.o
CMakeFiles/plplotd.dir/__/drivers/wxwidgets_app.cpp.o
CMakeFiles/plplotd.dir/__/drivers/wxwidgets_dc.cpp.o
CMakeFiles/plplotd.dir/__/drivers/wxwidgets_gc.cpp.o' getting put into
libplplotd and not libplplotcxxd? So the other languages can output to wx*
devices? It's not really a driver though, correct?
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA/CoRA Division FAX: 303-415-9702
3380 Mitchell Lane [email protected]
Boulder, CO 80301 http://www.cora.nwra.com
diff -up plplot-5.9.9/cmake/modules/FindLTDL.cmake.libs plplot-5.9.9/cmake/modules/FindLTDL.cmake
--- plplot-5.9.9/cmake/modules/FindLTDL.cmake.libs 2011-10-12 18:43:01.000000000 -0600
+++ plplot-5.9.9/cmake/modules/FindLTDL.cmake 2011-11-30 10:20:51.112191434 -0700
@@ -40,40 +40,42 @@ if(LTDL_INCLUDE_DIR)
endif(${_lib})
endmacro(_find_check_libs)
- # Find and check platform-dependent libraries which
- # libltdl depends upon using model given
- # for determining LIBADD_DL in $prefix/share/libtool/libltdl/acinclude.m4
+ if(!NON_TRANSITIVE)
+ # Find and check platform-dependent libraries which
+ # libltdl depends upon using model given
+ # for determining LIBADD_DL in $prefix/share/libtool/libltdl/acinclude.m4
- # Look for three exclusive alternatives:
- # (dld shl_load; dl dlopen; svdl dlopen)
- # N.B. all the different ADDLIB variables have to be different because
- # of caching of results in the macro.
- _find_check_libs(dld shl_load LTDL_LTDL_ADDLIB0 LTDL_LTDL_HAVE_ADDLIB0)
- if(LTDL_LTDL_HAVE_ADDLIB0)
- set(LTDL_LIBRARIES ${LTDL_LIBRARIES} ${LTDL_LTDL_ADDLIB0})
- set(LTDL_FOUND ON)
- else(LTDL_LTDL_HAVE_ADDLIB0)
- _find_check_libs(dl dlopen LTDL_LTDL_ADDLIB1 LTDL_LTDL_HAVE_ADDLIB1)
- if(LTDL_LTDL_HAVE_ADDLIB1)
- set(LTDL_LIBRARIES ${LTDL_LIBRARIES} ${LTDL_LTDL_ADDLIB1})
+ # Look for three exclusive alternatives:
+ # (dld shl_load; dl dlopen; svdl dlopen)
+ # N.B. all the different ADDLIB variables have to be different because
+ # of caching of results in the macro.
+ _find_check_libs(dld shl_load LTDL_LTDL_ADDLIB0 LTDL_LTDL_HAVE_ADDLIB0)
+ if(LTDL_LTDL_HAVE_ADDLIB0)
+ set(LTDL_LIBRARIES ${LTDL_LIBRARIES} ${LTDL_LTDL_ADDLIB0})
set(LTDL_FOUND ON)
- else(LTDL_LTDL_HAVE_ADDLIB1)
- _find_check_libs(svdl dlopen LTDL_LTDL_ADDLIB2 LTDL_LTDL_HAVE_ADDLIB2)
- if(LTDL_LTDL_HAVE_ADDLIB2)
- set(LTDL_LIBRARIES ${LTDL_LIBRARIES} ${LTDL_LTDL_ADDLIB2})
+ else(LTDL_LTDL_HAVE_ADDLIB0)
+ _find_check_libs(dl dlopen LTDL_LTDL_ADDLIB1 LTDL_LTDL_HAVE_ADDLIB1)
+ if(LTDL_LTDL_HAVE_ADDLIB1)
+ set(LTDL_LIBRARIES ${LTDL_LIBRARIES} ${LTDL_LTDL_ADDLIB1})
set(LTDL_FOUND ON)
- else(LTDL_LTDL_HAVE_ADDLIB2)
- set(LTDL_FOUND OFF)
- endif(LTDL_LTDL_HAVE_ADDLIB2)
- endif(LTDL_LTDL_HAVE_ADDLIB1)
- endif(LTDL_LTDL_HAVE_ADDLIB0)
+ else(LTDL_LTDL_HAVE_ADDLIB1)
+ _find_check_libs(svdl dlopen LTDL_LTDL_ADDLIB2 LTDL_LTDL_HAVE_ADDLIB2)
+ if(LTDL_LTDL_HAVE_ADDLIB2)
+ set(LTDL_LIBRARIES ${LTDL_LIBRARIES} ${LTDL_LTDL_ADDLIB2})
+ set(LTDL_FOUND ON)
+ else(LTDL_LTDL_HAVE_ADDLIB2)
+ set(LTDL_FOUND OFF)
+ endif(LTDL_LTDL_HAVE_ADDLIB2)
+ endif(LTDL_LTDL_HAVE_ADDLIB1)
+ endif(LTDL_LTDL_HAVE_ADDLIB0)
- # (dld dld_link) appended to any that have been found before.
- _find_check_libs(dld dld_link LTDL_LTDL_ADDLIB3 LTDL_LTDL_HAVE_ADDLIB3)
- if(LTDL_LTDL_HAVE_ADDLIB3)
- set(LTDL_LIBRARIES ${LTDL_LIBRARIES} ${LTDL_LTDL_ADDLIB3})
- set(LTDL_FOUND ON)
- endif(LTDL_LTDL_HAVE_ADDLIB3)
+ # (dld dld_link) appended to any that have been found before.
+ _find_check_libs(dld dld_link LTDL_LTDL_ADDLIB3 LTDL_LTDL_HAVE_ADDLIB3)
+ if(LTDL_LTDL_HAVE_ADDLIB3)
+ set(LTDL_LIBRARIES ${LTDL_LIBRARIES} ${LTDL_LTDL_ADDLIB3})
+ set(LTDL_FOUND ON)
+ endif(LTDL_LTDL_HAVE_ADDLIB3)
+ endif(!NON_TRANSITIVE)
endif(LTDL_LIBRARIES)
endif(LTDL_INCLUDE_DIR)
diff -up plplot-5.9.9/cmake/modules/tcl-related.cmake.libs plplot-5.9.9/cmake/modules/tcl-related.cmake
--- plplot-5.9.9/cmake/modules/tcl-related.cmake.libs 2011-10-12 18:43:01.000000000 -0600
+++ plplot-5.9.9/cmake/modules/tcl-related.cmake 2011-11-30 09:28:38.265707013 -0700
@@ -138,7 +138,7 @@ if(ENABLE_tcl)
endif(ENABLE_tk AND NOT X11_FOUND)
if(ENABLE_tk)
set(TK_INCLUDE_PATH ${TK_INCLUDE_PATH} ${X11_INCLUDE_DIR})
- set(TK_LIBRARY ${TK_LIBRARY} ${X11_LIBRARIES})
+ set(TK_LIBRARY ${TK_LIBRARY})
message(STATUS "TK_INCLUDE_PATH = ${TK_INCLUDE_PATH}")
message(STATUS "TK_LIBRARY = ${TK_LIBRARY}")
else(ENABLE_tk)
diff -up plplot-5.9.9/cmake/modules/wxwidgets.cmake.libs plplot-5.9.9/cmake/modules/wxwidgets.cmake
--- plplot-5.9.9/cmake/modules/wxwidgets.cmake.libs 2011-11-30 09:28:34.457843357 -0700
+++ plplot-5.9.9/cmake/modules/wxwidgets.cmake 2011-11-30 10:32:01.392198048 -0700
@@ -91,11 +91,6 @@ if(PLD_wxwidgets OR PLD_wxpng)
wxwidgets_COMPILE_FLAGS
"${wxwidgets_COMPILE_FLAGS} -I${AGG_INCLUDE_DIRS}"
)
- set(
- wxwidgets_LINK_FLAGS
- ${wxwidgets_LINK_FLAGS}
- ${AGG_LIBRARIES}
- )
else(HAVE_AGG)
message(STATUS "WARNING: wxwidgets driver and bindings components depending on AGG library have been dropped.")
endif(HAVE_AGG)
@@ -103,11 +98,6 @@ if(PLD_wxwidgets OR PLD_wxpng)
wxwidgets_COMPILE_FLAGS
"${wxwidgets_COMPILE_FLAGS} -I${FREETYPE_INCLUDE_DIR}"
)
- set(
- wxwidgets_LINK_FLAGS
- ${wxwidgets_LINK_FLAGS}
- ${FREETYPE_LIBRARIES}
- )
endif(WITH_FREETYPE)
set(DRIVERS_LINK_FLAGS
${DRIVERS_LINK_FLAGS}
diff -up plplot-5.9.9/examples/tk/Makefile.examples.in.libs plplot-5.9.9/examples/tk/Makefile.examples.in
--- plplot-5.9.9/examples/tk/Makefile.examples.in.libs 2011-11-30 09:28:38.257707298 -0700
+++ plplot-5.9.9/examples/tk/Makefile.examples.in 2011-11-30 10:13:48.738663281 -0700
@@ -35,7 +35,7 @@ clean:
rm -f $(EXECUTABLES_list) $(itk_EXECUTABLES_list)
.c$(EXEEXT):
-@pkg_config_true@ $(CC) $< -o $@ `pkg-config @PC_STATIC_OPTION@ --cflags --libs plplot$(LIB_TAG)-tcl`
-@pkg_config_false@ $(CC) $< -o $@ `plplot-config --cflags --libs --with-tcl`
+@pkg_config_true@ $(CC) $< -o $@ `pkg-config @PC_STATIC_OPTION@ --cflags --libs plplot$(LIB_TAG)-tcl` -lm
+@pkg_config_false@ $(CC) $< -o $@ `plplot-config --cflags --libs --with-tcl` -lm
.SUFFIXES: .c $(EXEEXT)
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel