[GH-ISSUE #13] Issue with libc6 and the 1.4 version #15

Closed
opened 2026-03-02 04:08:44 +03:00 by kerem · 19 comments
Owner

Originally created by @fallais on GitHub (Oct 17, 2018).
Original GitHub issue: https://github.com/gen2brain/cam2ip/issues/13

Hello,

I am facing this issue with last version : /lib/arm-linux-gnueabihf/libc.so.6: version 'GLIBC_2.27' not found
Do you know where it could come from please ?

Thanks

Originally created by @fallais on GitHub (Oct 17, 2018). Original GitHub issue: https://github.com/gen2brain/cam2ip/issues/13 Hello, I am facing this issue with last version : `/lib/arm-linux-gnueabihf/libc.so.6: version 'GLIBC_2.27' not found` Do you know where it could come from please ? Thanks
kerem closed this issue 2026-03-02 04:08:45 +03:00
Author
Owner

@gen2brain commented on GitHub (Oct 17, 2018):

Hello,

All binaries are cross compiled, that is probably because I use newer toolchain (glibc version is 2.27) then what is available in raspbian. I will probably have to rebuild whole toolchain for arm6 (RPi 1 and 2) with lower versions. Similar issue was this one https://github.com/gen2brain/cam2ip/issues/6 .

<!-- gh-comment-id:430740925 --> @gen2brain commented on GitHub (Oct 17, 2018): Hello, All binaries are cross compiled, that is probably because I use newer toolchain (glibc version is 2.27) then what is available in raspbian. I will probably have to rebuild whole toolchain for arm6 (RPi 1 and 2) with lower versions. Similar issue was this one https://github.com/gen2brain/cam2ip/issues/6 .
Author
Owner

@gen2brain commented on GitHub (Oct 19, 2018):

Ok, I uploaded a new binary compiled with toolchain with glibc-2.24, that should work. Can you try now?

<!-- gh-comment-id:431497521 --> @gen2brain commented on GitHub (Oct 19, 2018): Ok, I uploaded a new binary compiled with toolchain with glibc-2.24, that should work. Can you try now?
Author
Owner

@fallais commented on GitHub (Oct 21, 2018):

Hello,

Still the same..

root@raspberrypi:/app/docker# docker logs docker_cam2ip_1
/app/cam2ip: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.27' not found (required by /app/cam2ip)
/app/cam2ip: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.27' not found (required by /app/cam2ip)
/app/cam2ip: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.27' not found (required by /app/cam2ip)
/app/cam2ip: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.27' not found (required by /app/cam2ip)
/app/cam2ip: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.27' not found (required by /app/cam2ip)
/app/cam2ip: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.27' not found (required by /app/cam2ip)
/app/cam2ip: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.27' not found (required by /app/cam2ip)
/app/cam2ip: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.27' not found (required by /app/cam2ip)
/app/cam2ip: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.27' not found (required by /app/cam2ip)
<!-- gh-comment-id:431673790 --> @fallais commented on GitHub (Oct 21, 2018): Hello, Still the same.. ``` root@raspberrypi:/app/docker# docker logs docker_cam2ip_1 /app/cam2ip: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.27' not found (required by /app/cam2ip) /app/cam2ip: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.27' not found (required by /app/cam2ip) /app/cam2ip: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.27' not found (required by /app/cam2ip) /app/cam2ip: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.27' not found (required by /app/cam2ip) /app/cam2ip: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.27' not found (required by /app/cam2ip) /app/cam2ip: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.27' not found (required by /app/cam2ip) /app/cam2ip: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.27' not found (required by /app/cam2ip) /app/cam2ip: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.27' not found (required by /app/cam2ip) /app/cam2ip: /lib/arm-linux-gnueabihf/libc.so.6: version `GLIBC_2.27' not found (required by /app/cam2ip) ```
Author
Owner

@gen2brain commented on GitHub (Oct 23, 2018):

Hmm, cam2ip-1.4-RPi.tar.gz binary should not have such symbols anymore. I can try to build everything once more, if you are willing to test it.

<!-- gh-comment-id:432306710 --> @gen2brain commented on GitHub (Oct 23, 2018): Hmm, cam2ip-1.4-RPi.tar.gz binary should not have such symbols anymore. I can try to build everything once more, if you are willing to test it.
Author
Owner

@fallais commented on GitHub (Oct 23, 2018):

Yes I can test

<!-- gh-comment-id:432313764 --> @fallais commented on GitHub (Oct 23, 2018): Yes I can test
Author
Owner

@gen2brain commented on GitHub (Oct 28, 2018):

Can you try again with https://github.com/gen2brain/cam2ip/releases/download/1.5/cam2ip-1.5-RPi-native.tar.gz , I added suport for V4L native implementation on Linux/RPi. On desktop it works with lower CPU usage compared to version with OpenCV.

<!-- gh-comment-id:433706779 --> @gen2brain commented on GitHub (Oct 28, 2018): Can you try again with https://github.com/gen2brain/cam2ip/releases/download/1.5/cam2ip-1.5-RPi-native.tar.gz , I added suport for V4L native implementation on Linux/RPi. On desktop it works with lower CPU usage compared to version with OpenCV.
Author
Owner

@fallais commented on GitHub (Oct 28, 2018):

Hello,

I have this issue now :

root@raspberrypi:/app/docker# docker logs docker_cam2ip_1
/app/cam2ip: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
/app/cam2ip: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
/app/cam2ip: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
/app/cam2ip: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
/app/cam2ip: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
/app/cam2ip: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
/app/cam2ip: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory
<!-- gh-comment-id:433707376 --> @fallais commented on GitHub (Oct 28, 2018): Hello, I have this issue now : ``` root@raspberrypi:/app/docker# docker logs docker_cam2ip_1 /app/cam2ip: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory /app/cam2ip: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory /app/cam2ip: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory /app/cam2ip: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory /app/cam2ip: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory /app/cam2ip: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory /app/cam2ip: error while loading shared libraries: libjpeg.so.62: cannot open shared object file: No such file or directory ```
Author
Owner

@gen2brain commented on GitHub (Oct 28, 2018):

Ok, new build is uploaded, just download again, it should be ok now.

<!-- gh-comment-id:433708037 --> @gen2brain commented on GitHub (Oct 28, 2018): Ok, new build is uploaded, just download again, it should be ok now.
Author
Owner

@fallais commented on GitHub (Oct 28, 2018):

I tried again, I face the same issue

<!-- gh-comment-id:433708600 --> @fallais commented on GitHub (Oct 28, 2018): I tried again, I face the same issue
Author
Owner

@gen2brain commented on GitHub (Oct 28, 2018):

Are you sure that is not related to some cache? The last binary I uploaded is compiled with static libjpeg.a, and symbols are in binary:

cam2ip-1.5-RPi-native # armv6j-hardfloat-linux-gnueabi-nm -D cam2ip | grep " jpeg"
         U jpeg_CreateCompress
         U jpeg_CreateDecompress
         U jpeg_destroy_compress
         U jpeg_destroy_decompress
         U jpeg_finish_compress
         U jpeg_finish_decompress
         U jpeg_mem_dest
         U jpeg_mem_src
         U jpeg_read_header
         U jpeg_read_scanlines
         U jpeg_set_defaults
         U jpeg_set_quality
         U jpeg_start_compress
         U jpeg_start_decompress
         U jpeg_std_error
         U jpeg_write_scanlines

Anyway, you can try also with https://github.com/gen2brain/cam2ip/releases/download/1.5/cam2ip-1.5-RPi-native-jpeg.tar.gz I just added, it is a completely static binary compiled without CGo support.

<!-- gh-comment-id:433709485 --> @gen2brain commented on GitHub (Oct 28, 2018): Are you sure that is not related to some cache? The last binary I uploaded is compiled with static libjpeg.a, and symbols are in binary: ``` cam2ip-1.5-RPi-native # armv6j-hardfloat-linux-gnueabi-nm -D cam2ip | grep " jpeg" U jpeg_CreateCompress U jpeg_CreateDecompress U jpeg_destroy_compress U jpeg_destroy_decompress U jpeg_finish_compress U jpeg_finish_decompress U jpeg_mem_dest U jpeg_mem_src U jpeg_read_header U jpeg_read_scanlines U jpeg_set_defaults U jpeg_set_quality U jpeg_start_compress U jpeg_start_decompress U jpeg_std_error U jpeg_write_scanlines ``` Anyway, you can try also with https://github.com/gen2brain/cam2ip/releases/download/1.5/cam2ip-1.5-RPi-native-jpeg.tar.gz I just added, it is a completely static binary compiled without CGo support.
Author
Owner

@fallais commented on GitHub (Oct 28, 2018):

I tried again, still the same. I tried the other one and it is working, but the default quality of the image is very poor.

Note : the rotate works :-)

