Hello Markus, On Wednesday 02 June 2010 17:03:10 Markus Kress wrote: > Hello Kern, > thank you for your help. Comment out these header files solves the problem:
Thanks for the feedback. I am glad my suggestion worked. I am not really sure what is going on, because the ./configure process should properly detect things, but I wouldn't be surprised if older kernels were not very aware of C++. I don't have a 2.4.x kernel with OS around to test, but if anyone else has the problem at least we now know the solution. Best regards, Kern > > /* > > * # include <sys/prctl.h> > > * # include <sys/capability.h> > > */ > > > > Mit freundlichen Grüßen / Best regards > > Markus Kress > > > > > Kern Sibbald > <k...@sibbald.com > > > An > > bacula-devel@lists.sourceforge.net > 02.06.2010 08:48 Kopie > Markus Kress > <markus.kr...@gls-itservices.com> > Thema > Re: [Bacula-devel] Compile > Bacula-FD 5.0.2 with SLES8 (Kernel > 2.4.21, gcc version 3.2): > > On Tuesday 01 June 2010 11:14:02 Markus Kress wrote: > >> Hello > >> > >> compile of Bacula-FD fails on SLES8 (Kernel 2.4.21, gcc version 3.2): > >> > >> Compiling plugins.c > >> Compiling priv.c > >> In file included from /usr/include/linux/fs.h:25, > >> from /usr/include/linux/capability.h:17, > >> from /usr/include/sys/capability.h:24, > >> from priv.c:35: > >> /usr/include/asm/bitops.h:30: parse error before `volatile' > >> /usr/include/asm/bitops.h:65: parse error before `volatile' > >> In file included from priv.c:35: > >> /usr/include/sys/capability.h:110: parse error before `}' token > >> make[1]: *** [priv.o] Error 1 > >> make[1]: Leaving directory > > `/export/home/makr27632261/cvsworkspace/bacula_sles8fd/build/bacula-5.0.2 > > >> /src/lib' > >> ====== Error in > >> /export/home/makr27632261/cvsworkspace/bacula_sles8fd/build/bacula-5.0.2 > >> /src/lib ====== > > > >It looks to me like some of the headers in your OS do not support C++ or > > they > > >are somehow broken in a backward way with current Linux headers, or > > perhaps > > >you have modified the header files. > > > >You might be able to comment out all the header files and #if that start > > with > > >the #if defined(HAVE_PRCTL) and end with the second #endif. > > ___________________________________________________________________________ >________________________________________ > > GLS IT Services GmbH > Sitz: Neuenstein, Amtsgericht Bad Hersfeld HRB 388, Geschäftsführer: > Rüdiger Schmahl > ___________________________________________________________________________ >________________________________________ ------------------------------------------------------------------------------ _______________________________________________ Bacula-devel mailing list Bacula-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-devel