curllib 7.65.3

Issue #92 resolved
Robert Frei created an issue

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)

  1. Kevin Adler

    Try setting environment variableQIBM_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.

  2. Douglas Bridwell

    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

  3. Log in to comment