Compile error using SOFF_T_R, Samba 2.2.0, Solaris 8, Sun CC 6.1

David Collier-Brown davecb at
Mon Apr 23 17:21:05 GMT 2001

  There is a missing macro definition somewhere: SOFF_T_R, and this
blows a compile of Samba 2.2.0 on Solaris 8 using Sun CC 6.1:
Compiling libsmb/clifile.c
Linking bin/smbd
Undefined                       first referenced
 symbol                             in file
SOFF_T_R                            libsmb/clifile.o
ld: fatal: Symbol referencing errors. No output written to bin/smbd

libsmb/clifile.c contains lines of the form:
        SIVAL(p, 0, cli->pid);
        SOFF_T_R(p, 0, offset);
        SOFF_T_R(p, 12, len);

and include/includes.h says:
#define SOFF_T(p, ofs, v) (SIVAL(p,ofs,(v)&0xFFFFFFFF),
#define SOFF_T(p, ofs, v) (SIVAL(p,ofs,v),SIVAL(p,(ofs)+4,0))

	Alas, I don't see a definition for SOFF_T_R anywhere...

David Collier-Brown,           | Always do right. This will gratify 
Performance & Engineering Team | some people and astonish the rest.
Americas Customer Engineering  |                      -- Mark Twain
(905) 415-2849                 | davecb at

More information about the samba-technical mailing list