Tomasz Chmielewski
2006-Jan-18 16:32 UTC
[Samba] 3.0.21a cross-compiling (uClibc) for mipsel fails
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? -- Tomasz Chmielewski http://wpkg.org
Tomasz Chmielewski
2006-Jan-18 16:54 UTC
[Samba] 3.0.21a cross-compiling (uClibc) for mipsel fails [SOLVED]
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