On Thu, Mar 24, 2011 at 10:01:11PM +0100, Matthias Ringwald wrote:
> Hi Sven 
> 
> 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


I do recall that when I created test pdftk packages...

http://sourceforge.net/tracker/index.php?func=detail&aid=2847724&group_id=17203&atid=414256

I included...

PatchScript: <<
  cd pdftk; perl -pi -e "s|-liconv|-L%p/lib -liconv|g" ./Makefile.OSX-10.6
<<

because the bundled Makefile.OSX-10.6 didn't explicitly set the path for 
-liconv. I wasn't
sure why this change was discarded for the packaging finally added to unstable.
           Jack

> 
> Jack, does this make sense?
> 
> Best
>  Matthias
> 
> On 24.03.2011, at 20:39, Sven de Vries wrote:
> 
> > Hi,
> > 
> >> The latest upstream version 1.44 compiles without patches with gcc-45.
> >> I've updated both stable and unstable to the new version. Please give it
> >> try.
> > 
> > thanks for the update, _but_
> > even though on 10.6.6/7 it compiles fine for x86_64, it fails at runtime:
> > 
> > pdftk A=0260_0001.pdf B=0264_0001.pdf shuffle A1-end Bend-1 output 
> > /tmp/t.pdf
> > dyld: _dyld_bind_fully_image_containing_address() error
> > dyld: Symbol not found: _libiconv
> >  Referenced from: /sw64/lib/gcc4.5/lib/libgcj.11.dylib
> >  Expected in: flat namespace
> > in /sw64/lib/gcc4.5/lib/libgcj.11.dylib
> > Trace/BPT trap
> > 
> > sw_vers
> > ProductName:    Mac OS X
> > ProductVersion: 10.6.7
> > BuildVersion:   10J869
> > 
> > fink --version | head -n3
> > Package manager version: 0.29.21
> > Distribution version: selfupdate-rsync Thu Mar 24 10:36:37 2011, 10.6, 
> > x86_64
> > Trees: local/main stable/main stable/crypto unstable/main unstable/crypto
> > 
> > Any advice?
> > 
> > best
> > sven
> > 

------------------------------------------------------------------------------
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