Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7886901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:26:24+00:00 2026-06-03T05:26:24+00:00

While compiling with ndk-build, I get the following error: /* this is the output*/

  • 0

While compiling with ndk-build, I get the following error:

/* this is the output*/
alex@ubuntu:~/NDKDemo$ ndk-build
Compile thumb  : fusexmp <= fusexmp.c
Compile thumb  : fuse <= cuse_lowlevel.c
Compile thumb  : fuse <= fuse.c
Compile thumb  : fuse <= fuse_kern_chan.c
Compile thumb  : fuse <= fuse_loop.c
Compile thumb  : fuse <= fuse_loop_mt.c
Compile thumb  : fuse <= fuse_lowlevel.c
Compile thumb  : fuse <= fuse_mt.c
Compile thumb  : fuse <= fuse_opt.c
Compile thumb  : fuse <= fuse_session.c
Compile thumb  : fuse <= fuse_signals.c
Compile thumb  : fuse <= helper.c
Compile thumb  : fuse <= mount.c
Compile thumb  : fuse <= mount_util.c
jni/mount_util.c: In function 'add_mount_legacy':
jni/mount_util.c:91: warning: assignment makes pointer from integer without a cast
Compile thumb  : fuse <= ulockmgr.c
StaticLibrary  : libfuse.a
Executable     : fusexmp
/home/alex/Downloads/android-ndk-r7/platforms/android-14/arch-arm/usr/lib/crtbegin_dynamic.o: In function `_start':
(.text+0x14): undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [obj/local/armeabi/fusexmp] Error 1

I have modified modified fusexmp.c as follows:

#include "com_alex_NativeLib.h"
............................ //fuse specific code which build succesfully
.............................
/* Callable native function signature from Java*/
JNIEXPORT jint JNICALL Java_com_marakana_NativeLib_hello_fuse
  (JNIEnv * env, jobject obj) {
char *v[2];
    v[0]=(char*)malloc(90); //argv[0] for fuse_main
    v[1]=(char*)malloc(90); //argv[1] for fuse_main
    strcpy( v[0],"hello");
    strcpy(v[1],"./helloxmp"); //path to mount point

    umask(0); 
    return fuse_main(2, v, &xmp_oper, NULL); //the fuse main call
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T05:26:25+00:00Added an answer on June 3, 2026 at 5:26 am

    The issue is that ndk-build is trying to build fusexmp as an executable, but it seems that fusexmp doesn’t have a main function defined (as required by the compiler to create an executable). Create a main function as the entry point of the executable, or change fusexmp into a library, by changing include $(BUILD_EXECUTABLE) to include $(BUILD_SHARED_LIBRARY) in your Android.mk

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I get rid of this error and other while compiling the below
I get this error android.database.sqlite.SQLiteException: near %: syntax error: , while compiling: SELECT _id,
I am getting following error while compiling Android on ubuntu 11.10 target arm C:
While compiling the c++ code using android NDK I am getting the following error:
I get this error message while compiling: Assembly 'MyFramework [...]' uses 'System.Web.Extensions, Version=3.5.0.0 [...]'
I am getting the following error while compiling a sample program in Qt 4.5
The following C++ code gives an error while compiling: #include<iostream> using namespace std; class
While compiling on GCC I get the error: pure-specifier on function-definition , but not
I am receiving this error while compiling a C program in MinGW. As far
While compiling some code I receive the following: error C2018: unknown character '0x40' I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.