Replies: 3 comments
-
This issue is stale because it has been open for 365 days with no activity. |
Beta Was this translation helpful? Give feedback.
-
This issue was closed because it has been inactive for 60 days since being marked as stale. |
Beta Was this translation helpful? Give feedback.
-
Has anything been solved for this? Edit: After some debugging and logging, I noticed that the issue gets to: https://github.com/pocoproject/poco/blob/devel/Net/src/HTTPClientSession.cpp#L255 Before failing. I think that the app I'm using is using a pre-compiled library of it, so I cannot debug any further. But I will see if I can get a custom build going to narrow down the issue. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
I have created a C++ program using Poco libraries version 1.9.0 that implements an HTTPS POST Request.
I've build the code and the libraries for both amd64 and arm64 architecture using gcc/g++ and aarch64-linux-gnu-g++/aarch64-linux-gnu-gcc compilers of the same version 9.3.0.
The build commands that I used were:
$ ./configure --shared --omit=Data,XML,PDF,Redis,Encodings,Zip,CppParser,CppUnit,MongoDB --no-tests --no-samples
./configure --shared --config=Arm64 --omit=Data,XML,PDF,Redis,Encodings,Zip,CppParser,CppUnit,MongoDB --no-tests --no-samples --prefix=/home/user/libs --include-path=/home/user/libs/include --library-path=/home/user/libs/lib
where the config file Arm64 is the following :
The code that I used is the following:
When I run it under Ubuntu 20.04 amd64 arch it works fine and the response is the correct one:
Then I tried to run the arm64 version inside a container following the Dockerfile :
Afterwards I run the container with the following command
docker run -v /usr/bin/qemu-aarch64-static:/usr/bin/qemu-aarch64-static -i -t --platform arm64 myapp_image
The program runs up to the line
session.sendRequest(request) << body;
where the terminal gives the following error :
getsockopt level=1 optname=20 not yet supported
And the exception caught is:
Net Exception: Operation not supported
On the other hand when I give inside the container the command:
curl -d '{json}' -H 'Content-Type: application/json' https://example.com/login
I get the same printout as with amd64 arch case :
Is the above fault related to my arm64 poco building or something else ?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions