Samba not working on PARISC Linux (fwd)

Steve Langasek vorlon at
Sat Dec 29 08:28:01 GMT 2001

On Thu Dec 20 12:58:02 2001, Gerald (Jerry) Carter wrote:

> Anyone want to comment?

Well, this matches up with a bug report recently filed against Debian's
Samba package.

My first hope was that we could override the detection within the Debian 
package using a config.cache variable.  Nothing doing; the check for LFS 
support is quite custom, and the result isn't cached.  So instead, a 
general solution is required.

The problem is putting together a usable test case.  In the strace 
output below, even though the argument is mangled, the fcntl syscall 
still returns 0 (success).  Joerg, do you have strace output from Samba 
that shows exactly how this is causing a failure?  Hopefully we can 
extract a simple test case from that.

Has anyone brought this to the attention of the glibc developers?  I'm 
sure the Linux-parisc port would in general benefit from having a 
working fcntl implementation.

Steve Langasek
postmodern programmer

> ---------- Forwarded message ----------
> Date: Wed, 19 Dec 2001 19:27:30 +0100
> From: Joerg Hartmann <J.Hartmann at>
> To: Samba Mailing List <samba at>
> Subject: Samba not working on PARISC Linux

> Hello Samba users,

> as i still could not get samba to work on my hp 9000/720 workstation
> with debian linux, i asked for help on the parisc linux mailinglist.
> Here is an answer which blames glibc for the problem.
> Could someone please explain to me (from viewing this info)
> how to set compiler options/defines to get samba to work on this
> architecture ?  Or what to do else ...

> Thanks.

> ---------------------------------------------------------------
>> Hello parisc-linux users,
>> i can not get samba to work on my 720 with the 0.9.3 Debian.
>> smbd dies immediatly with an error message in log.smbd:
>> [2001/12/16 19:51:43, 0] lib/messages.c:message_init(97)
>> ERROR: Failed to initialise messages database

> This looks like a glibc problem to me - I think it is calling fcntl
> where it should be calling fcntl64, and using FSETLKW rather than

> samba builds with


> Using a test program, without those defines, i386 strace shows:

> fcntl64(3, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=1}) = 0

> with those defines:

> fcntl64(3, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=0, len=1}, 0xbffffa9c) = 0

> Now on hppa, without those defines

> fcntl(3, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=1}) = 0

> and with them:

> fcntl(3, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=31, len=0}) = 0

> note that 'start' and 'len' are wrong in the last case; I think that's
> because glibc used a 64 bit struct flock, but didn't specify F_SETLKW64
> (and didn't call fcntl64).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url :

More information about the samba-technical mailing list