go - initial-exec TLS resolves to dynamic definition in file.dll - Stack Overflow

admin2025-04-20  1

I am using golang:1.21-alpine3.20 to generate my DLL. using following command

go build -o project.dll -buildmode=c-shared ./cmd/main.go

Using Php code to trigger dll using FFI plugin please find Dockerimage details below

php:8.4-cli-alpine3.20

RUN apk add --no-cache \
    openssl \
    bash \
    curl \
    wget \
    icu-dev \
    libffi-dev \
    gcc \
    musl-dev \
    ca-certificates \
    supervisor \
    && docker-php-ext-install -j$(nproc) mysqli intl ffi \
    && rm -rf /var/cache/apk/*

# Install glibc compatibility layer
RUN wget -qO /etc/apk/keys/sgerrand.rsa.pub .rsa.pub && \
    wget .35-r1.apk && \
    apk add --allow-untrusted glibc-2.35-r1.apk

Error : "Failed loading '/htdocs/app/Libraries/../../project.dll' (Error relocating /htdocs/app/Libraries/../../project.dll: runtime.tlsg: initial-exec TLS resolves to dynamic definition in /htdocs/app/Libraries/../../project.dll)"

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745120910a286138.html

最新回复(0)