#49 plInBuildTree() confused by symbolic links in BUILD_DIR

closed
nobody
None
5
2008-01-18
2008-01-18
Anonymous
No

When I tried to build plplot, make failed when trying to create the <driver>.rc files, because get-drv-info
looked for the <driver>.so files in the installation directory (/usr/local/lib/plplot5.8.0/driversd),
rather than in the build directory.

If I remember correctly:

(in <build_dir>)
cmake -DCMAKE_VERBOSE_MAKEFILE=ON ../plplot-5.8.0
make
[...]
failure:
libltdl error: /usr/local/lib/plplot5.8.0/driversd/cairo.so: cannot open shared object file: No such file or directory

The problem was probably that plInBuildTree()
got confused by symbolic links in the path:
BUILD_DIR got set to a path that included a symbolic
link (<home_dir>/src/plplot_build, where <home_dir>/src is a symbolic link to <some_other_dir>/src ).

The workaround I used was:

ln -s <build_dir>/drivers (as root) /usr/local/lib/plplot-5.8.0/driversd
make
rm /usr/local/lib/plplot-5.8.0/driversd
make install

But probably I could have solved it by running cmake in <some_other_dir>/src/plplot_build .

Jeroen Nijhof
jeroen@nijhof.uklinux.net

Discussion

  • Andrew Ross

    Andrew Ross - 2008-01-18

    Logged In: YES
    user_id=958198
    Originator: NO

    Thanks for the bug report. This bug has already been fixed in the svn repository (revision 8054) and will be included in the next release. In the meantime, you can try using the svn version.

     
  • Andrew Ross

    Andrew Ross - 2008-01-18
    • status: open --> closed
     

Log in to post a comment.