Git Product home page Git Product logo

Comments (9)

ghazel avatar ghazel commented on August 22, 2024

Trying to use the libevent-provided implementations doesn't work either, because:

     [exec] libevent/./arc4random.c:466:1: error: static declaration of 'arc4random_addrandom' follows non-static declaration
     [exec] arc4random_addrandom(const unsigned char *dat, int datlen)
     [exec] ^
     [exec] /usr/local/Cellar/android-ndk/r11b/platforms/android-14/arch-arm/usr/include/stdlib.h:117:13: note: previous declaration is here
     [exec] extern void arc4random_addrandom(unsigned char *, int);

from ndk.

ghazel avatar ghazel commented on August 22, 2024

Similarly, arc4random_stir has a different return value. Why is it declared in sodlib.h and defined in libc at all, if it's not actually present or linkable?

from ndk.

DanAlbert avatar DanAlbert commented on August 22, 2024

See #42 for explanation of why the arc4random ones went away.

issetugid never had a real implementation in Android. I don't remember all the details (I'll update if I manage to track them down), but since it was only ever a stub implementation and it isn't a part of POSIX, we removed it.

Leaving the bug opened and assigning to @jmgao because we should fix the headers, but these won't be put back (they've never been in the LP64 ABIs anyway).

from ndk.

CicTec avatar CicTec commented on August 22, 2024

Hello,

I have the same problem, library compiled fine with r10e, with r11c fails to compile:
jni/modules/timers/timers.cpp: 64: error: undefine reference to 'ftime'
jni/modules/timers/timers.cpp: 93: error: undefine reference to 'ftime'

Regards

from ndk.

CicTec avatar CicTec commented on August 22, 2024

Hello
I see that the r12-beta2 continues to have the same reference issue with some library functions (such as FTIME), you might be able to get the fix for the final r12 ?

Regards.

from ndk.

DanAlbert avatar DanAlbert commented on August 22, 2024

Unfortunately it's going to have to be r13. Our grand plan of replacing all the headers with the current ones from aosp requires an update to clang (and update containing a patch that has not been written yet).

from ndk.

DanAlbert avatar DanAlbert commented on August 22, 2024

This shouldn't be blocking you though. This bug getting fixed just means you get a compile time failure instead of a link time failure.

from ndk.

jmgao avatar jmgao commented on August 22, 2024

@CicTec ftime is obsolete, and was removed in POSIX 2008. You should be using time, gettimeofday, or clock_gettime, depending on the level of precision you need.

from ndk.

CicTec avatar CicTec commented on August 22, 2024

Ok, I'll try with these functions, thanks to both.

from ndk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.