Bug 3425 - Samba 3.0.21a doesn't compile for mipsel
Samba 3.0.21a doesn't compile for mipsel
Status: RESOLVED LATER
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
3.0.21a
Other Linux
: P3 normal
: none
Assigned To: Tim Potter
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-01-19 06:18 UTC by Tomasz Chmielewski
Modified: 2006-01-25 08:29 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Chmielewski 2006-01-19 06:18:13 UTC
Samba 3.0.21a doesn't compile for mipsel:

# ./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 


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

        gettimeofday(tval);

to this:


        gettimeofday(tval,NULL);

But I don't know if I did it "the good way".
Comment 1 Gerald (Jerry) Carter 2006-01-25 08:29:18 UTC
Please write a configure check for the number of gettimeofday() 
arguements and attach a patch.  Looks like mipsel has a non-standard
gettimeofday().  Please reopen the bug once you have a pacth.
Thanks.