curllib 7.65.3
When is use the newest curl with libcurl4 7.65.3 in qsh on ibm i all http requests fail with:
curl: (6) getaddrinfo() thread failed to start
When i revert back to libcurl4 (the last i got is 7.58) all http requests work.
I guess this a bug.
Comments (5)
-
-
Account Deactivated reporter Hello Kevin,
thank you, that helped.
regards,
Robert
-
Account Deactivated reporter - changed status to resolved
-
Wish I had seen this sooner. I was pulling my hair out trying to figure out why I couldn’t get this working.
I have an application where a supplier is sending us a box of devices and the barcode on that box contains a URL that downloads a spreadsheet with the device information (serial number and other info that we need). I want to be able to scan the barcode and put the device info into a database. On a hunch I thought Curl might be a solution. So I tried it using putty and ssh and got it to download the spreadsheet into the IFS perfectly. Then I tried to use a CL program to run that same curl command and could not get it to work. I was able to get it to work in QP2TERM. But could not get it to work in QSH or QP2SHELL or QP2SHELL2. I tried using different quotes and double quotes. I came across some advice to use QSH as follows: QSH CMD('/QOpenSys/usr/bin/sh -c "/QOpenSys/bin/script.sh"') where /QOpenSys/bin/script.sh is any PASE shell command or script. I tried it with “curl --version” and it worked fine. However when I tried using my original command it kept getting the “curl: (6) getaddrinfo() thread failed to start” error. So after searching for this error I eventually found this page and tried setting the environment variable and it worked!
Thanks for posting this!
Doug
-
FYI, we do have a FAQ entry about this issue, but it’s related to yum: https://ibmi-oss-docs.readthedocs.io/en/latest/troubleshooting/README.html?highlight=qibm_multi#yum-can-t-connect-to-the-repository I’ve opened an issue to improve our docs: https://github.com/IBM/ibmi-oss-docs/issues/62
- Log in to comment
Try setting environment variable
QIBM_MULTI_THREADED=Y
before starting QSH. This will run QSH in a threaded environment. All of the RPMs are built with thread support, so at any time an update could make use of threads when it previously didn’t.