2.1.4.18393 fails to compile with MSVC 9
----------------------------------------

                 Key: CORE-3851
                 URL: http://tracker.firebirdsql.org/browse/CORE-3851
             Project: Firebird Core
          Issue Type: Bug
          Components: Build Issues / Porting
    Affects Versions: 2.1.4
         Environment: Windows 7, 32 bit build using VC9 (a.k.a. MSVS 2008).
            Reporter: Vadim Zeitlin


Executing builds\win32\make_boot.bat results in the following error after a lot 
of other, normal, output (paths slightly edited for readability):

...msvc\9\VC\include\new(58) : error C2084: function 'void *operator 
new(size_t,void *) throw()' already has a body
        ...firebird-2.1.4.18393-0\src\jrd\../common/classes/alloc.h(451) : see 
previous definition of 'new'
...msvc\9\VC\include\new(70) : error C2084: function 'void *operator 
new[](size_t,void *) throw()' already has a body
        ...firebird-2.1.4.18393-0\src\jrd\../common/classes/alloc.h(455) : see 
previous definition of 'new[]'
...msvc\9\VC\include\new(82) : warning C4985: 'operator new[]': attributes not 
present on previous declaration.
        ...firebird-2.1.4.18393-0\src\jrd\../common/classes/alloc.h(442) : see 
declaration of 'operator new[]'


Adding the lines

#define __PLACEMENT_NEW_INLINE
#define __PLACEMENT_VEC_NEW_INLINE

at line 450 in alloc.h allows the compilation to proceed (the warning about 
missing "throws(bad::alloc)" still remains though) but looks more like a hack 
than a proper fix.

The code seems to have changed a lot since 2.1.4 in the current svn trunk so 
this issue is probably fixed there but it could be nice to fix it in 2.1 as 
well if it can be done easily.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to