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 ../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 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) any ideas? kind regards werner
Werner Maes <Werner.Maes at 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
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 at ralf-hornik.de] > Sent: donderdag 10 september 2009 16:20 > To: Werner Maes > Cc: 'Michael Wood'; samba at lists.samba.org > Subject: Re: [Samba] compiling samba-3.4.x on RHEL4 > > Werner Maes <Werner.Maes at 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 >
Werner Maes <Werner.Maes at 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_DEPRECATEDHave you already tried to compile by hand? (just for reproducing)
thank you ! werner> -----Original Message----- > From: eerov at welho.com [mailto:eerov at welho.com] > Sent: maandag 14 september 2009 14:32 > To: Werner Maes > Cc: 'Eero Volotinen'; 'Ralf Hornik Mailings' > Subject: RE: [Samba] compiling samba-3.4.x on RHEL4 > > I just opened bug about this: > > https://bugzilla.samba.org/show_bug.cgi?id=6721 > > Please add, if any comments or ideas. > > thanks > -- > Eero, > RHCE > >
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>