OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_1-460-g10e2159

Gerrit Code Review gerrit@openafs.org
Wed, 7 Aug 2024 09:54:04 -0400


The following commit has been merged in the master branch:
commit 10e21591caae03040fe703ae646eefb604ee848e
Author: Mark Vitale <mvitale@sinenomine.net>
Date:   Fri Jul 26 18:37:40 2024 -0400

    rx: Link simple.example targets with XLIBS
    
    Commit 3961e416f62a 'rx: Cleanup and build simple.example' fails to
    build on Solaris 11.3 or older due to undefined socket and resolver API
    symbols, including bind, getsockname, connect, recvfrom, etc:
    
          LD  /.../src/rx/simple.example/sample_client
        Undefined                       first referenced
         symbol                             in file
        bind                                /.../lib/libafsrpc.a(rx_user.o)
        getsockname                         /.../lib/libafsrpc.a(rx.o)
        gethostbyname                       sample_client.o
        [...]
        ld: fatal: symbol referencing errors. No output written to sample_client
    
    This is because on Solaris, these have historically been supplied via
    -lsocket, -lresolv, and other libraries as defined in the OpenAFS
    variable XLIBS.
    
    Add XLIBS to our link rules in the simple.example Makefile to avoid
    these errors.
    
    On Solaris 11.4, XLIBS is not required to build because the APIs
    formerly found via XLIBS are now largely provided in libc.so instead,
    with libsocket.so and libresolv.so maintained for compatibility as
    filters on libc.so.
    
    Change-Id: Id3b5d1903aa41807cca7a97d48dac9ff272101b1
    Reviewed-on: https://gerrit.openafs.org/15789
    Tested-by: Andrew Deason <adeason@sinenomine.net>
    Tested-by: BuildBot <buildbot@rampaginggeek.com>
    Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>

 src/rx/simple.example/Makefile.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
OpenAFS Master Repository