[csw-maintainers] CSWimlib2 vs libX11

Dagobert Michelsen dam at opencsw.org
Mon Mar 15 15:42:59 CET 2010


Hi Maciej,

Am 12.03.2010 um 11:09 schrieb Maciej (Matchek) Blizinski:

> 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?

I am now redoing giflib and imlib2 with csw x11, which will solve
your problem after they have been released. Please stand by.


Best regards

  -- Dago



More information about the maintainers mailing list