GNOME Bugzilla – Bug 766998
Android app doesn't compile
Last modified: 2016-05-30 17:52:23 UTC
gst-build-armeabi-v7a/gstreamer_android.o:gstreamer_android.c:function bsd_signal: error: undefined reference to 'signal' collect2: error: ld returned 1 exit status make: *** [buildsharedlibrary_armeabi-v7a] Error 1 A follow-up of https://bugzilla.gnome.org/show_bug.cgi?id=766235
Are you using latest GIT master or latest GIT from the 1.8 branch? The fix is not in a release yet. Also please provide more information about what you're actually doing there, which version of GStreamer, what application, settings (target Android version, etc), ...
Because there are so many regressions, I'm trying to find my way out by mixing up everything I can. I'm compiling gstreamer cerbero latest (1.9) while forcing gst-plugin-bad to 1.8 because latest has at least two bugs that block me. I don't know how to compile cerbero on a full 1.8 (instead of latest) so I have started to edit each recipe to the previous revisions that seem working.
cerbero has a 1.8 branch that you can use. But what about your application, what are the settings? Is it compiling in this: https://cgit.freedesktop.org/gstreamer/cerbero/tree/data/ndk-build/gstreamer_android-1.0.c.in#n11 It sounds like your application is targetting API < 20. There bsd_signal() should already exist and the weak link should not happen.
I can now compile 1.8 properly. But 1.9 is still unstable with regressions and blockers.
So the linking problem is gone with 1.8? Then it also shouldn't happen with 1.9 as the relevant code is exactly the same :) Please report the other regressions, I think you only reported the zerocopy decoding one so far?
I gave up on mixing stuff as I can compile 1.8 cleanly. I still think this bug exists and it will reappear in the future once you will have to reintroduce this signal hack. I have opened https://bugzilla.gnome.org/show_bug.cgi?id=766993 There is also https://bugzilla.gnome.org/show_bug.cgi?id=766201 which I saw working on 1.7.90.
What do you mean with reintroducing the signal hack? It's in the 1.8 and master branch