Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Strange situation with 5.01.02  (Read 242 times)
Benjamin G.
Posts: 135


« on: May 02, 2025, 04:16:27 pm »

Hello

On last version :

fglrun 5.01.02 rev-763f056
Genero virtual machine
Target l64xl228

This code :

IMPORT security
MAIN
 DEFINE s STRING = "dGVzdHRlc3Q="
 LET s = security.Base64.ToString(s)
 display s
END MAIN

fglrun on commande line (ssh) works fine

Same code running from studio with target GDC ok
Same code running from studio with target GBC ko with error
           
            FORMS statement error number -6221.
            C extension initialization failed with status -1.

Any idea ?

Thanks








* bug_2025-05-02 161608.png (75.73 KB, 891x661 - viewed 23 times.)
Leo S.
Four Js
Posts: 131


« Reply #1 on: May 02, 2025, 04:40:04 pm »

Hi Benjamin, check if LANG is set to something like "fr" and unset it if it's the case.
Regards , Leo
Benjamin G.
Posts: 135


« Reply #2 on: May 02, 2025, 06:54:40 pm »

Hi,

I've UNSET LANG but still same situation ...
On commande line with or without LANG we don't have this error

Regards
Reuben B.
Four Js
Posts: 1134


« Reply #3 on: May 03, 2025, 01:02:06 am »

Whenever someone says something like

Quote
fglrun on commande line (ssh) works fine

Same code running from studio with target GDC ok
Same code running from studio with target GBC ko with error

my immediate thought is environment, hence this article https://4js.com/ask-reuben/ig-218/

So add the line ...

Code
  1. RUN "env | sort > /tmp/yourname.env"

...as soon as possible after MAIN and compare the output from the 3 scenarios.

There is one thing with this error though, chances are it occurs before the MAIN because of presence of IMPORT security.  So use a small test program without that IMPORT security line.

What you will probably see is GSTDIR/lib being included in PATH / LD_LIBRARY_PATH, and some libcrypto / libssl libraries being picked up from there rather than FGLDIR/lib or the system equivalents.

i.e. you are hitting this issue https://4js.com/support/issue/?id=GST-19307

There is a workaround but as they have not publicised it in the Issue Description, contact your support contact on Monday and they should be able to give a workaround.

Reuben

 



Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Benjamin G.
Posts: 135


« Reply #4 on: May 03, 2025, 06:50:22 pm »

Hi Reuben,

moving libcrypto and libssl out of /opt/fourjs/gst/lib solve the situation

Thanks
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines