[Samba] 3.0.20 build issue

Randy McMurchy randy at linuxfromscratch.org
Sun Sep 4 16:46:51 GMT 2005


Hi all,

I could not get the new 3.0.20 version to compile using a GCC-4 based
system without commenting out some code just recently put in (I base
this on the SVN commits). The code I had to comment is in the
source/include/includes.h file. Here is the commented code.

/*
#ifndef __cplusplus
#define class #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
#define private #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
#define public #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
#define protected #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
#define template #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
#define this #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
#define new #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
#define delete #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
#define friend #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
#endif
*/

This code was inserted into the includes.h file after 3.0.14a was
released. I can compile the 3.0.14a version perfectly without any
changes. Anyway, commenting out the section shown above in the
includes.h file results in a clean build and a perfectly (as best
as I can tell) running Samba installation of 3.0.20.

If I can provide any additional information to help out, let me
know. I am not subscribed, but I will follow via the newsgroup
and/or archive facilities.


-- 
Randy

rmlscsi: [GNU ld version 2.15.94.0.2 20041220] [gcc (GCC) 3.4.3]
[GNU C Library stable release version 2.3.4] [Linux 2.6.10 i686]
11:41:01 up 155 days, 11:14, 3 users, load average: 0.08, 0.08, 0.19


More information about the samba mailing list