Thinstation / thinstation

A framework for making thin and light Linux based images for x86 based machines and thinclients.
https://www.thinstation.net/
778 stars 188 forks source link

View Horizon Client 2303 - libstdc #770

Closed rohrbachger closed 9 months ago

rohrbachger commented 1 year ago

I tried the actual view horizon client. It installs, but when I call I`m getting some error messages. libstdc++.so.6 version GLIBCXX_3.4.29 not found libstdc++.so.6 version GLIBCXX_3.4.30 not found libstdc++.so.6 version CXXABI_1.3.13 not found

Vmware did a lo of updates, the support for Ubuntu 18 ended.

How I can update this library?

Thinstation commented 1 year ago

Update glibc

On Mon, Apr 3, 2023 at 11:43 AM rohrbachger @.***> wrote:

I tried the actual view horizon client. It installs, but when I call I`m getting some error messages. libstdc++.so.6 version GLIBCXX_3.4.29 not found libstdc++.so.6 version GLIBCXX_3.4.30 not found libstdc++.so.6 version CXXABI_1.3.13 not found

Vmware did a lo of updates, the support for Ubuntu 18 ended.

How I can update this library?

— Reply to this email directly, view it on GitHub https://github.com/Thinstation/thinstation/issues/770, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVW47VRQ4S7MVL64I7A4JTW7MD2RANCNFSM6AAAAAAWRUJVOQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

rohrbachger commented 1 year ago

with my limited knowledge I changed under /ts/ports/core/glibc the version to 2.36 pkgmk -um fixed the md5 sum error pkgmk -i -d downloaded the file and started doing a lot

but =======> ERROR: Footprint mismatch found: some lines later =======> ERROR: Building '/ts/ports/core/glibc/glibc#2.36-1.pkg.tar.xz' failed Is that version maybe to new and has some other dependencies?

Where is the place to look what the error is?

Is that the right way I did?

Thinstation commented 1 year ago

Pkgmk -uf #update footprint, will need to clean_chroot afterwards.

On Tue, Apr 4, 2023 at 11:37 AM rohrbachger @.***> wrote:

with my limited knowledge I changed under /ts/ports/core/glibc the version to 2.36 pkgmk -um fixed the md5 sum error pkgmk -i -d downloaded the file and started doing a lot

but =======> ERROR: Footprint mismatch found: some lines later =======> ERROR: Building '/ts/ports/core/glibc/glibc#2.36-1.pkg.tar.xz' failed Is that version maybe to new and has some other dependencies?

Where is the place to look what the error is?

Is that the right way I did?

— Reply to this email directly, view it on GitHub https://github.com/Thinstation/thinstation/issues/770#issuecomment-1496352595, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVW47SPPC6ATB2OK3FLTDLW7RL4ZANCNFSM6AAAAAAWRUJVOQ . You are receiving this because you commented.Message ID: @.***>

rohrbachger commented 1 year ago

Yes those steps worked now I did a clean_chroot I exit the build env and started setup-chroot again. Maybe this was wrong! The new glibc under ports disappeared

It did the initial setup after this, this reset also my build.conf and all the rest. Also the port update I did.

After creating a new image I get still the libstdc error message when starting view client. But this is clear, I wiped my changes . The clean_chroot I probably need to do in a different way or additional step.

Doncuppjr commented 1 year ago

Hmmmm, the clean_chroot should have preserved the port update. Did you do a git checkout too?

Sent from Yahoo Mail for iPhone

On Wednesday, April 5, 2023, 11:56 AM, rohrbachger @.***> wrote:

Yes those steps worked now I did a clean_chroot I exit the build env and started setup-chroot again. Maybe this was wrong! The new glibc under ports disappeared

It did the initial setup after this, this reset also my build.conf and all the rest. Also the port update I did.

After creating a new image I get still the libstdc error message when starting view client. But this is clear, I wiped my changes . The clean_chroot I probably need to do in a different way or additional step.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

rohrbachger commented 1 year ago

