• Linker error on Debian 13 (Trixie)

    From Colin Cogle@VERT to alt.bbs.synchronet on Wednesday, July 22, 2026 01:01:42
    From Newsgroup: alt.bbs.synchronet

    I'm using Debian 13 (Trixie) on an amd64 server, and trying to compile
    the latest version of Synchronet using the install-sbbs.mk script. It
    builds correctly but it fails while linking:

    ```
    make[2]: Leaving directory '/home/sbbs/sbbs/repo/src/uifc'
    Compiling fixsmb.c
    Linking gcc.linux.x64.exe.release/fixsmb
    Compiling chksmb.c
    Linking gcc.linux.x64.exe.release/chksmb
    Compiling smbutil.c
    Linking gcc.linux.x64.exe.release/smbutil
    Compiling baja.c
    Linking gcc.linux.x64.exe.release/baja
    Compiling node.c
    Linking gcc.linux.x64.exe.release/node
    Compiling sbbsecho.c
    Compiling date_str.c
    Compiling scfgsave.c
    Compiling dat_rec.c
    Compiling filedat.c
    Compiling userdat.c
    Compiling trash.c
    Compiling rechocfg.c
    Compiling msg_id.c
    Compiling msgdate.c
    Compiling getmail.c
    Compiling getstats.c
    Compiling sauce.c
    Linking gcc.linux.x64.exe.release/sbbsecho
    /usr/bin/ld: /home/sbbs/sbbs/repo/src/sbbs3/../xpdev/gcc.linux.x64.lib.release/libxpdev.a(link_list.o):
    in function `listSemTryWaitBlock':
    link_list.c:(.text+0x138): undefined reference to `sem_trywait_block' /usr/bin/ld: /home/sbbs/sbbs/repo/src/sbbs3/../xpdev/gcc.linux.x64.lib.release/libxpdev.a(link_list.o):
    in function `listInit':
    link_list.c:(.text+0x2e0): undefined reference to `pthread_mutex_initializer_np'
    collect2: error: ld returned 1 exit status
    make[1]: *** [GNUmakefile:237: gcc.linux.x64.exe.release/sbbsecho] Error 1 make[1]: Leaving directory '/home/sbbs/sbbs/repo/src/sbbs3'
    make: *** [install-sbbs.mk:160: sbbs3] Error 2
    ```

    I saw the reference to pthreads but libpthread-stubs0-dev is already installed. I installed all the dependencies, but it seems like I might
    be missing something. Has anyone seen this error on Trixie before?
    --
    Thanks in advance,
    Colin

    () ascii ribbon campaign - against html e-mail
    /\ www.asciiribbon.org - against proprietary attachments

    --- Synchronet 3.22a-Linux NewsLink 1.2
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Bimms@VERT/DDBBS to Colin Cogle on Wednesday, July 22, 2026 10:06:50
    Re: Linker error on Debian 13
    By: Colin Cogle to alt.bbs.synchronet on Wed Jul 22 2026 01:01 am

    I'm using Debian 13 (Trixie) on an amd64 server, and trying to compile the latest version of Synchronet using the
    install-sbbs.mk script. It builds correctly but it fails while linking:

    Not sure if this will help but I have had no issue compiling with trixie. Snippet of my dockerfile

    FROM debian:trixie

    RUN apt-get update && apt-get install -y \
    build-essential \
    git \
    wget \
    curl \
    libssl-dev \
    libncurses-dev \
    libncurses5-dev \
    zlib1g-dev \
    libaio-dev \
    libarchive-dev \
    zip \
    unzip \
    netcat-openbsd \
    telnet \
    syslog-ng \
    sudo \
    make \
    pkg-config \
    libnspr4-dev \
    && rm -rf /var/lib/apt/lists/*

    RUN useradd -m -s /bin/bash sbbs

    WORKDIR /sbbs

    RUN wget -q https://gitlab.synchro.net/main/sbbs/-/raw/master/install/install-sbbs.mk && \
    make -f install-sbbs.mk SYMLINK=1 NOCAP=1

    ---
    þ Synchronet þ Deceitful Dreams, New Zealand