Sebastien Maret <[EMAIL PROTECTED]> said:
> Compilation of gdl-0.8.11 fails on 10.4.3 because it tries to link
> to the HDF5 library in the HDF5's build directory. Looks like HDF5 think it
> lives in /sw/src/fink.build:
>
> % h5cc -showconfig | grep LDFLAGS
> LDFLAGS:  -L/sw/src/fink.build/hdf5-1.6.4-2/hdf5-1.6.4/src/.libs -L/sw/lib

On second thought, this appears to be due to the presence of:

  SetLDFLAGS:-L%b/src/.libs

in the .info file. The same buggy values from LDFLAGS also appear in
the libhdf5*.la files. Doesn't that even trigger a validator warning?
Passing anything like -L%b in LDFLAGS is almost never the correct
solution. I scrapped that entry and added a PatchScript:

  perl -pi -e 's/hardcode_direct=yes/hardcode_direct=no/g' configure

That gave me h5cc.settings with LDFLAGS=-L/sw/lib, no %b in the .la
files, and the linker calls during compiling linked to the nascent
libhdf5.dylib not the one in /sw/lib. That last issue is what the
SetLDFLAGS was trying to fix, I assume?

Also, I found I could scrap the Patch, which adds -l flags directly
into libtool...I still got libsz linked into the .dylib and listed in
the .la. What was trying to be solved here?

Also, it appears there are two shared libraries in this package set
(libhdf5 and libhdf5_hl) but all of the libhdf5*.dylib files are in
the %N package and this lib has no Shlibs: entry.

There's a lot of breakage in this package:(

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to