I'm using ubuntu 22.04 on hardware and just git clone . No git checkout

Thinstation commented 1 year ago

I don’t know why the env would reset then. Are your changes present in the Pkgfile? Maybe you need to make sure the port gets installed after the compile before the clean.

On Wed, Apr 5, 2023 at 2:32 PM rohrbachger @.***> wrote:

I'm using ubuntu 22.04 on hardware and just git clone . No git checkout

— Reply to this email directly, view it on GitHub https://github.com/Thinstation/thinstation/issues/770#issuecomment-1498116622, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVW47XQ4FUTYZ52OMRIIYTW7XJG7ANCNFSM6AAAAAAWRUJVOQ . You are receiving this because you commented.Message ID: @.***>

rohrbachger commented 1 year ago

Another try, different way. git clone --depth 1 https://github.com/Thinstation/thinstation.git cd thinstation/ts/core/glibc change in the pkg file the version and copy the downloaded file in this folder, deleted the old one. version=2.36 start setup-chroot

strings /usr/lib/libstdc++.so.6 | grep GLIBC still not showing newer versions. ....... GLIBCXX_3.4.24 GLIBCXX_3.4.25 GLIBCXX_3.4.26 GLIBCXX_3.4.27 GLIBCXX_3.4.28 ...... Thats in /usr/lib, so old version still rwxr-xr-x 1 root root 39592 Sep 3 2019 libstartup-notification-1.so.0.0.0 -rw-r--r-- 1 root root 4921440 Jun 18 2021 libstd-4f09a0a416e0f37c.so -rw-r--r-- 1 root root 5744034 Jun 17 2021 libstdc++.a -rwxr-xr-x 1 root root 957 Jun 17 2021 libstdc++.la lrwxrwxrwx 1 root root 19 Jun 17 2021 libstdc++.so -> libstdc++.so.6.0.28 lrwxrwxrwx 1 root root 19 Jun 17 2021 libstdc++.so.6 -> libstdc++.so.6.0.28 -rwxr-xr-x 1 root root 1874536 Jun 17 2021 libstdc++.so.6.0.28

Doncuppjr commented 1 year ago

prt-get update -fr -im -if -is glibc

Sent from Yahoo Mail for iPhone

On Thursday, April 6, 2023, 11:29 AM, rohrbachger @.***> wrote:

Another try, different way. git clone --depth 1 https://github.com/Thinstation/thinstation.git cd thinstation/ts/core/glibc change in the pkg file the version and copy the downloaded file in this folder, deleted the old one. version=2.36 start setup-chroot

strings /usr/lib/libstdc++.so.6 | grep GLIBC still not showing newer versions. ....... GLIBCXX_3.4.24 GLIBCXX_3.4.25 GLIBCXX_3.4.26 GLIBCXX_3.4.27 GLIBCXX_3.4.28 ...... Thats in /usr/lib, so old version still rwxr-xr-x 1 root root 39592 Sep 3 2019 libstartup-notification-1.so.0.0.0 -rw-r--r-- 1 root root 4921440 Jun 18 2021 libstd-4f09a0a416e0f37c.so -rw-r--r-- 1 root root 5744034 Jun 17 2021 libstdc++.a -rwxr-xr-x 1 root root 957 Jun 17 2021 libstdc++.la lrwxrwxrwx 1 root root 19 Jun 17 2021 libstdc++.so -> libstdc++.so.6.0.28 lrwxrwxrwx 1 root root 19 Jun 17 2021 libstdc++.so.6 -> libstdc++.so.6.0.28 -rwxr-xr-x 1 root root 1874536 Jun 17 2021 libstdc++.so.6.0.28

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

rohrbachger commented 1 year ago

Still no success

strings /usr/lib/libstdc++.so.6 | grep GLIBC still not showing newer versions.

Is libstdc++ updated with glibc? Maybe this is the wrong package?

Doncuppjr commented 1 year ago

Yeah, might be part of Gcc. Prt-get fsearch libstdc*

Sent from Yahoo Mail for iPhone

