NDR_PUSH_CHECK_FLAGS and NDR_PULL_CHECK_FLAGS not defined?

Andrew Bartlett abartlet at samba.org
Sun Sep 18 11:30:55 MDT 2011


On Sat, 2011-09-17 at 16:52 -0700, Richard Sharpe wrote:
> On Sat, Sep 17, 2011 at 4:21 PM, Richard Sharpe
> <realrichardsharpe at gmail.com> wrote:
> > Hi,
> >
> > I was trying to build 3.6.0 with my FSCTL patch cherry-picked from
> > master and got this error:
> >
> > Compiling librpc/gen_ndr/ndr_libnetapi.c
> > librpc/gen_ndr/ndr_libnetapi.c: In function ‘ndr_push_domsid’:
> > librpc/gen_ndr/ndr_libnetapi.c:34:2: error: implicit declaration of
> > function ‘NDR_PUSH_CHECK_FLAGS’
> > librpc/gen_ndr/ndr_libnetapi.c: In function ‘ndr_pull_domsid’:
> > librpc/gen_ndr/ndr_libnetapi.c:54:2: error: implicit declaration of
> > function ‘NDR_PULL_CHECK_FLAGS’
> > The following command failed:
> > gcc -g -DDEBUG_PASSWORD -DDEVELOPER -g -Wall -Wshadow -Wpointer-arith
> > -Wcast-align -Wwrite-strings -Wdeclaration-after-statement
> > -Werror-implicit-function-declaration -I.
> > -I/home/rsharpe/samba/source3
> > -I/home/rsharpe/samba/source3/../lib/iniparser/src -Iinclude
> > -I./include  -I. -I. -I./../lib/replace -I./../lib/tevent -I./librpc
> > -I./.. -I./../lib/talloc -I../lib/tdb/include -DHAVE_CONFIG_H
> > -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
> > -DLDAP_DEPRECATED  -I/home/rsharpe/samba/source3/lib -I..
> > -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 -fPIC -c
> > librpc/gen_ndr/ndr_libnetapi.c -o librpc/gen_ndr/ndr_libnetapi.o
> > make: *** [librpc/gen_ndr/ndr_libnetapi.o] Error 1
> >
> >
> > What would cause this? Looks like some intermediate file has not been
> > rebuilt ...
> 
> OK, found the problem. Neither 'make clean' nor 'make distclean' etc
> remove the files generated from IDL.
> 
> Since I was moving from master back to 3.6.0 there were differences.

The issue here is that for a release, we autogenerate these files with
autogen.sh and include them in the tarball.  This means we can't clean
them with either clean or distclean, as otherwise it would remove
them.  

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org




More information about the samba-technical mailing list