<!-- gh-comment-id:433710849 --> @fallais commented on GitHub (Oct 28, 2018): I tried again, still the same. I tried the other one and it is working, but the default quality of the image is very poor. Note : the rotate works :-)
Author
Owner

@fallais commented on GitHub (Oct 29, 2018):

Is it normal that the more I increase the width and height, the more it is zoomed ? It did not work like this before, it was just increasing the quality, which is what I want

<!-- gh-comment-id:434070460 --> @fallais commented on GitHub (Oct 29, 2018): Is it normal that the more I increase the width and height, the more it is zoomed ? It did not work like this before, it was just increasing the quality, which is what I want
Author
Owner

@fallais commented on GitHub (Nov 16, 2018):

Up :-)

<!-- gh-comment-id:439376897 --> @fallais commented on GitHub (Nov 16, 2018): Up :-)
Author
Owner

@gen2brain commented on GitHub (Nov 17, 2018):

Can you grab a screenshot? I just tried in Linux OpenCV build and native build, both with 1024x768 and I don't see a difference.

<!-- gh-comment-id:439610636 --> @gen2brain commented on GitHub (Nov 17, 2018): Can you grab a screenshot? I just tried in Linux OpenCV build and native build, both with 1024x768 and I don't see a difference.
Author
Owner

