> H5Fint.c: In function 'H5F_build_actual_name':
> H5Fint.c:1572:27: error: 'PATH_MAX' undeclared (first use in this function)
PATH_MAX is defined in /usr/include/limits.h. Please check which .h files
H5Fint.c is including, and fgrep for "limits.h" in them.
If none of the header files include it, add the following line to one of them,
or even to
H5Fint.c (least preferred):
#include <limits.h>
Also, Keith noted, use -R with -L/path/to/lib, with the following addendums:
if HDF5 supports building under this relative structure:
bin/
lib/
Which I believe it does (from memory), then link with the follwing:
ORIGIN='$ORIGIN'; export ORIGIN
O='$$O'; export O
and add:
-R$ORIGIN:$ORIGIN/../../lib:$ORIGIN/../lib:/opt/somewhere/lib
to your LD_OPTIONS (not LDFLAGS!) environment variable.
$ORIGIN is a special keyword to the link editor: as long as the relative
hierarchy
(bin/, lib/, sbin/) is preserved, the shared object binaries and libraries can
be
relocated anywhere. The only time the link editor intentionally disregards
$ORIGIN
is with SUID binaries, for security reasons.
-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription:
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com