libmidori-core.so lacks linking to -lX11 for 2 symbols from it, XFree() and XGetWindowProperty()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Midori Web Browser |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Since functions are used from libX11 in midori/sokoke.c, the -lX11 should be linked against. Currently the CMakeLists.txt
is checking if libX11 exists, but then it fails to do anything with it!
Linking C executable midori
cd /var/tmp/
make[2]: Leaving directory '/var/tmp/
make -f tests/CMakeFile
/usr/bin/
../midori/
../midori/
collect2: error: ld returned 1 exit status
The problem can be reproduced with the binutils 2.24's ld gold linker and -Wl,--as-needed LDFLAGS, because it's stricker linker, and correctly so. The problem is in midori's side.
The attached patch fixes the problem
Related branches
- Cris Dywan: Approve
-
Diff: 11 lines (+1/-1)1 file modifiedCMakeLists.txt (+1/-1)
Changed in midori: | |
status: | New → Fix Committed |
Changed in midori: | |
status: | Fix Committed → Fix Released |
I forgot to say that the bug is in latest release, 0.5.7