I commented out the arc4random: 'rand', line in library.js This causes the expat configure to not find arc4random and the build succeeds.
Why are you providing the arc4random definition if it is not part of the c standard library? Bsd compatibility? On Monday, September 18, 2017 at 5:32:48 PM UTC+2, jj wrote: > > 2017-09-18 17:03 GMT+03:00 Dirk Vanden Boer <dirk...@gmail.com > <javascript:>>: > > I patched the expat source to include the declaration of the arc4random > > function. That allows it to compile. > > Seems like emscripten should provide the declaration though if it > provides > > the implementation. Otherwise every project that uses the cmake > > infrastructure to detect this function (check_function_exists) is going > to > > run into trouble. > > That might not be the root cause here for the configure script > tripping itself up. Did you try if deleting the implementation line in > src/library.js would also have fixed the configure script to run as > expected? > > If we did provide the declaration, we would not be able to add it to > <stdlib.h>, because that would be nonstandard. We could do a #include > <bsd/stdlib.h> that https://linux.die.net/man/3/arc4random suggests, > but unless expat configure script was aware of this, that would not > help either, so some changes to expat may be necessary whatever the > appropriate fix would be. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.