[Samba] compiling samba-3.4.x on RHEL4
Werner Maes
Werner.Maes at icts.kuleuven.be
Mon Oct 19 17:15:02 MDT 2009
well
in the Makefile I see:
CPPFLAGS=-DHAVE_CONFIG_H -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/talloc -I./../lib/tevent -I./../lib/tdb/include -I./libaddns -I./librpc -I./.. -I./../lib/popt -DLDAP_DEPRECATED
so it seems that it should find replace.h
can't figure out what's wrong her :(
werner
> -----Original Message-----
> From: Michael Wood [mailto:esiotrot at gmail.com]
> Sent: donderdag 10 september 2009 13:55
> To: Werner Maes
> Subject: Re: [Samba] compiling samba-3.4.x on RHEL4
>
> 2009/9/10 Werner Maes <Werner.Maes at icts.kuleuven.be>:
> > hello
> >
> > when I try to compile samba-3.4.x on RHEL4 with the samba.spec in the
> packaging folder I always get this error:
> >
> > Compiling ../lib/talloc/talloc.c
> > ../lib/talloc/talloc.c:50:21: replace.h: No such file or directory
>
> Looks like a "-I../lib/replace" (or equivalent) is missing somewhere.
>
> > ../lib/talloc/talloc.c: In function `_talloc_realloc':
> > ../lib/talloc/talloc.c:987: error: `bool' undeclared (first use in
> this function)
> > ../lib/talloc/talloc.c:987: error: (Each undeclared identifier is
> reported only once
> > ../lib/talloc/talloc.c:987: error: for each function it appears in.)
> > ../lib/talloc/talloc.c:987: error: syntax error before "malloced"
> > ../lib/talloc/talloc.c:1035: error: `malloced' undeclared (first use
> in this function)
> > ../lib/talloc/talloc.c:1035: error: `true' undeclared (first use in
> this function)
> > ../lib/talloc/talloc.c:1486:1: warning: "va_copy" redefined
>
> This looks like HAVE_VA_COPY was not correctly defined.
>
> I think you should first figure out the replace.h issue before looking
> at the HAVE_VA_COPY issue, though.
>
> > In file included from ../lib/talloc/talloc.h:30,
> > from ../lib/talloc/talloc.c:51:
> > /usr/lib/gcc/i386-redhat-linux/3.4.6/include/stdarg.h:54:1: warning:
> this is the location of the previous definition
> > The following command failed:
> > ccache gcc -O2 -g -march=i386 -mcpu=i686 -D_GNU_SOURCE -fPIC -c
> ../lib/talloc/talloc.c -o ../lib/talloc/talloc.o
> > make: *** [../lib/talloc/talloc.o] Error 1
> > error: Bad exit status from /var/tmp/rpm-tmp.72692 (%build)
>
> --
> Michael Wood <esiotrot at gmail.com>
More information about the samba
mailing list