On Friday, April 7, 2023, 11:43 AM, rohrbachger @.***> wrote:

Still no success

strings /usr/lib/libstdc++.so.6 | grep GLIBC still not showing newer versions.

Is libstdc++ updated with glibc? Maybe this is the wrong package?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

rohrbachger commented 1 year ago

Is TS is based on CRUX3.6 somehow? CRUX 3.7 comes with a multilib toolchain which includes glibc 2.36, gcc 12.2.0 and binutils 2.39 This sounds like some work... I would like to learn and spend some time with this. Did you planned any update in this direction?

I tried , and found that there is an issue with pkgmk From Crux.... pkgmk now defines LC_ALL=C.UTF-8 instead of LC_ALL=POSIX. This should avoid errors like: bsdtar: Pathname can’t be converted from UTF-8 to current locale

That`s the message coming when I try to pkgmk -i -d =======> Building '/ts/ports/core/gcc/gcc#12.2.0-1.pkg.tar.xz'. bsdtar -p -o -C /ts/ports/core/gcc/work/src -xf /ts/ports/core/gcc/isl-0.26.tar.bz2 bsdtar -p -o -C /ts/ports/core/gcc/work/src -xf /ts/ports/core/gcc/gcc-12.2.0.tar.xz bsdtar: Pathname can't be converted from UTF-8 to current locale. bsdtar: Pathname can't be converted from UTF-8 to current locale. bsdtar: Error exit delayed from previous errors. =======> ERROR: Building '/ts/ports/core/gcc/gcc#12.2.0-1.pkg.tar.xz' failed.

Doncuppjr commented 1 year ago

TS forked from CRUX back at 3.0. Since then it’s just been a reference. You can set the locale to whatever you want, but a UTF8 one makes sense.

Sent from Yahoo Mail for iPhone

On Saturday, April 8, 2023, 11:47 AM, rohrbachger @.***> wrote:

Is TS is based on CRUX3.6 somehow? CRUX 3.7 comes with a multilib toolchain which includes glibc 2.36, gcc 12.2.0 and binutils 2.39 This sounds like some work... I would like to learn and spend some time with this. Did you planned any update in this direction?

I tried , and found that there is an issue with pkgmk From Crux.... pkgmk now defines LC_ALL=C.UTF-8 instead of LC_ALL=POSIX. This should avoid errors like: bsdtar: Pathname can’t be converted from UTF-8 to current locale

That`s the message coming when I try to pkgmk -i -d =======> Building '/ts/ports/core/gcc/gcc#12.2.0-1.pkg.tar.xz'. bsdtar -p -o -C /ts/ports/core/gcc/work/src -xf /ts/ports/core/gcc/isl-0.26.tar.bz2 bsdtar -p -o -C /ts/ports/core/gcc/work/src -xf /ts/ports/core/gcc/gcc-12.2.0.tar.xz bsdtar: Pathname can't be converted from UTF-8 to current locale. bsdtar: Pathname can't be converted from UTF-8 to current locale. bsdtar: Error exit delayed from previous errors. =======> ERROR: Building '/ts/ports/core/gcc/gcc#12.2.0-1.pkg.tar.xz' failed.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

rohrbachger commented 1 year ago

Tried that, but no success (yet) Changed TS_ENV export TSVER=6.2 export TSWRKNG=/ts/build export TSPKGROOT=ts/build/packages export TSCOMPROOT=ts/components

export LANG=C.UTF-8 export LANGUAGE=C.UTF-8 export LC_ALL=C.UTF-8

I did not figured out yet, my understanding is I have to generate C.UTF-8

[root@TS_chroot]/# locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=C.UTF-8 LC_CTYPE="C.UTF-8" LC_NUMERIC="C.UTF-8" LC_TIME="C.UTF-8" LC_COLLATE="C.UTF-8" LC_MONETARY="C.UTF-8" LC_MESSAGES="C.UTF-8" LC_PAPER="C.UTF-8" LC_NAME="C.UTF-8" LC_ADDRESS="C.UTF-8" LC_TELEPHONE="C.UTF-8" LC_MEASUREMENT="C.UTF-8" LC_IDENTIFICATION="C.UTF-8" LC_ALL=C.UTF-8

