On 01/04/2012 11:29 AM, Alan W. Irwin wrote:
Hi Orion:
Sorry your previous post fell through the cracks. I think Andrew is the
best guy to evaluate your patch so I won't comment on that, but
I will respond to two of your questions not involving the patch.
On 2012-01-04 09:12-0700 Orion Poplawski wrote:
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?
I have just made a change (revision 12117) which is untested, but
which I think should fix this.
Well, not sure if this is the cause, but:
10: Testing front-end ocaml
10: x01ocaml
10: /builddir/build/BUILD/plplot-5.9.9/fedora/examples/ocaml/x01ocaml: error
while loading shared
libraries: libplplotd.so.11: cannot open shared object file: No such file or
directory
10/17 Test #10: examples_ocaml ...................***Failed 0.04 sec
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'
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?
I assume you are building with the cmake option
-DENABLE_DYNDRIVERS=OFF. In that special case, the device drivers are not
shared objects which are dynamically loaded by the libplplot as for
the usual (default) case. Instead, for this special case all drivers
(whether C or C++) are made part of the plplot library and called
directly as needed as part of the services provided by that (expanded)
library. wxwidgets*.cpp.o are all compiled objects which are part of
the wxwidgets device driver. So the above seems fine to me.
Thanks - I hadn't noticed that my FindLTDL.cmake patch was not setting
LTDL_FOUND and so ENABLE_DYNDRIVERS was being set to off.
I've updated my libs patch.
--
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 2012-01-04 11:43:42.035715727 -0700
@@ -40,40 +40,44 @@ 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})
+ # (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)
+ else(!NON_TRANSITIVE)
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 2012-01-04 08:59:38.249354911 -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 2012-01-04 08:59:33.022542662 -0700
+++ plplot-5.9.9/cmake/modules/wxwidgets.cmake 2012-01-04 08:59:38.249354911 -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 2012-01-04 08:59:38.242355161 -0700
+++ plplot-5.9.9/examples/tk/Makefile.examples.in 2012-01-04 08:59:38.249354911 -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)
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel