[squeak-dev] WebClient httpGet: 'http://freegeoip.net/json/' works on windows not linux

tim Rowledge tim at rowledge.org
Mon Feb 26 17:46:17 UTC 2018



> On 26-02-2018, at 2:17 AM, Tobias Pape <Das.Linux at gmx.de> wrote:
> 
> 
> This is somewhat expected, in retrospect, at least.
> Could you try with one of the VMs from at least late last week (Friday or so), I'd be really interested whether they'll work.

I'd completely lost track of the fact that my entire reason for fetching the latest cog stuff from github was in order to test this...

so, in an up-to-date Raspbian, with a Cog vm compiled a couple of days ago from sources pulled less than a week ago, `ldd SqueakSSL` produces -
 ldd SqueakSSL
	linux-vdso.so.1 (0x7ec81000)
	/usr/lib/arm-linux-gnueabihf/libarmmem.so (0x76f14000)
	libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0x76eeb000)
	libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76dac000)
	/lib/ld-linux-armhf.so.3 (0x76f43000)

But trying to actually run 
(ReadStream on: (WebClient httpGet: 'http://freegeoip.net/json/', (WebClient
httpGet: 'https://api.ipify.org') content) content utf8ToSqueak)

fails the primitiveSSLCreate

Just for the record the image/vm status is- 
Image
-----
/home/pi/Squeak/Squeak6.0alpha-17650-TPR.image
Squeak6.0alpha
latest update: #17650
Current Change Set: FileDIalogs-StartUsage
Image format 6521 (32 bit)

Virtual Machine
---------------
/home/pi/Squeak/sqcogspurlinuxhtRPi/lib/squeak/5.0-201802210733/squeak
Croquet Closure Cog[Spur] VM [CoInterpreterPrimitives VMMaker.oscog-eem.2320]
Unix built on Feb 21 2018 14:29:07 Compiler: 6.3.0 20170516
platform sources revision VM: 201802210733 tim at Diziet-5.local:Documents/Squeak/Rasbian-VM/vm $ Date: Wed Feb 21 08:33:24 2018 +0100 $ Plugins: 201802210733 tim at Diziet-5.local:Documents/Squeak/Rasbian-VM/vm $
CoInterpreter VMMaker.oscog-eem.2320 uuid: e2692e35-5fc8-4623-95d0-b445b3329f75 Feb 21 2018
StackToRegisterMappingCogit VMMaker.oscog-eem.2324 uuid: 904abc56-e5a8-467e-a337-880211e33805 Feb 21 2018

Loaded VM Modules
-----------------
B2DPlugin VMMaker.oscog-eem.2309 (i)
BitBltPlugin VMMaker.oscog-eem.2293 (i)
FilePlugin VMMaker.oscog-eem.2309 (i)
FloatArrayPlugin VMMaker.oscog-eem.2309 (i)
ImmX11Plugin VMMaker.oscog-dtl.2311 (e)
LargeIntegers v2.0 VMMaker.oscog-eem.2309 (i)
Matrix2x3Plugin VMMaker.oscog-eem.2309 (i)
MiscPrimitivePlugin VMMaker.oscog-eem.2309 (i)
SecurityPlugin VMMaker.oscog-eem.2166 (i)
SocketPlugin VMMaker.oscog-eem.2309 (i)
SqueakSSL VMMaker.oscog-eem.1975 (e)

A very quick look at the SSL related C code and generated C  code suggests to me that it could do with some work to report errors a bit more helpfully. Which I know is not always trivial but is always useful.

tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Oxymorons: Clearly misunderstood




More information about the Squeak-dev mailing list