@fallais commented on GitHub (Nov 17, 2018):

I tried but when trying to rebuild the Dockerfile, here is my issue :

--2018-11-17 11:55:38--  https://github.com/gen2brain/cam2ip/releases/download/1.5/cam2ip-1.5-RPi-native-jpeg.tar.gz
Resolving github.com (github.com)... 140.82.118.4, 140.82.118.3
Connecting to github.com (github.com)|140.82.118.4|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-11-17 11:55:43 ERROR 404: Not Found.

Did you remove the binary ?

<!-- gh-comment-id:439611318 --> @fallais commented on GitHub (Nov 17, 2018): I tried but when trying to rebuild the Dockerfile, here is my issue : ``` --2018-11-17 11:55:38-- https://github.com/gen2brain/cam2ip/releases/download/1.5/cam2ip-1.5-RPi-native-jpeg.tar.gz Resolving github.com (github.com)... 140.82.118.4, 140.82.118.3 Connecting to github.com (github.com)|140.82.118.4|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2018-11-17 11:55:43 ERROR 404: Not Found. ``` Did you remove the binary ?
Author
Owner

@gen2brain commented on GitHub (Nov 17, 2018):

That is a https://github.com/gen2brain/cam2ip/releases/download/1.5/cam2ip-1.5-RPi-nocgo.tar.gz now.

<!-- gh-comment-id:439611373 --> @gen2brain commented on GitHub (Nov 17, 2018): That is a https://github.com/gen2brain/cam2ip/releases/download/1.5/cam2ip-1.5-RPi-nocgo.tar.gz now.
Author
Owner

@fallais commented on GitHub (Nov 17, 2018):

With this Dockerfile.

FROM armhf/ubuntu
LABEL maintainer="xxxx"

