[Fink-devel] libtool problem with new plplot pkg

2008-01-03 Thread Jean-François Mertens
Hi,

Sorry to have left for Xmas in a rush, leaving to Martin
to fix problems.. I was aware that some problems
remained with plplot, but thought of them as not as
not that urgent, especially over Xmas time _ so had
taken the new version 5.8.0 with me, and just
committed it today.

There remains a libtool problem that is not well fixed:

When removing the last line of the patchscript , the command
that runs get-drv-info on the gcw driver fails :
 Could not open driver module /sw/.bld/plplot-5.8.0-1001/ 
 plplot-5.8.0/drivers/gcw
 libltdl error: dlopen(/sw/.bld/plplot-5.8.0-1001/plplot-5.8.0/ 
 drivers/gcw.so, 9): image not found

with the first line of the error msg showing the argument sent
to lt_dlopenext (in get-drv-info.c), and second line contains the
msg 'image not found', which I can grep only in dyld.

It is 'by pure accident' that I found that exporting as  
DYLD_FALLBACK_LIBRARY_PATH
the path to libplplotgnome2d.dylib (a 'dependency_lib) cured the  
problem...
The problem also disappears (w/o the patch) if the pkg is already  
installed..

Nevertheless, gcw.la seems completely correct as far as I can see;
in particular, libplplotgnome2d.la appears there in the dependency_libs,
with its full path to the build-dir.. The other relevant libtool  
files also
seem correct to my  (obviously insufficiently trained) eyes.

And I'm getting lost trying to follow  ltdl.c ...

Thanks in adance for any insight..

Jean-Francois Mertens



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel


Re: [Fink-devel] libtool problem with new plplot pkg

2008-01-03 Thread Peter O'Gorman
Jean-François Mertens wrote:
 Hi,
 
 Sorry to have left for Xmas in a rush, leaving to Martin
 to fix problems.. I was aware that some problems
 remained with plplot, but thought of them as not as
 not that urgent, especially over Xmas time _ so had
 taken the new version 5.8.0 with me, and just
 committed it today.
 
 There remains a libtool problem that is not well fixed:
 
 When removing the last line of the patchscript , the command
 that runs get-drv-info on the gcw driver fails :
 Could not open driver module /sw/.bld/plplot-5.8.0-1001/ 
 plplot-5.8.0/drivers/gcw
 libltdl error: dlopen(/sw/.bld/plplot-5.8.0-1001/plplot-5.8.0/ 
 drivers/gcw.so, 9): image not found

There is not enough space on my drive to install this right now, sorry.

Your fix seems ok, for some reason the path to the dependent uninstalled
library is not being set in the wrapper script, and ltdl will not load
dependent libraries (because it knows that darwin's dyld can load them).

Seems odd that it should work on elf though, I'd have thought it would
fail there too.

Oh well, I'll put it on my ever lengthening libtool todo list.

Peter
--
Peter O'Gorman
http://pogma.com

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel