Hi all,

I cannot get Samba-3.0.20 to build using GCC-4. The previous version
of Samba compiled just fine using GCC-4. I've tracked the problem to
a recent commit in the Samba sources. The following was added to
the include/includes.h file with the SVN commit message as "adding
C++ friendliness".

/*
#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
*/


The section is commented out because I did this to ensure that it
would compile. I am not suggesting this as a fix, because quite
frankly, I am not proficient enough in C to determine if this area
of code now produces syntax errors using GCC-4. I've googled and
searched the Samba mailing lists, but cannot find a thing out
about this.

I do know that commenting this area of code out produces a clean
build.

Any help would be appreciated. I'm not going to update the book
until I find out what the proper fix for this issue is.

-- 
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]
09:18:00 up 155 days, 8:51, 3 users, load average: 1.21, 1.13, 0.77
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to