map_lock_offset compiling problem in 2.2.0-alpha1
Robert Dahlem
Robert.Dahlem at gmx.net
Wed Dec 6 08:49:15 GMT 2000
Hi,
On Sat, 02 Dec 2000 17:08:30 +0100, Robert Dahlem wrote:
>There is a compilation problem with samba-2.2.0-alpha1
>on at least SCO5 and Reliant Unix (32 bit version):
>
> Linking bin/smbd
> Undefined first referenced
> symbol in file
> map_lock_offset smbd/reply.o
> ld: bin/smbd: fatal error: Symbol referencing errors.
> No output written to bin/smbd
>Anything I can do to get closer to a solution?
Ok, I tried my luck and snooped around a bit: The problem seems to be
within locking/posix.c ...
May 2 2000 Andrew checked in a patch surrounding map_lock_offset()
with
#if defined(LARGE_SMB_OFF_T)
I think this should be reversed to
#if !defined(LARGE_SMB_OFF_T)
Roughly said LARGE_SMB_OFF_T is defined when off_t is a 64 bit value,
so on a system without large file support LARGE_SMB_OFF_T will never
be defined.
map_lock_offset() is a function to map 64 bit lock offsets to 31 bit
lock offsets. There seems to be no need to do this when running on a
64 bit system but always when running on a 32 bit system.
Andrew: Can you tell if my conclusions are correct (or naive :-)?
Joe: Could you try the attached patch on your SCO system and check if
it works? Please note that you will have to "make proto" before
"make" because I had to change the function header.
Regards,
Robert
--
---------------------------------------------------------------
Robert.Dahlem at gmx.net Fax +49-69-432647
---------------------------------------------------------------
Sent using PMMail (http://www.pmmail2000.com) - fast, decent, email
software; far better than Outlook. Try it sometime.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 584 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20001206/b76456eb/attachment.obj
More information about the samba-technical
mailing list