GithubHelp home page GithubHelp logo

glibc doesn't work about alpine-pkg-glibc HOT 9 CLOSED

sgerrand avatar sgerrand commented on June 12, 2024
glibc doesn't work

from alpine-pkg-glibc.

Comments (9)

frezbo avatar frezbo commented on June 12, 2024

@kawatoto Alpine still uses musl as the default, its installed in /usr, all the libraries are available at /usr/glibc-compat/lib

from alpine-pkg-glibc.

kawatoto avatar kawatoto commented on June 12, 2024

Hi,

I added the path in ld_library_path
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/glibc-compat/lib

and now I'm getting the below error.

fatal error: stdlib.h: No such file or directory

Am I missing something?

from alpine-pkg-glibc.

frezbo avatar frezbo commented on June 12, 2024

I think its most probably missing gcc or gcc++

from alpine-pkg-glibc.

kawatoto avatar kawatoto commented on June 12, 2024

GCC is installed via:

apk add --no-cache gcc

from alpine-pkg-glibc.

frezbo avatar frezbo commented on June 12, 2024

this should help you: https://pkgs.alpinelinux.org/contents?file=stdlib.h&path=&name=&branch=edge&repo=main&arch=x86_64

Mostly a quick google with the header name and alpine works

from alpine-pkg-glibc.

kawatoto avatar kawatoto commented on June 12, 2024

Hi,
I tried but still getting the undefined reference errors:

undefined reference to 'getsockname@GLIBC_2.2.5'
undefined reference to 'getgrgid_r@GLIBC_2.2.5'
undefined reference to 'memcpy@GLIBC_2.2.5'
undefined reference to 'getenv@GLIBC_2.2.5'
undefined reference to 'pthread_setspecific@GLIBC_2.2.5'
undefined reference to 'closedir@GLIBC_2.2.5'
undefined reference to 'sem_timedwait@GLIBC_2.2.5'
undefined reference to 'mkdir@GLIBC_2.2.5'
undefined reference to 'pread@GLIBC_2.2.5'

and many other glibc references.

Any help will be appreciated.

from alpine-pkg-glibc.

sgerrand avatar sgerrand commented on June 12, 2024

@kawatoto: Would you please provide further details of how you are attempting to use this package. I can't help debug these issues that you are encountering without knowing more about it.

Details like the following would be very useful:

  • the Alpine Linux version you are using
  • the package you are trying to compile (I'm assuming that's what you're trying to do) - ideally with a link to the archive version you're using
  • any other salient details, e.g. your configure settings

from alpine-pkg-glibc.

kawatoto avatar kawatoto commented on June 12, 2024

Hi @sgerrand

I'm trying to build a custom activity for the below project http://www.flogo.io/ this uses alpine linux in the docker container, and the container uses alpine

uname -a

Linux 02b2ce9d5465 4.9.49-moby #1 SMP Wed Sep 27 23:17:17 UTC 2017 x86_64 Linux

more /etc/issue

Welcome to Alpine Linux 3.4
Kernel \r on an \m (\l)

I'm trying to invoke a C api and you can find the libraries in the below project https://github.com/kawatoto/FTLogo

Any help you provide will be appreciated.

Thanks,
Antonio

from alpine-pkg-glibc.

sgerrand avatar sgerrand commented on June 12, 2024

Given that you're trying to use commercial software (TIBCO's FTL messaging product), I suggest using a glibc based Docker image instead of Alpine Linux. Try using the images provided by https://github.com/mikeschippers/docker-tibco, as an example.

from alpine-pkg-glibc.

Related Issues (20)

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.