That`s the message coming when I try to pkgmk -i -d =======> Building '/ts/ports/core/gcc/gcc#12.2.0-1.pkg.tar.xz'. bsdtar -p -o -C /ts/ports/core/gcc/work/src -xf /ts/ports/core/gcc/isl-0.26.tar.bz2 bsdtar -p -o -C /ts/ports/core/gcc/work/src -xf /ts/ports/core/gcc/gcc-12.2.0.tar.xz bsdtar: Pathname can't be converted from UTF-8 to current locale. bsdtar: Pathname can't be converted from UTF-8 to current locale.

Thinstation commented 1 year ago

You have to create the locale first with localedef

On Tue, Apr 11, 2023 at 2:28 AM rohrbachger @.***> wrote:

Tried that, but no success (yet) Changed TS_ENV export TSVER=6.2 export TSWRKNG=/ts/build export TSPKGROOT=ts/build/packages export TSCOMPROOT=ts/components

export LANG=C.UTF-8 export LANGUAGE=C.UTF-8 export LC_ALL=C.UTF-8

I did not figured out yet, my understanding is I have to generate C.UTF-8

@.***_chroot]/# locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=C.UTF-8 LC_CTYPE="C.UTF-8" LC_NUMERIC="C.UTF-8" LC_TIME="C.UTF-8" LC_COLLATE="C.UTF-8" LC_MONETARY="C.UTF-8" LC_MESSAGES="C.UTF-8" LC_PAPER="C.UTF-8" LC_NAME="C.UTF-8" LC_ADDRESS="C.UTF-8" LC_TELEPHONE="C.UTF-8" LC_MEASUREMENT="C.UTF-8" LC_IDENTIFICATION="C.UTF-8" LC_ALL=C.UTF-8

That`s the message coming when I try to pkgmk -i -d =======> Building '/ts/ports/core/gcc/gcc#12.2.0-1.pkg.tar.xz'. bsdtar -p -o -C /ts/ports/core/gcc/work/src -xf /ts/ports/core/gcc/isl-0.26.tar.bz2 bsdtar -p -o -C /ts/ports/core/gcc/work/src -xf /ts/ports/core/gcc/gcc-12.2.0.tar.xz bsdtar: Pathname can't be converted from UTF-8 to current locale. bsdtar: Pathname can't be converted from UTF-8 to current locale.

— Reply to this email directly, view it on GitHub https://github.com/Thinstation/thinstation/issues/770#issuecomment-1502903328, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVW47VFJLN5ZWQTIQAN7TLXAUI2DANCNFSM6AAAAAAWRUJVOQ . You are receiving this because you commented.Message ID: @.***>

rohrbachger commented 1 year ago

I tried a lot but nothing helped.

The problem is because of line (near to end) of pkgmk: export LC_ALL=POSIX

Without this line it extracts without errors. I found this hint, and yes now files are extracted, I´m running now in a problem with isl, but probably I need the right version for compiling only. I used 026 for gcc 12.2.

Thinstation commented 1 year ago

Congratulations.

On Tue, Apr 11, 2023 at 11:22 AM rohrbachger @.***> wrote:

I tried a lot but nothing helped.

The problem is because of line (near to end) of pkgmk: export LC_ALL=POSIX

Without this line it extracts without errors. I found this hint, and yes now files are extracted, I´m running now in a problem with isl, but probably I need the right version for compiling only. I used 026 for gcc 12.2.

— Reply to this email directly, view it on GitHub https://github.com/Thinstation/thinstation/issues/770#issuecomment-1503805954, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVW47VMYT3FTKSPZVPPKVDXAWHMBANCNFSM6AAAAAAWRUJVOQ . You are receiving this because you commented.Message ID: @.***>

rohrbachger commented 1 year ago

After compiling some hours unfortunately an error... Only a little bit success libstdc++.so.6 is not created, the old one seems to be deleted.

