[GRASS5] CVS version of grass5 failing to compile nviz & r.in.gdal because of -ldl flag
glynn.clements at virgin.net
Wed, 20 Nov 2002 06:24:03 +0000
Scott W Mitchell wrote:
> OK, sorry to be answering my own post for the second time, but I found
> the answer, so here it is to make sure it's in the archives for the
> next person... at least I learned and hopefully nobody else (i.e. Glynn
> - thanks for all the help !) will expend effort on this before seeing
> that I have an answer.
> Took a break and with a fresh mind, finally paid attention to the fact
> that I only had the .dylib version of libdl, and investigated that
> further. Turned out that at some point the fink dlcompat package got
> broken into 3 sub-packages, and I didn't have the -dev package that is
> needed to install the .a version of the library, AND it installs a
> "versionless" softlink to libdl.0.dylib, taking care of the version
> number that I worked around in my previous post.
> So the answer is that Mac OS X users will need the dlcompat-dev package
> installed if they are using fink - there are also other ways to install
> the dlcompat package, but no matter how they do it, they need those
> bits - you want all three libdl files available:
From a user's perspective, that probably counts as an answer, but from
a developers perspective it's only half of an answer. It explains why
linking NVWISH2.2 failed; however, it doesn't explain why linking the
configure test succeeded.
The whole point of the configure test is to determine whether a
particular set of switches will result in successfully constructing a
program which requires a particular function. A false positive is the
worst possible result, because configure claims that everything is OK,
then goes on to add switches will break the build process.
Glynn Clements <email@example.com>