[CMake] CMake 2.4.5 RC 2

Alan W. Irwin irwin at beluga.phys.uvic.ca
Thu Nov 30 15:37:30 EST 2006


On 2006-11-30 12:05-0500 Bill Hoffman wrote:

> Hi,
>
> Due to some serious bugs in 2.4.4, I have created a 2.4.5 release candidate 2 
> (1 did not even get announced).
>
> You can find the files here:
>
> http://www.cmake.org/files/v2.4/
>
> (Just sort by Last modified to get all the RC-2 files to the top)
>
> Please let me know if you find any problems with 2.4.5-RC-2.

Sorry, Bill, but another bug seems to have been introduced by these modest
changes from 2.4.4.

Here is the cmake code fragment in the PLplot cmake build system
that seems to cause the problem for 2.4.5-RC2, but not 2.4.4.

message(STATUS
"plplottcltk${LIB_TAG}_link_libraries = 
${plplottcltk${LIB_TAG}_link_libraries}"
)

add_library(plplottcltk${LIB_TAG} ${plplottcltk${LIB_TAG}_LIB_SRCS})
target_link_libraries(
plplottcltk${LIB_TAG}
${plplottcltk${LIB_TAG}_link_libraries}
)

For both cmake versions we get the following output (in fact all cmake
standard out is identical between the two versions).

-- plplottcltkd_link_libraries = 
tclmatrixd;plplotd;/usr/lib/libtcl8.4.so;/usr/lib/libitcl3.2.so;/usr/lib/libtk8.
4.so;-L/usr/X11R6/lib;-lSM;-lICE;/usr/X11R6/lib/libX11.so;/usr/X11R6/lib/libXext
.so;/usr/lib/libitk3.2.so

The make result for building this library for 2.4.4 is the correct

/usr/bin/gcc  -fPIC    -shared -Wl,-soname,libplplottcltkd.so.9 -o libplplottcltkd.so.9.2.0 "CMakeFiles/plplottcltkd.dir/tclAPI.o" "CMakeFiles/plplottcltkd.dir/tclMain.o" "CMakeFiles/plplottcltkd.dir/home/software/plplot_cvs/HEAD/plplot_cmake/bindings/tk/Pltk_Init.o" "CMakeFiles/plplottcltkd.dir/home/software/plplot_cvs/HEAD/plplot_cmake/bindings/tk/plframe.o" "CMakeFiles/plplottcltkd.dir/home/software/plplot_cvs/HEAD/plplot_cmake/bindings/tk/plr.o" "CMakeFiles/plplottcltkd.dir/home/software/plplot_cvs/HEAD/plplot_cmake/bindings/tk/tcpip.o" "CMakeFiles/plplottcltkd.dir/home/software/plplot_cvs/HEAD/plplot_cmake/bindings/tk/tkMain.o" -L/home/software/plplot_cvs/HEAD/build_dir/bindings/tcl -L/home/software/plplot_cvs/HEAD/build_dir/src -L/home/software/plplot_cvs/HEAD/build_dir/lib/csa -L/home/software/plplot_cvs/HEAD/build_dir/lib/nn -L/usr/X11R6/lib -L/home/software/autotools/install/lib -ltclmatrixd -lplplotd -ltcl8.4 -litcl3.2 -ltk8.4 -L/usr/X11R6/lib -lSM -lICE -lX11 -lXext -litk3.2 -lltdl -ldl -lm -lcsirocsa -lcsironn -lqhull -lfreetype -Wl,-rpath,/home/software/plplot_cvs/HEAD/build_dir/bindings/tcl:/home/software/plplot_cvs/HEAD/build_dir/src:/home/software/plplot_cvs/HEAD/build_dir/lib/csa:/home/software/plplot_cvs/HEAD/build_dir/lib/nn:/usr/X11R6/lib:/home/software/autotools/install/lib

The make result for building this library for RC2 is the incorrect

/usr/bin/gcc  -fPIC    -shared -Wl,-soname,libplplottcltkd.so.9 -o libplplottcltkd.so.9.2.0 "CMakeFiles/plplottcltkd.dir/tclAPI.o" "CMakeFiles/plplottcltkd.dir/tclMain.o" "CMakeFiles/plplottcltkd.dir/home/software/plplot_cvs/HEAD/plplot_cmake/bindings/tk/Pltk_Init.o" "CMakeFiles/plplottcltkd.dir/home/software/plplot_cvs/HEAD/plplot_cmake/bindings/tk/plframe.o" "CMakeFiles/plplottcltkd.dir/home/software/plplot_cvs/HEAD/plplot_cmake/bindings/tk/plr.o" "CMakeFiles/plplottcltkd.dir/home/software/plplot_cvs/HEAD/plplot_cmake/bindings/tk/tcpip.o" "CMakeFiles/plplottcltkd.dir/home/software/plplot_cvs/HEAD/plplot_cmake/bindings/tk/tkMain.o" -L/home/software/plplot_cvs/HEAD/build_dir/bindings/tcl -L/home/software/plplot_cvs/HEAD/build_dir/src -L/home/software/plplot_cvs/HEAD/build_dir/lib/csa -L/home/software/plplot_cvs/HEAD/build_dir/lib/nn -L/usr/X11R6/lib -L/home/software/autotools/install/lib -ltclmatrixd -lplplotd -ltcl8.4 -litcl3.2 -ltk8.4 -llib -lSM -lICE -lX11 -lXext -litk3.2 -lltdl -ldl -lm -lcsirocsa -lcsironn -lqhull -lfreetype -Wl,-rpath,/home/software/plplot_cvs/HEAD/build_dir/bindings/tcl:/home/software/plplot_cvs/HEAD/build_dir/src:/home/software/plplot_cvs/HEAD/build_dir/lib/csa:/home/software/plplot_cvs/HEAD/build_dir/lib/nn:/usr/X11R6/lib:/home/software/autotools/install/lib

Note the incorrect replacement of -L/usr/X11R6/lib in the former by -llib in
the latter.  Since that library does not exist, the make bombs out.

Sorry to be the bearer of the bad news, but hopefully this will be an easy one
to fix.

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 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
__________________________


More information about the CMake mailing list