missing function __open(), what to do?

Luciano Miguel Ferreira Rocha strange at nsk.no-ip.org
Thu Apr 5 16:05:40 UTC 2007


On Thu, Apr 05, 2007 at 02:52:38PM +0200, Shaohui Li wrote:
> 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!

open doesn't use va_args. You should be fine by using
int __open(const char *path, int flags, mode_t mode) {
	return open(path, flags, mode);
}

-- 
lfr
0/0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/uclibc/attachments/20070405/3e1b5140/attachment-0002.pgp 


More information about the uClibc mailing list