[Samba] 3.0.21a cross-compiling (uClibc) for mipsel fails [SOLVED]

Tomasz Chmielewski mangoo at wpkg.org
Wed Jan 18 16:53:41 GMT 2006


Tomasz Chmielewski schrieb:
> I'm trying to cross-compile Samba 3.0.21a to run on mipsel (using uClibc).
> 
> It fails at some point however, and I can't spot the problem:
> 
> # ./configure --target=mipsel-linux --host=mipsel-linux 
> --build=i386-pc-linux-gnu && make
> (...)
> Compiling lib/sendfile.c
> Compiling lib/time.c
> lib/time.c: In function `GetTimeOfDay':
> lib/time.c:66: error: too few arguments to function `gettimeofday'
> make: *** [lib/time.o] Fehler 1
> 
> Any ideas?


The fix is easy, although I'm not sure if it was "the right way" (TM).

I edited lib/time.c, and changed the line 66:

         gettimeofday(tval);

to this:


         gettimeofday(tval,NULL);


And it compiled.

I didn't try if it works yet, though.


-- 
Tomasz Chmielewski
http://wpkg.org


More information about the samba mailing list