Hi,
Kenny wrote: > Yes, it is. The linker "ld" fails to find the symbol fdatasync. How to > get it found? And trick in Android.mk? > Kenny > Add to the bionic SYSCALL.txt and call the python script gensyscall.py. I hope that it fix your issue Michael > On Jul 2, 8:16 pm, Michael Trimarchi <trimar...@gandalf.sssup.it> > wrote: > >> Kenny Yu wrote: >> >>> I am porting a C program. Very simple - it refers to a C function >>> declared in BIONIC libc: >>> >>> device/bionic/libc/include/unistd.h >>> at line 142 (CUPCAKE version) as >>> extern int fdatasync(int); >>> >>> Link failure is seen because libc.so doesn't have the implementation: >>> external/sysstat/sadc.c:901: undefined reference to `fdatasync' >>> collect2: ld returned 1 exit status >>> >>> Can anyone figure out where the function fdatasync() is implemented? >>> >> I think that is a syscall so just add to the syscall list. >> Michael >> >> >> >> >>> It should call syscall fdatasync eventually. >>> >>> Kenny- Hide quoted text - >>> >> - Show quoted text - >> > > > > --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---