uClibc uses different library names than glibc. As a first shot, try to use librt, e.g. to link all your objects into mybin executable:
gcc obj1.o obj2.o .... -o mybin -lrt Carlo Shaohui Li ha scritto: > Hello everyone, > i 'm porting an application from i386 to mipsel platform, which requires > to use uClibc instead of glibc. > During the compilation, and especially in the phase of linking, there > several "undefined reference to some function", which are indeed not > defined in uClibc, but in glibc, such as '__stpcpy(), __xstat64, > __lxstat64.c, __close' and '__open()'. I tried to copy the code of first > functions into the source code of the application and it worked, but the > last one, namely the function '__open()' seems to be much more > complicated: it gives me an error message like the following: > open.c: In function '__open': > open.c:42: error: 'va_start' used in function with fixed args > Does anyone knows how can I solve the problem? Thank you very much! > best wishes, shaohui > > > ------------------------------------------------------------------------ > > _______________________________________________ > uClibc mailing list > [email protected] > http://busybox.net/cgi-bin/mailman/listinfo/uclibc > > > ------------------------------------------------------------------------ > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.446 / Virus Database: 268.18.26/746 - Release Date: 04/04/2007 > 1.09 pm _______________________________________________ uClibc mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/uclibc
