All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] can not get samba to work
@ 2001-12-19 12:28 Joerg Hartmann
  2001-12-19 14:47 ` Richard Hirst
  0 siblings, 1 reply; 2+ messages in thread
From: Joerg Hartmann @ 2001-12-19 12:28 UTC (permalink / raw)
  To: parisc-linux Mailinglist

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

A messages.tdb exists. Every tool seems to have problems with *.tdb
hp-tux:/usr/src/samba-2.2.2/source/bin# ./smbstatus -s /etc/samba/smb.conf
connections.tdb not initialised

First i had installed the samba (v 2.2.2) package from the CD with
apt-get. After that didn't worked, i removed it and compiled my own from
the native source. Same problem - same error.

./configure and make went smoothly so i dont understand
what the reason of this error is.  

As i thought this would be a samba error i asked for help
on the samba mailing list, but did not get an answer.
So i am now stuck with this error ...
Does anyone use samba on parisc-linux ?
Could this be a problem with some underlying software which samba
depends on ?
I use samba since years on x86-Linux and have never seen such things
bevore.

-- 
Best regards,
 Joerg                          J.Hartmann@reinarts.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [parisc-linux] can not get samba to work
  2001-12-19 12:28 [parisc-linux] can not get samba to work Joerg Hartmann
@ 2001-12-19 14:47 ` Richard Hirst
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Hirst @ 2001-12-19 14:47 UTC (permalink / raw)
  To: Joerg Hartmann; +Cc: parisc-linux Mailinglist

On Wed, Dec 19, 2001 at 01:28:44PM +0100, Joerg Hartmann wrote:
> 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
F_SETLKW64.

samba builds with

-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE

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).

Richard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-12-19 14:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-19 12:28 [parisc-linux] can not get samba to work Joerg Hartmann
2001-12-19 14:47 ` Richard Hirst

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.