Open chipitsine opened 4 months ago
These should be provided via the compat header. Can you figure out what the apparently existing endian.h contains?
Presumably this code needs to be of the form
#if defined(__APPLE__)
#if !defined(HAVE_ENDIAN_H)
...
#elif defined(/* whatever identifies ios */)
...
#endif
interesting fact is that https://github.com/build-xcframeworks/libressl was not updated for a while, it states that LibreSSL-3.2.4 is supported (which was the latest as the time of creating)
I jumped from 3.2.4 to 3.9.0 ))
so far,
3.7.2 - builds fine 3.8.0 - fails
(I'll do more checks soon)
3.7.2 - builds fine 3.8.0 - fails
That's because crypto_internal.h
didn't exist back then and there were no calls to these conversion functions. As mentioned, the bug will be in the compat endian.h
.
+1 any fix on this?
omg, I forgot about it. thanks ))
Yeah, I'm trying to compile 3.9.1 for iOS and failing...
Yeah, I'm trying to compile 3.9.1 for iOS and failing...
can you please help us with build steps you take ?
we definetly would like to add something like that to CI
I've just got a bash script to make sure I get the right options:
echo "Configuring"
if ./configure --host=$HOST --disable-tests --enable-shared=no > /tmp/configure.log 2>&1
then
echo "Building"
make -k -j8 > /tmp/build.log 2>&1
$AR -r libtls.a `find crypto -name '*.o'` ssl/*.o tls/*.o >> /tmp/build.log
$RANLIB libtls.a
cp -v libtls.a ~/libs/ios/$BITS/libtls.a
else
echo "Failed configure, see /tmp/configure.log"
fi
HOST is set to either aarch64-apple-darwin11 or armv7-ios-darwin11
In my case I'm simply using the build-xcframework/libressl script
In my very first post I asked a question and suggested a solution. How about you all try to answer it and then we can figure it out?
OK, I changed the line to:
#if defined(__APPLE__) && !defined(be16toh)
And it works for me for iOS, and verified it doesn't screw up macOS (both Intel and ARM)
On Thu, Apr 18, 2024 at 02:01:18AM -0700, ronaaron wrote:
OK, I changed the line to:
#if defined(__APPLE__) && !defined(be16toh)
And it works for me for iOS, and verified it doesn't screw up macOS (both Intel and ARM)
Ok, thanks.
That might be a viable approach although I'd prefer to get these HAVE_* defines set by autotools or cmake right. @busterb could you take a look please?
I ran build script from https://github.com/build-xcframeworks/libressl