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

Jeremy Allison jeremy at
Mon Apr 23 16:38:05 GMT 2001

David Collier-Brown wrote:
>   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

What source tree are you working in ?

I've just checked in 2.2.0 release and both HEAD and 2.2
branches and they have :

#define SOFF_T(p, ofs, v) (SIVAL(p,ofs,(v)&0xFFFFFFFF),
#define SOFF_T_R(p, ofs, v) (SIVAL(p,(ofs)+4,(v)&0xFFFFFFFF),
#define SOFF_T(p, ofs, v) (SIVAL(p,ofs,v),SIVAL(p,(ofs)+4,0))
#define SOFF_T_R(p, ofs, v) (SIVAL(p,(ofs)+4,v),SIVAL(p,ofs,0))


Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.

More information about the samba-technical mailing list