GithubHelp home page GithubHelp logo

Comments (6)

vsubram95 avatar vsubram95 commented on September 4, 2024 1

Hey @cwaldren-ld, Thanks for your response. What i means is if we try creating the docker image with launchdarkly baked into it, we would need a DockerFile like the below

FROM openresty/openresty:1.19.9.1-10-focal as ld_builder
RUN apt-get update && apt-get install -y \
    luajit libluajit-5.1-dev lua-ldoc zip \
    ca-certificates curl libpcre3 libcurl4-openssl-dev \
    cmake libhiredis-dev git build-essential libpcre3-dev
COPY ld/install-sdk.sh .

and install-sdk.sh is,

#!/usr/bin/env bash
set -ev                                                                                                                                                                                                           
git clone https://github.com/launchdarkly/c-server-sdk.git
cd c-server-sdk
mkdir build && cd build
cmake -D BUILD_TESTING=OFF -D BUILD_SHARED_LIBS=ON ..
cmake --build .

In the above configuration, I am getting the error i mentioned above.

from c-server-sdk.

cwaldren-ld avatar cwaldren-ld commented on September 4, 2024 1

@vsubram95

You are using openresty/openresty:1.19.9.1-10-focal, which contains GCC v9.4.0.

I tried using older openresty/openresty:1.17.8.2-5-focal, where GCC version is v9.3.0. There is no error in this version.

I will release an SDK update this week to fix it.

If you cannot wait for new release, you could try:

  • Use older version of openresty
  • Patch the source code on line 74 of c-server-sdk/src/integrations/file_data.c; change char c; to int c;

from c-server-sdk.

cwaldren-ld avatar cwaldren-ld commented on September 4, 2024 1

Hi @vsubram95 , this has been fixed in 2.8.1.

from c-server-sdk.

vsubram95 avatar vsubram95 commented on September 4, 2024 1

Thanks @cwaldren-ld. I can confirm that that it works.

from c-server-sdk.

cwaldren-ld avatar cwaldren-ld commented on September 4, 2024

Hi @vsubram95 , I'm not sure what Dockerfile you are referring to - can you send a link, or copy it here?

Filed internally as 161801.

from c-server-sdk.

vsubram95 avatar vsubram95 commented on September 4, 2024

Thanks @cwaldren-ld. Really appreciate it.

from c-server-sdk.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.