Hi, I inadvertently grepped /usr/share/cmake-2.4/Modules/ and not /usr/share/cmake-2.4/Modules/Platform/. I do find the files with the -KPIC flag that you mentioned. I will try to build the newer version of cmake to avoid this problem in the future. Thanks again for your help. Recif
--- On Thu, 7/10/08, Alan W. Irwin <[EMAIL PROTECTED]> wrote: > From: Alan W. Irwin <[EMAIL PROTECTED]> > Subject: Re: [Plplot-general] Problems compiling plplot-5.9.0 > To: "R C" <[EMAIL PROTECTED]> > Cc: plplot-general@lists.sourceforge.net > Date: Thursday, July 10, 2008, 8:41 PM > Hi Recif: > > On 2008-07-10 16:36-0700 R C wrote: > > > Hi, > > I am running cmake version 2.4.7. > > grep -i kpic /usr/share/cmake-2.4/Modules/Platform/* > came back empty. > > Actually, I have access to that version as well (not > installed, but in > source-code form), and here is what grep found for me: > > grep KPIC ~software/cmake/cmake-2.4.7/Modules/Platform/* > /home/software/cmake/cmake-2.4.7/Modules/Platform/Linux-ifort.cmake:SET(CMAKE_SHARED_LIBRARY_Fortran_FLAGS > "-KPIC") > /home/software/cmake/cmake-2.4.7/Modules/Platform/SunOS.cmake: > SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-KPIC") > /home/software/cmake/cmake-2.4.7/Modules/Platform/SunOS.cmake: > SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-KPIC") > > So assuming something went wrong with your grep and > Linux-ifort.cmake was > actually installed on your system, that -KPIC mistake is > the cause of > your ifort flag problem for cmake-2.4.7. > > That file was changed as follows for 2.4.8: > > [EMAIL PROTECTED]> diff > /home/software/cmake/cmake-2.4.[78]/Modules/Platform/Linux-ifort.cmake > 2c2 > < SET(CMAKE_SHARED_LIBRARY_Fortran_FLAGS > "-KPIC") > --- > > SET(CMAKE_SHARED_LIBRARY_Fortran_FLAGS > "-fPIC") > > so I assume someone else reported the same difficulty as > you to the CMake list > and the developers there fixed the problem for 2.4.8. > > From your comment below, you obviously have a workaround > for that > cmake-2.4.7 Linux ifort bug for now by doing search and > replace in the build > tree. However, I am virtually positive you won't have > to do that in future > if you upgrade Ubuntu (which will probably upgrade cmake to > 2.4.8) or build > your own private version of cmake (a privately built > cmake-2.6.0 works for > me on Debian testing and also has the > CMAKE_SHARED_LIBRARY_Fortran_FLAGS fix > for Linux-ifort.cmake). > > > [...]Doing a grep check on the build tree, I found > that -KPIC was set as > an option to ifort in the link.txt, relink.txt and > flags.make files in the > bindings/f77/CMakefiles/plplotf77d.dir/ and > bindings/f95/CMakefiles/plplotf95d.dir/ subdirectories. I > did a new build > and changed -KPIC to -fPIC in those files, and the > compilation and install > ran cleanly. > > > I would like to thank you for your assistance in > getting this to work. > > You are welcome. > > 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 > __________________________ ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ Plplot-general mailing list Plplot-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-general