[Xcb] [Bug 48486] New: libxcb 1.8 doesn't build/install on Solaris 10 and 11. xcb_str_sizeof undefined

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Apr 9 10:43:46 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=48486

             Bug #: 48486
           Summary: libxcb 1.8 doesn't build/install on Solaris 10 and 11.
                    xcb_str_sizeof undefined
    Classification: Unclassified
           Product: XCB
           Version: unspecified
          Platform: x86-64 (AMD64)
        OS/Version: Solaris
            Status: NEW
          Severity: major
          Priority: medium
         Component: Library
        AssignedTo: xcb at lists.freedesktop.org
        ReportedBy: mark at ibiblio.org
         QAContact: xcb at lists.freedesktop.org


Recipe:
    Compile python 2.7
    Compile xcb-proto 1.8
    Compile libpthread-stubs 0.3
    Compile libXau 1.0.6
    Compile libXdmcp 1.0.3
    Compile xcmiscproto 1.2.0
    Compile bigreqsproto 1.1.0
    Compile libxml2 2.7.7
    Compile libxslt 1.1.26
    Compile libgpg-error 1.9
    Compile libgcrypt1.4.6
    Compile libcheck 0.9.8
    Compile flex.2.5.35
    Compile doxygen 1.7.1

    setenv LDFLAGS -L/usr/local/lib
    cd /var/tmp
    rm -rf /xcb libxcb-1.8
    untgz /usr/local/src/x11/libxcb-1.8.tar.gz
    cd libxcb-1.8
    mkdir /xcb
    /bin/perl -pe "s%^LIBTOOL=.*%LIBTOOL='/usr/local/bin/libtool'%" -i
configure
    ./configure --prefix=/xcb \
        --disable-silent-rules
    gmake
    gmake install

All versions of Solaris 10/11 SPARC/x86 pass a 'gmake' but fail on the 'gmake
install'

SunOS box1 5.10 Generic_142901-13 i86pc i386 i86pc
SunOS box2 5.11 snv_134 i86pc i386 i86pc
SunOS box3 5.10 Generic_142909-17 sun4v sparc SUNW,T5240

libtool: install: warning: relinking `libxcb-render.la'
libtool: install: (cd /var/tmp/libxcb-1.8/src; /bin/bash /usr/local/bin/libtool
 --tag CC --mode=relink cc -v -I/usr/local/include -I/usr/local/include
-L/usr/local/lib -I/usr/local/include -version-info 0:0:0 -no-undefined
-L/usr/local/lib -o libxcb-render.la -rpath /xcb/lib render.lo libxcb.la
-lsocket )
libtool: relink: cc -G -z defs -h libxcb-render.so.0 -o
.libs/libxcb-render.so.0.0.0  .libs/render.o   -R/xcb/lib -R/usr/local/lib
-L/usr/local/lib -L/xcb/lib -lxcb -lXau -lXdmcp -lsocket -lc   
Undefined                       first referenced
 symbol                             in file
xcb_str_sizeof                      .libs/render.o
ld: fatal: Symbol referencing errors. No output written to
.libs/libxcb-render.so.0.0.0
libtool: install: error: relink `libxcb-render.la' with the above command
before installing it
gmake[3]: *** [install-libLTLIBRARIES] Error 1
gmake[3]: Leaving directory `/var/tmp/libxcb-1.8/src'

This is what it does:
box1:/var/tmp/libxcb-1.8 root# cd src
box1:/var/tmp/libxcb-1.8/src root# cc -G -z defs -h libxcb-render.so.0 -o
.libs/libxcb-render.so.0.0.0  .libs/render.o   -R/xcb/lib -R/usr/local/lib
-L/usr/local/lib -L/xcb/lib -lxcb -lXau -lXdmcp -lsocket -lc
Undefined                       first referenced
 symbol                             in file
xcb_str_sizeof                      .libs/render.o
ld: fatal: Symbol referencing errors. No output written to
.libs/libxcb-render.so.0.0.0

This is what it should do: (add .libs/xproto.o)
box1:/var/tmp/libxcb-1.8/src root# cc -G -z defs -h libxcb-render.so.0 -o
.libs/libxcb-render.so.0.0.0 .libs/render.o .libs/xproto.o -R/xcb/lib
-R/usr/local/lib -L/usr/local/lib -L/xcb/lib -lxcb -lXau -lXdmcp -lsocket -lc
box1:/var/tmp/libxcb-1.8/src root#

Doing the recipe with this step after the gmake patches the problem:
    gmake
    /bin/perl -pe "s%render.lo %render.lo xproto.lo %" -i src/libxcb-render.la
    gmake install

The build now completes.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the Xcb mailing list