RUN apt-get update && \
    apt-get install -y wget && \
    rm -rf /var/lib/apt/lists/* && \
    mkdir -p /app && \
    cd /app && \
    wget https://github.com/gen2brain/cam2ip/releases/download/1.5/cam2ip-1.5-RPi-native-jpeg.tar.gz && \
    tar zxvpf cam2ip-1.5-RPi-native-jpeg.tar.gz && \
    cp cam2ip-1.5-RPi-native-jpeg/cam2ip ./ && \
    chown nobody:nogroup cam2ip && \
    chmod +x cam2ip && \
    rm cam2ip-1.5-RPi-native-jpeg.tar.gz

WORKDIR /app

EXPOSE     80
CMD        [ "/app/cam2ip", "--bind-addr", ":80", "--width", "1280", "--height", "720", "--delay", "2000", "--rotate", "180" ]

image

With this Dockerfile :

FROM armhf/ubuntu
LABEL maintainer="xxxx"

RUN apt-get update && \
    apt-get install -y wget && \
    rm -rf /var/lib/apt/lists/* && \
    mkdir -p /app && \
    cd /app && \
    wget https://github.com/gen2brain/cam2ip/releases/download/1.5/cam2ip-1.5-RPi-nocgo.tar.gz && \
    tar zxvpf cam2ip-1.5-RPi-nocgo.tar.gz && \
    cp cam2ip-1.5-RPi-nocgo/cam2ip ./ && \
    chown nobody:nogroup cam2ip && \
    chmod +x cam2ip && \
    rm cam2ip-1.5-RPi-nocgo.tar.gz

WORKDIR /app

EXPOSE     80
CMD        [ "/app/cam2ip", "--bind-addr", ":80", "--width", "720", "--height", "480", "--delay", "2000", "--rotate", "180" ]

image

PS : It is a chicken coop ^^

<!-- gh-comment-id:439612432 --> @fallais commented on GitHub (Nov 17, 2018): With this Dockerfile. ``` FROM armhf/ubuntu LABEL maintainer="xxxx" RUN apt-get update && \ apt-get install -y wget && \ rm -rf /var/lib/apt/lists/* && \ mkdir -p /app && \ cd /app && \ wget https://github.com/gen2brain/cam2ip/releases/download/1.5/cam2ip-1.5-RPi-native-jpeg.tar.gz && \ tar zxvpf cam2ip-1.5-RPi-native-jpeg.tar.gz && \ cp cam2ip-1.5-RPi-native-jpeg/cam2ip ./ && \ chown nobody:nogroup cam2ip && \ chmod +x cam2ip && \ rm cam2ip-1.5-RPi-native-jpeg.tar.gz WORKDIR /app EXPOSE 80 CMD [ "/app/cam2ip", "--bind-addr", ":80", "--width", "1280", "--height", "720", "--delay", "2000", "--rotate", "180" ] ``` ![image](https://user-images.githubusercontent.com/4034856/48660722-ed15e900-ea66-11e8-98df-794363bd7604.png) With this Dockerfile : ``` FROM armhf/ubuntu LABEL maintainer="xxxx" RUN apt-get update && \ apt-get install -y wget && \ rm -rf /var/lib/apt/lists/* && \ mkdir -p /app && \ cd /app && \ wget https://github.com/gen2brain/cam2ip/releases/download/1.5/cam2ip-1.5-RPi-nocgo.tar.gz && \ tar zxvpf cam2ip-1.5-RPi-nocgo.tar.gz && \ cp cam2ip-1.5-RPi-nocgo/cam2ip ./ && \ chown nobody:nogroup cam2ip && \ chmod +x cam2ip && \ rm cam2ip-1.5-RPi-nocgo.tar.gz WORKDIR /app EXPOSE 80 CMD [ "/app/cam2ip", "--bind-addr", ":80", "--width", "720", "--height", "480", "--delay", "2000", "--rotate", "180" ] ``` ![image](https://user-images.githubusercontent.com/4034856/48660968-e1c4bc80-ea6a-11e8-98f1-e7bee7bc3c94.png) PS : It is a chicken coop ^^
Author
Owner

@gen2brain commented on GitHub (Nov 17, 2018):

You are using different aspect ratio, for 720x480 that is 4/3 , and in other case is 16/9 , try with same aspect ratio.

<!-- gh-comment-id:439612681 --> @gen2brain commented on GitHub (Nov 17, 2018): You are using different aspect ratio, for 720x480 that is 4/3 , and in other case is 16/9 , try with same aspect ratio.
Author
Owner

@fallais commented on GitHub (Nov 17, 2018):

Ok my bad, you are right...
I tried with 1280x960

image

The chicken seems to approve.
Thanks !

<!-- gh-comment-id:439612948 --> @fallais commented on GitHub (Nov 17, 2018): Ok my bad, you are right... I tried with `1280x960` ![image](https://user-images.githubusercontent.com/4034856/48661050-6b28be80-ea6c-11e8-9be6-774eef0dd51d.png) The chicken seems to approve. Thanks !
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cam2ip#15
No description provided.