root@TS_chroot]/ts/ports/core/gcc# pkgmk -i -u =======> Package '/ts/ports/core/gcc/gcc#12.2.0-1.pkg.tar.xz' is up to date. =======> Installing '/ts/ports/core/gcc/gcc#12.2.0-1.pkg.tar.xz'. pkgadd -u /ts/ports/core/gcc/gcc#12.2.0-1.pkg.tar.xz /usr/bin/pkgmk: line 583: 5600 Floating point exception(core dumped) $COMMAND =======> ERROR: Installing '/ts/ports/core/gcc/gcc#12.2.0-1.pkg.tar.xz' failed.

pkgmk Line 583 install_package() { local COMMAND

info "Installing '$TARGET'."

if [ "$PKGMK_INSTALL" = "install" ]; then
    COMMAND="pkgadd $TARGET"
else
    COMMAND="pkgadd -u $TARGET"
fi

cd $PKGMK_ROOT
echo "$COMMAND"
$COMMAND

if [ $? = 0 ]; then
    info "Installing '$TARGET' succeeded."
else
    error "Installing '$TARGET' failed."
    exit 1
fi

}

Thinstation commented 1 year ago

Maybe RAM again. Try unwinding manually.

On Wed, Apr 12, 2023 at 11:42 AM rohrbachger @.***> wrote:

After compiling some hours unfortunately an error... Only a little bit success libstdc++.so.6 is not created, the old one seems to be deleted.

@.***_chroot]/ts/ports/core/gcc# pkgmk -i -u =======> Package '/ts/ports/core/gcc/gcc#12.2.0-1.pkg.tar.xz' is up to date. =======> Installing '/ts/ports/core/gcc/gcc#12.2.0-1.pkg.tar.xz'. pkgadd -u /ts/ports/core/gcc/gcc#12.2.0-1.pkg.tar.xz /usr/bin/pkgmk: line 583: 5600 Floating point exception(core dumped) $COMMAND =======> ERROR: Installing '/ts/ports/core/gcc/gcc#12.2.0-1.pkg.tar.xz' failed.

pkgmk Line 583 install_package() { local COMMAND

info "Installing '$TARGET'."

if [ "$PKGMK_INSTALL" = "install" ]; then COMMAND="pkgadd $TARGET" else COMMAND="pkgadd -u $TARGET" fi

cd $PKGMK_ROOT echo "$COMMAND" $COMMAND

if [ $? = 0 ]; then info "Installing '$TARGET' succeeded." else error "Installing '$TARGET' failed." exit 1 fi

}

— Reply to this email directly, view it on GitHub https://github.com/Thinstation/thinstation/issues/770#issuecomment-1505682305, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVW47W3CXOVI24QXOQYXFDXA3SO3ANCNFSM6AAAAAAWRUJVOQ . You are receiving this because you commented.Message ID: @.***>

rohrbachger commented 1 year ago

I did on different machines, same effect. What means unwinding, how to do?

Parallel I will now clone the source again, and try to build the package gcc with all the original files and settings. This should work. Also I will try to analyse the install script of gcc 12.2. In which folder all the compiling / linking files are stored?

rohrbachger commented 1 year ago

Hipp, hipp, hooray, I hope I can reproduce it once.... ( currently I do not know exactly why it worked) GCC 12.2 compiled, installed libstdc++ is updated automatically

Horzion View Client 2303 installed, works now.

So I will try the build again and will document the steps. That was a good learning lesson.

Doncuppjr commented 1 year ago

ThinStation was my teacher for sure.

Sent from Yahoo Mail for iPhone

On Saturday, April 15, 2023, 6:03 AM, rohrbachger @.***> wrote:

Hipp, hipp, hooray, I hope I can reproduce it once.... ( currently I do not know exactly why it worked) GCC 12.2 compiled, installed libstdc++ is updated automatically

Horzion View Client 2303 installed, works now.

So I will try the build again and will document the steps. That was a good learning lesson.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>