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

David Collier-Brown davecb at canada.sun.com
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:
#ifdef LARGE_SMB_OFF_T
#define SOFF_T(p, ofs, v) (SIVAL(p,ofs,(v)&0xFFFFFFFF),
SIVAL(p,(ofs)+4,(v)>>3!
#else
#define SOFF_T(p, ofs, v) (SIVAL(p,ofs,v),SIVAL(p,(ofs)+4,0))
#endif


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

--dave
-- 
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 canada.sun.com




More information about the samba-technical mailing list