Re: problem locating headers, I think

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Robert Rehammar wrote:

> So the library is found but the headers are not and then there is a
> check for the size of long that fails mysteriously. Can anyone clear
> this up to me I would be very grateful! I attach config.log and
> configure.ac

Where precisely is the hdf.h header located?  From the config.log:

configure:4203: gcc -c -I/scratch/opt/include -I/scratch/opt/include
conftest.c >&5
conftest.c:57:17: hdf.h: No such file or directory
...
configure: failed program was:
...
| #include <hdf.h>

and

configure:4203: gcc -c -I/scratch/opt/include -I/scratch/opt/include
conftest.c >&5
conftest.c:57:21: hdf/hdf.h: No such file or directory
...
configure: failed program was:
...
| #include <hdf/hdf.h>

These commands would have succeeded if /scratch/opt/include/hdf.h or
/scratch/opt/include/hdf/hdf.h existed, so it must be elsewhere.  What
is its exact location?

The check for the size of unsigned long fails because:

./conftest: error while loading shared libraries: libhdf5.so.5: cannot
open shared object file: No such file or directory

This happened because the test for the hdf5 library passed and it was
added to LIBS, and the subsequent tests link with it.

The error means you are trying to execute a program that was linked to a
shared library whose location the dynamic linker is not aware of, i.e.
you must add /scratch/opt/lib to LD_LIBRARY_PATH, or to /etc/ld.so.conf,
or link with an rpath.  You can't put shared libraries in non-standard
locations without notifying the dyanmic linker, otherwise it will have
no idea where to find the library at runtime.

Brian


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux