tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: math/R failing to install

> On Jun 25, 2016, at 12:45 PM, David Holland <> wrote:
> On Sat, Jun 25, 2016 at 10:26:43AM -0600, Brook Milligan wrote:
>> /usr/pkg/lib/
>> 	-lxcb.2 => /usr/X11R7/lib/
>> 	-lXau.7 => /usr/X11R7/lib/
>> 	-lgcc_s.1 => /usr/lib/
>> 	-lc.12 => /usr/lib/
>> 	-lXdmcp.7 => /usr/X11R7/lib/

There is a more general pattern behind the problem I am having.  Every library I have installed in /usr/pkg that references libcairo also references the pkgsrc libxcb-shm and the native libxcb.  Here is one example (in part):
        -lcairo.2 => /usr/pkg/lib/
        -lxcb-shm.0 => /usr/pkg/lib/
        -lxcb.2 => /usr/X11R7/lib/

/usr/pkg/lib/ references four undefined symbols:
                 U xcb_get_reply_fds           # defined in /usr/X11R7/lib/
                 U xcb_send_request            # defined in /usr/X11R7/lib/ and 2.0
                 U xcb_send_request_with_fds   # not defined in any /usr/X11R7/lib/*.so
                 U xcb_wait_for_reply          # defined in /usr/X11R7/lib/ and 2.0
Note that all four of these symbols are defined in /usr/pkg/lib/, which is built from the x11/libxcb package.  The latter is also the source of the libxcb-shm library, so the two should always match.

Presumably, as long as xcv_send_request_with_fds is not referenced, this works and all the libraries linked this way succeed.  However, for me the R configure script is somehow referencing that symbol and failing to link with this combination of libraries.  Clearly, it would link fine against the pkgsrc version of libxcb.

This strikes me as a very brittle situation in general, i.e., beyond my immediate problem with R, as it suggests the potential for library inconsistencies to arise, something that could affect anything linking against cairo at least.  

Pure speculation (but perhaps helpful to point someone with more clue in a potentially useful direction):  I am guessing that this is somehow related to the handling of for libxcb.  Even though the package provides both libxcb and libxcb-shm (at least), only the builtin for libxcb is applied so that the pkgsrc version of libxcb-shm is used instead of the native one.  Alternatively, could it have to do with the fact that the pkgsrc libxcb is v1.1.0 while the native one is v2.0 (even though the pkgsrc one has more symbols and might be newer)?

Please advise on the solution to this inconsistency.

Thanks a lot.


Home | Main Index | Thread Index | Old Index