On 2010-06-01 16:03-0600 Orion Poplawski wrote: > I'm trying to build my plplot package for Fedora 14 which has cmake 2.8.1 and > for some reason it is not producing versioned libraries for F77 and F95. The > same package built fine on F-13 with cmake 2.8.0. Anyone else out there > seeing this with 2.8.1? > > F-13/cmake 2.8.0: > Linking Fortran shared library libplplotf77d.so > cd /builddir/build/BUILD/plplot-5.9.5/fedora/bindings/f77 && /usr/bin/cmake -E > cmake_link_script CMakeFiles/plplotf77d.dir/link.txt --verbose=1 > /usr/bin/gfortran -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 > -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > -shared -Wl,-soname,libplplotf77d.so.9 -o libplplotf77d.so.9.1.1 > CMakeFiles/plplotf77d.dir/strutil.f.o CMakeFiles/plplotf77d.dir/sfstubs.f.o > CMakeFiles/plplotf77d.dir/configurable.f.o libplplotf77cd.so.9.1.1 > ../../src/libplplotd.so.9.7.0 /usr/lib64/libltdl.so /usr/lib64/libdl.so > ../../lib/csa/libcsirocsa.so.0.0.1 ../../lib/nn/libcsironn.so.0.0.1 > /usr/lib64/libqhull.so ../../lib/qsastime/libqsastime.so.0.0.1 > /usr/lib64/libm.so /usr/lib64/libfreetype.so > -Wl,-rpath,/builddir/build/BUILD/plplot-5.9.5/fedora/bindings/f77:/builddir/build/BUILD/plplot-5.9.5/fedora/src:/builddir/build/BUILD/plplot-5.9.5/fedora/lib/csa:/builddir/build/BUILD/plplot-5.9.5/fedora/lib/nn:/builddir/build/BUILD/plplot-5.9.5/fedora/lib/qsastime: > > > > F-14/cmake-2.8.1: > Linking Fortran shared library libplplotf77d.so > cd /builddir/build/BUILD/plplot-5.9.5/fedora/bindings/f77 && /usr/bin/cmake -E > cmake_link_script CMakeFiles/plplotf77d.dir/link.txt --verbose=1 > /usr/bin/gfortran -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 > -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic > -shared -o libplplotf77d.so CMakeFiles/plplotf77d.dir/strutil.f.o > CMakeFiles/plplotf77d.dir/sfstubs.f.o > CMakeFiles/plplotf77d.dir/configurable.f.o libplplotf77cd.so.9.1.1 > ../../src/libplplotd.so.9.7.0 /usr/lib64/libltdl.so /usr/lib64/libdl.so > ../../lib/csa/libcsirocsa.so.0.0.1 ../../lib/nn/libcsironn.so.0.0.1 > /usr/lib64/libqhull.so ../../lib/qsastime/libqsastime.so.0.0.1 > /usr/lib64/libm.so /usr/lib64/libfreetype.so > -Wl,-rpath,/builddir/build/BUILD/plplot-5.9.5/fedora/bindings/f77:/builddir/build/BUILD/plplot-5.9.5/fedora/src:/builddir/build/BUILD/plplot-5.9.5/fedora/lib/csa:/builddir/build/BUILD/plplot-5.9.5/fedora/lib/nn:/builddir/build/BUILD/plplot-5.9.5/fedora/lib/qsastime: > > > Note the missing -Wl,soname and versioned output. > > Other differences: > F-13 used -DCMAKE_SKIP_RPATH:BOOL=ON
Hi Orion: Here is what I get by default for CMake-2.8.1, -DCMAKE_INSTALL_PREFIX=$prefix, -DBUILD_TEST=ON, and "make VERBOSE=1 plplotf77d >& make_plplotf77d.out" [...] Linking Fortran shared library libplplotf77d.so cd /home/software/plplot_svn/HEAD/build_dir/bindings/f77 && /home/software/cmake/install-2.8.1/bin/cmake -E cmake_link_script CMakeFiles/plplotf77d.dir/link.txt --verbose=1 /usr/bin/gfortran -fPIC -g -fvisibility=hidden -shared -Wl,-soname,libplplotf77d.so.9 -o libplplotf77d.so.9.1.1 CMakeFiles/plplotf77d.dir/strutil.f.o CMakeFiles/plplotf77d.dir/sfstubs.f.o CMakeFiles/plplotf77d.dir/configurable.f.o libplplotf77cd.so.9.1.1 ../../src/libplplotd.so.9.7.0 /usr/lib/libltdl.so /usr/lib/libdl.so ../../lib/csa/libcsirocsa.so.0.0.1 ../../lib/nn/libcsironn.so.0.0.1 /home/software/qhull/install/lib/libqhull.so ../../lib/qsastime/libqsastime.so.0.0.1 /usr/lib/libm.so /usr/lib/libfreetype.so -Wl,-rpath,/home/software/plplot_svn/HEAD/build_dir/bindings/f77:/home/software/plplot_svn/HEAD/build_dir/src:/home/software/plplot_svn/HEAD/build_dir/lib/csa:/home/software/plplot_svn/HEAD/build_dir/lib/nn:/home/software/qhull/install/lib:/home/software/plplot_svn/HEAD/build_dir/lib/qsastime: cd /home/software/plplot_svn/HEAD/build_dir/bindings/f77 && /home/software/cmake/install-2.8.1/bin/cmake -E cmake_symlink_library libplplotf77d.so.9.1.1 libplplotf77d.so.9 libplplotf77d.so make[3]: Leaving directory /home/software/plplot_svn/HEAD/build_dir' This last stanza you didn't quote, but I assume you have that as well to create the appropriate symlinks. However, the important point is my CMake-2.8.1-based build does have -Wl,-soname,libplplotf77d.so.9 while your F14 CMake-2.8.1 build does not. I suggest you try the same build with a virgin CMake-2.8.1 that you build yourself. IIRC, Fortran support was substantially reorganized for CMake-2.8.1, and it is easily possible that F-14 has screwed up their binary rpm version of CMake-2.8.1 by forgetting, for example, to include one or more of the new Fortran Platform support files in their CMake-2.8.1 rpm. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); PLplot scientific plotting software package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------------ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel