On Thu, 24 Mar 2011 19:32:28 -0400, Jack Howarth
wrote:
On Thu, Mar 24, 2011 at 10:01:11PM  0100, Matthias Ringwald wrote:
  > >
  > > could you try to help dyld finding libiconv by:
  > >
  > > > fink install libiconv
  > > > export DYLD_INSERT_LIBRARIES=/sw64/lib/libiconv.dylib
  > > > pdftk... 
  > >
  > > I don't have a 64bit fink installation and cannot test this but 
it looks like libgcj from the gcc45 package doesn't link explicitly 
against libiconv and that's why it's not found. on my 10.6.6 it works 
for i386 for some reason. 
  >
  > The gcj compiler should have -L/sw/lib -liconv in its spec. 
  >
  > gcj-fsf-4.5 -v --main=testme -O testme.java
  >
  > produces
  >
  >  
/sw/lib/gcc4.5/libexec/gcc/x86_64-apple-darwin10.6.0/4.5.2/collect2 
-dynamic -arch x86_64 -macosx_version_min 10.6.7 
-weak_reference_mismatches non-weak -o a.out -lcrt1.10.5.o 
-L/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.6.0/4.5.2 
-L/sw/lib/gcc4.5/lib/gcc/x86_64-apple-darwin10.6.0/4.5.2/../../.. 
/var/tmp//ccVQdp14.o /var/tmp//ccfB7sJP.o -lgcc_s.10.5 -lgcc_ext.10.5 
-lgcc -lgcj -lm -L/sw/lib -liconv -lpthread -lz -allow_stack_execute 
-ldl -lgcc_s.10.5 -lgcc_ext.10.5 -lgcc -no_compact_unwind -lSystem
 
That seems to leave "anything that uses libgcj" at risk of library 
search ordering confusion. The setup requires /sw/lib's libiconv.dylib, 
but -L on the command-line take precedence over the spec flags. Also, 
it makes a silent build-time requirement for /sw/lib/libiconv.dylib. 
The package that uses a certain compiler has to know to 
BuildDepends:libiconv-dev even though the package might have absolutely 
no direct use of iconv? And when it's not found, it fails at either 
build or runtime with a completely useless (unless you know this game) 
error? I'm not sure anything is gained by avoiding directly linking 
against a library that is directly used, rather than silently passing 
the buck down the line. 
 
dan

  --
Daniel Macks
  dma...@netspace.org



------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to