On 11/29/2011 07:05 PM, Alan W. Irwin wrote:
Hi Orion:
Thanks for your help.
On 2011-11-29 16:54-0700 Orion Poplawski wrote:
plplot-libs.i686: W: unused-direct-shlib-dependency
/usr/lib/libplplotd.so.11.0.0 /lib/libdl.so.2
This appears to come it from cmake's FindLTDL.cmake and LTDL_LIBRARIES.
That looks for what library has dlopen() and adds that to the list.
But this is not needed as libplplotd does not call dlopen().
Not sure of the best way to handle this though, as I suppose it may be
needed for static linking.
plplot-qt.i686: W: unused-direct-shlib-dependency
/usr/lib/libplplotqtd.so.0.0.1 /usr/lib/libQtXml.so.4
This is probably coming in from cmake's Qt stuff. Might be able to
specify what Qt modules you need. May not be worth it.
plplot-tk.i686: W: unused-direct-shlib-dependency
/usr/lib/libplplottcltkd.so.9.2.0 /usr/lib/libSM.so.6
plplot-tk.i686: W: unused-direct-shlib-dependency
/usr/lib/libplplottcltkd.so.9.2.0 /usr/lib/libICE.so.6
plplot-tk.i686: W: unused-direct-shlib-dependency
/usr/lib/libplplottcltkd.so.9.2.0 /usr/lib/libXext.so.6
X11_LIBRARIES gets added to TK_LIBRARY in tcl-related.cmake. Removed in
attached patch.
plplot-wxGTK.i686: W: unused-direct-shlib-dependency
/usr/lib/libplplotwxwidgetsd.so.0.0.0 /usr/lib/libagg.so.2
plplot-wxGTK.i686: W: unused-direct-shlib-dependency
/usr/lib/libplplotwxwidgetsd.so.0.0.0 /usr/lib/libaggfontfreetype.so.2
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
wxwidgets.cmake adds AGG_LIBRARIES to wxwidgets_LINK_FLAGS. I've
removed it in my libs patch. Not sure if it would be needed in other
situations.
I've compiled with the attached patch, but have not yet been able to run
rpmlint or make the examples.
Undoubtedly at least some of these reflect real overlinking that
should be fixed for the NON_TRANSITIVE ON case, but I
have run out of time to work on this so will leave it to someone else.
Some other rpmlint issues:
plplot.i686: E: incorrect-fsf-address
/usr/share/doc/plplot-5.9.9/COPYING.LIB
plplot-octave.i686: E: incorrect-fsf-address
/usr/share/plplot_octave/struct_contains.m
I think I prefer to leave license text as is.
This really does need to get fixed. For COPYING.LIB just download the
most recent from the FSF. From that you can get the new address and put
that in struct_contains.m and anything else that may have it.
[out of order for clarity]
cd f95; make
make[1]: Entering directory `/usr/share/plplot5.9.9/examples/f95'
/usr/bin/gfortran x01f.f90 -o x01f `pkg-config --cflags --libs
plplotd-f95`
x01f.f90:24.19:
use plf95demolib
1
Fatal Error: Can't open module file 'plf95demolib.mod' for reading at
(1): No such file or directory
This file does not appear to have been installed.
Oops. I forgot to do an svn update to bring in Arjen's f95 changes
before I did my comprehensive test. Revision 12071 should fix this
(and other) issues with those f95 changes.
The three remaining issues below appear to be ones my system is blind to.
Andrew, could you take a look?
Building examples in the installed tree with make:
/usr/bin/gnatmake -aI/usr/share/ada/adainclude/plplotadad
-aL/usr/lib/ada/adalib/plplotadad x15a.adb \
-cargs `PKG_CONFIG_PATH=/usr/lib/pkgconfig pkg-config --cflags
plplotd-ada` -largs `PKG_CONFIG_PATH=/usr/lib/pkgconfig pkg-config
--libs plplotd-ada`
gcc -c -I/usr/share/ada/adainclude/plplotadad -I/usr/include/plplot
x15a.adb
gnatbind -aI/usr/share/ada/adainclude/plplotadad
-aO/usr/lib/ada/adalib/plplotadad -x x15a.ali
gnatlink x15a.ali -lplplotadad
/usr/bin/ld: ./x15a.o: undefined reference to symbol 'c_plfill'
/usr/bin/ld: note: 'c_plfill' is defined in DSO
/usr/lib/libplplotd.so.11 so try adding it to the linker command line
If there is no direct ada interface for "c_plfill" then plplotd should
be in the pkg-config --libs output for plplotadad.
/usr/lib/ccache/c++ wxPLplotDemo.cpp -o wxPLplotDemo `pkg-config
--cflags --libs plplotd-wxwidgets`
/usr/bin/ld: /tmp/cc2nmLCB.o: undefined reference to symbol
'plstream::line(int, double const*, double const*)'
/usr/bin/ld: note: 'plstream::line(int, double const*, double const*)'
is defined in DSO /usr/lib/libplplotcxxd.so.10 so try adding it to the
linker command line
Similar, is there a "wx" interface for plstream::line(), or does wx code
use the native C++ interface as well? If so, pkg-config --libs
plplotd-wxwidgets should add -lplplotd.
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/ccJlYbFQ.o: undefined reference to symbol 'c_plvsta'
/usr/bin/ld: note: 'c_plvsta' is defined in DSO
/usr/lib/libplplotd.so.11 so try adding it to the linker command line
Ditto.
--
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/bindings/tk/CMakeLists.txt.libs plplot-5.9.9/bindings/tk/CMakeLists.txt
--- plplot-5.9.9/bindings/tk/CMakeLists.txt.libs 2011-10-12 18:43:01.000000000 -0600
+++ plplot-5.9.9/bindings/tk/CMakeLists.txt 2011-11-29 15:53:39.455072391 -0700
@@ -103,7 +103,7 @@ if(ENABLE_tk)
endif(BUILD_SHARED_LIBS)
add_executable(plserver plserver.c)
- target_link_libraries(plserver plplot${LIB_TAG} plplottcltk${LIB_TAG})
+ target_link_libraries(plserver plplot${LIB_TAG} plplottcltk${LIB_TAG} ${TK_LIBRARY} ${TCL_LIBRARY})
if(USE_RPATH)
get_target_property(LIB_INSTALL_RPATH plplot${LIB_TAG} INSTALL_RPATH)
diff -up plplot-5.9.9/examples/tk/CMakeLists.txt.libs plplot-5.9.9/examples/tk/CMakeLists.txt
--- plplot-5.9.9/examples/tk/CMakeLists.txt.libs 2011-10-12 18:43:01.000000000 -0600
+++ plplot-5.9.9/examples/tk/CMakeLists.txt 2011-11-29 16:11:52.211093302 -0700
@@ -172,7 +172,7 @@ if(BUILD_TEST)
set_source_files_properties(${TK_SRC_FILE}
PROPERTIES COMPILE_FLAGS "-DUSINGDLL" )
endif(BUILD_SHARED_LIBS AND CORE_BUILD)
- target_link_libraries(${TK_EXE} plplottcltk${LIB_TAG} tclmatrix${LIB_TAG} plplot${LIB_TAG} ${MATH_LIB})
+ target_link_libraries(${TK_EXE} plplottcltk${LIB_TAG} tclmatrix${LIB_TAG} plplot${LIB_TAG} ${TK_LIBRARY} ${TCL_LIBRARY} ${MATH_LIB})
set_property(GLOBAL APPEND PROPERTY TARGETS_examples_tk ${TK_EXE})
endforeach(TK_SRC_FILE ${tk_SRC})
set_property(GLOBAL APPEND PROPERTY TARGETS_examples_tk tclIndex_examples_tk)
diff -up plplot-5.9.9/utils/CMakeLists.txt.libs plplot-5.9.9/utils/CMakeLists.txt
--- plplot-5.9.9/utils/CMakeLists.txt.libs 2011-10-12 18:43:01.000000000 -0600
+++ plplot-5.9.9/utils/CMakeLists.txt 2011-11-29 16:03:52.292208526 -0700
@@ -80,7 +80,7 @@ if(ENABLE_tcl)
add_executable(pltcl pltcl.c)
- target_link_libraries(pltcl plplot${LIB_TAG} plplottcltk${LIB_TAG})
+ target_link_libraries(pltcl plplot${LIB_TAG} plplottcltk${LIB_TAG} ${ITCL_LIBRARY} ${TCL_LIBRARY})
if(USE_RPATH)
set_target_properties(pltcl
@@ -97,4 +97,4 @@ endif(ENABLE_tcl)
# Build simple executable to check parity bits of all characters read
# by stdin.
-add_executable(parity_bit_check parity_bit_check.c)
\ No newline at end of file
+add_executable(parity_bit_check parity_bit_check.c)
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-29 21:24:58.551801179 -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-10-12 18:43:01.000000000 -0600
+++ plplot-5.9.9/cmake/modules/wxwidgets.cmake 2011-11-29 21:34:16.112865917 -0700
@@ -88,11 +88,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)
------------------------------------------------------------------------------
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