Bug 204594
| Summary: | fillets-ng doesn't rebuild against FC6 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Matthias Saou <matthias> |
| Component: | fillets-ng | Assignee: | Matthias Saou <matthias> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | extras-qa, hdegoede |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2006-08-30 12:30:59 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Matthias Saou
2006-08-30 09:53:31 UTC
Looks like a bug in SDL:
[hans@localhost ~]$ ldd /usr/lib/libSDL.so
linux-gate.so.1 => (0x0066f000)
libm.so.6 => /lib/libm.so.6 (0x006e0000)
libdl.so.2 => /lib/libdl.so.2 (0x005c8000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00111000)
libc.so.6 => /lib/libc.so.6 (0x001de000)
/lib/ld-linux.so.2 (0x00670000)
[hans@localhost ~]$ sdl-config --libs
-L/usr/lib -lSDL -lpthread
---
As a workaround add -lX11 to the cmdline when linking (and report a bug about this).
Notice that on x86_64 the ldd output is:
[hans@shalem ~]$ ldd /usr/lib64/libSDL.so
libm.so.6 => /lib64/libm.so.6 (0x00002aaaaad68000)
libdl.so.2 => /lib64/libdl.so.2 (0x00002aaaaafeb000)
libX11.so.6 => /usr/lib64/libX11.so.6 (0x00002aaaab1ef000)
libXext.so.6 => /usr/lib64/libXext.so.6 (0x00002aaaab4fb000)
libXrandr.so.2 => /usr/lib64/libXrandr.so.2 (0x00002aaaab70c000)
libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x00002aaaab90f000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002aaaabb19000)
libc.so.6 => /lib64/libc.so.6 (0x00002aaaabd33000)
/lib64/ld-linux-x86-64.so.2 (0x0000555555554000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x00002aaaac080000)
libXdmcp.so.6 => /usr/lib64/libXdmcp.so.6 (0x00002aaaac283000)
So it seems something is pretty broken.
Indeed. SDL problem filed as #204600. Stilll, since "sdl-config --libs" doesn't show any -lX11, doesn't fillets-ng seem to be assuming too much about SDL being linked against X11? Looking at the code, it does do a check for X11 before using all of those functions, but it doesn't bother adding -lX11 explicitely. Wouldn't the proper fix be to change the configure script to do that? I've included a quick patch to configure.in in order to get -lX11 added and it has fixed the build. Feel free to review it and let me know if I've done something wrong, as I'm no autotools expert ;-) Matthias, this may very well be a bug in both SDL and fillets-ng. I'm sure its a bug in SDL as SDL needs libX11 and thus should be linked against it. If fillets-ng needs / uses X11 itself directly then indeed -lX11 should be added to the cmdline by the fillets-bg configure scripts too. Matthias as discussed in length in bug 204600, this really is a fillets-ng problem and not a SDL problem. The fix is to add -lX11 and any other needed libs to the linking cmdline, once those are there fillets-ng should build fine. |