Comment 9 for bug 738098

Revision history for this message
Paul Gevers (paul-climbing) wrote :

I believe that packages built (even in launchpad) with the free pascal compiler (fpc) also fail on this issue. See for instance my ppa builds of winff [1]:

Linking winff
/usr/bin/ld: warning: link.res contains output sections; did you forget -T?
/usr/bin/ld: cannot find -lX11
/usr/bin/ld: cannot find -lgobject-2.0
/usr/bin/ld: cannot find -lglib-2.0
/usr/bin/ld: cannot find -lgthread-2.0
/usr/bin/ld: cannot find -lgmodule-2.0
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -latk-1.0
/usr/bin/ld: cannot find -ldl
/usr/bin/ld: cannot find -lc
winff.lpr(48,1) Error: Error while linking

This "did you forget -T" warning is explained at [2].

Other than introducing the workaround (export LIBRARY_PATH) to my package rules file, is there anything else I could do in a sane way to my package to prevent this from happening? I say from the perspective of building completely different packages, this should "just work". I fear that if we now rebuild winff (and possibly other packages built by fpc) included in Ubuntu it will FTBFS.

[1] http://launchpadlibrarian.net/67113259/buildlog_ubuntu-natty-amd64.winff_1.3.2-2~ppa1n_FAILEDTOBUILD.txt.gz
[2] http://www.freepascal.org/faq.var#unix-ld219