From: Werner Maes on
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(a)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(a)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(a)gmail.com>
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: Ralf Hornik Mailings on
Werner Maes <Werner.Maes(a)icts.kuleuven.be> wrote:

> so it seems that it should find replace.h
> can't figure out what's wrong her :(

So where is your replace.h located?

Ralf


--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: Werner Maes on
replace.h is in /usr/src/redhat/BUILD/samba-3.4.1/lib/replace/

The Makefile can be found in /usr/src/redhat/BUILD/samba-3.4.1/source3/

so -I./../lib/replace should point to the folder where replace.h can be found? Or am I missing sometmhing?

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

werner

ps: in samba 3.2.x & 3.3.x the folder lib/replace was situated in the source/ folder, but in samba 3.4.x it is no longer there but one directory up !

> -----Original Message-----
> From: Ralf Hornik [mailto:ralf(a)ralf-hornik.de]
> Sent: donderdag 10 september 2009 16:20
> To: Werner Maes
> Cc: 'Michael Wood'; samba(a)lists.samba.org
> Subject: Re: [Samba] compiling samba-3.4.x on RHEL4
>
> Werner Maes <Werner.Maes(a)icts.kuleuven.be> wrote:
>
> > so it seems that it should find replace.h>
> > can't figure out what's wrong her :(
>
> So where is your replace.h located?
>
> Ralf
>

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: Ralf Hornik Mailings on
Werner Maes <Werner.Maes(a)icts.kuleuven.be> wrote:

> replace.h is in /usr/src/redhat/BUILD/samba-3.4.1/lib/replace/
>
> The Makefile can be found in /usr/src/redhat/BUILD/samba-3.4.1/source3/
>
> so -I./../lib/replace should point to the folder where replace.h can
> be found? Or am I missing sometmhing?
>
> 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

Have you already tried to compile by hand? (just for reproducing)


--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: Werner Maes on
no I haven't yet.

perhaps I will try that tomorrow.

but I'm wondering if I'm the only one with this error?

w.

> -----Original Message-----
> From: Ralf Hornik Mailings [mailto:ralf(a)best.homeunix.org]
> Sent: donderdag 10 september 2009 16:56
> To: Werner Maes
> Cc: samba(a)lists.samba.org
> Subject: Re: [Samba] compiling samba-3.4.x on RHEL4
>
> Werner Maes <Werner.Maes(a)icts.kuleuven.be> wrote:
>
> > replace.h is in /usr/src/redhat/BUILD/samba-3.4.1/lib/replace/
> >
> > The Makefile can be found in /usr/src/redhat/BUILD/samba-
> 3.4.1/source3/
> >
> > so -I./../lib/replace should point to the folder where replace.h can
> > be found? Or am I missing sometmhing?
> >
> > 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
>
> Have you already tried to compile by hand? (just for reproducing)
>

--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba