[csw-maintainers] CSWimlib2 vs libX11
Maciej (Matchek) Blizinski
maciej at opencsw.org
Fri Mar 12 11:09:50 CET 2010
On Fri, Mar 12, 2010 at 10:07 AM, Maciej (Matchek) Blizinski
<maciej at opencsw.org> wrote:
> $ ldd -r /opt/csw/bin/awesome | grep libX11
> libX11.so.6 => /opt/csw/X11/lib/libX11.so.6
> libX11.so.4 => /usr/lib/libX11.so.4
I've built awesome, and tried to run it, but it wouldn't draw anything
on the screen. Perhaps this was the cause?
Examining the binary...
blizinski at cabbage ~ $ /usr/ccs/bin/dump -Lv /opt/csw/bin/awesome | grep libX11
[2] NEEDED libX11.so.6
The binary itself only links against libX11.so.6. One of the
dependencies must be pulling libX11.so.4 in.
$ for l in $(ldd -r /opt/csw/bin/awesome | awk '{print $3}'); do if [
"$(ldd -r $l | grep libX11.so.4)" ]; then echo $l ; fi; done
/opt/csw/lib/libImlib2.so.1
/usr/lib/libXext.so.0
libImlib2.so.1 belongs to CSWimlib2. And libXext...
$ for l in $(ldd -r /opt/csw/bin/awesome | awk '{print $3}'); do if [
"$(ldd -r $l | grep libXext)" ]; then echo $l ; fi; done
/opt/csw/lib/libImlib2.so.1
/usr/lib/libX11.so.4
...is also needed by CSWimlib2.
It seems like liking CSWimlib2 against CSW X11 would remove the
linking against two versions of libX11.
Looking at the build description:
#EXTRA_INC = $(prefix)/X11/include
#EXTRA_LIB = $(prefix)/X11/lib
#EXTRA_PKG_CONFIG_DIRS = $(prefix)/X11/lib
BUILD64 = 1
CONFIGURE_ARGS = $(DIRPATHS)
#CONFIGURE_ARGS += --x-include=$(prefix)/X11/include
#CONFIGURE_ARGS += --x-libraries=$(abspath $(prefix)/X11/lib/$(MM_LIBDIR))
Dago, it seems like you've explored this before. Was there a problem
with linking imlib2 against CSW X11?
Maciej
More information about the maintainers
mailing list