| Summary: | Cross compilation can't find libproj | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mike Grant <mggr> |
| Component: | proj | Assignee: | Devrim Gündüz <devrim> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | devrim |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-12-20 20:27:42 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
I should add that doing: ln -s /usr/lib/libproj.so.0 /usr/lib/libproj.so Gives successful compilation with -m32 -lproj Never mind, I'm an idiot :) Just realised I was missing proj-devel.i686.. |
Description of problem: When cross-compiling a 32bit program against libproj, it fails to link Version-Release number of selected component (if applicable): Present in F14 x86_64 (proj-4.7.0-3.fc14.i686) and several Fedora versions before. No F16 install to test on, but have inspected the F16 RPM package and see the same issue is probably there. How reproducible: 100% Steps to Reproduce: 1. Create C code (e.g. test.c containing "int main(int argc, char *argv[]) { return 0;}") 2. Compile in 32 bit mode on a 64bit platform: gcc -m32 test.c -lproj Actual results: /usr/bin/ld: skipping incompatible /usr/lib64/libproj.so when searching for -lproj /usr/bin/ld: cannot find -lproj collect2: ld returned 1 exit status Expected results: Successful compilation of an i386 program. Additional info: Tracing through the compilation, it appears the problem is that /usr/lib/libproj.so doesn't exist. While /usr/lib/libproj.so.0 exists, it is not searched for. By specifying the full path of the library, compilation succeeds (gcc -m32 test.c /usr/lib/libproj.so.0) Suggest adding a symlink to the package that links /usr/lib/libproj.so to /usr/lib/libproj.so.0.