Ben Abbott wrote:
> I'm running 10.4.6 and using the 10.4-transitional distribution with  
> Xcode 2.2.1 installed (legacy tools too).
[]
> bens-powerbook:~ bpabbott$ fink rebuild pdftk
> Password:
> Information about 5784 packages read in 6 seconds.
> The following package will be rebuilt:
> pdftk
> <snip>
> /sw/lib/gcc4/lib/gcc/powerpc-apple-darwin7/4.1.0/include/sys/types.h: 
> 83:26: error: machine/ansi.h: No such file or directory

Your gcc4 package from Fink is too old. It was built on MacOSX 10.3 and 
its header files don't work on 10.4.

This dependency on the gnu java compiler from the gcc4 package is a big 
problem for pdftk, because the gcc4 package does not adhere to the 
ususal Fink policy concerning backward compatibility.

I am CCing the maintainers of gcc4 and of pdftk, because this needs to 
be sorted out. It might perhaps even need a discussion on the fink-devel 
list.

The build problem is not so hard to solve: One can make pdftk 
build-depend on a version of gcc4 that does work with OSX 10.4.

But there is also a runtime problem (happened to me just 2 days ago): If 
you build pdftk with one version of gcc4 and then update gcc4-shlibs, 
pdftk may no longer work, because the java dylib from gcc4-shlibs has 
changed its install-name.

In order to adhere to the Fink shlibs policies, we would need several 
gcc4-shlibs packages with different names, for example gcc4.1-shlibs, 
gcc4.2-shlibs, or even more detailed gcc4.2.0-shlibs or something.

Ben, right now in order to build pdftk, you have to install a gcc4 
package that was compiled on OSX 10.4.

-- 
Martin



_______________________________________________
Fink-beginners mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to