nplab / m3ua-testtool

M3UA Testtool and an Implementation of M3UA Conformance Tests according to ETSI TS 102 381
BSD 2-Clause "Simplified" License
7 stars 1 forks source link

modern guile has no htonl function anymore #2

Open laf0rge opened 2 years ago

laf0rge commented 2 years ago

htonl still existed in guile-2.0 but has been removed from 2.2 and 3.x versions:

** 'htons', 'htonl', 'ntohs', 'ntohl' These procedures, like their C counterpart, were used to convert numbers to/from network byte order, typically in conjunction with the now-deprecated uniform vector API.

This functionality is now covered by the bytevector and binary I/O APIs. See "Interpreting Bytevector Contents as Integers" in the manual.

tuexen commented 2 years ago

and I think there is also a warning that using strings for sending data is deprecated. Need to update that. I don't like converting a number to a bytevector and then convert it back just to do an htonl(). Using that API to store a number in a bytevector in network byte order makes sense...

laf0rge commented 10 months ago

a kind reminder about this issue. guile-2.0 is no longer packaged by even debian oldstable (11) let alone stable (12), so it's getting more and more difficult to run software that explicitly depends on guile 2.0