[Ace-users] [ace-users] ACE-5.6.2 can't be compiled (use gcc-4.2.1) inmingw in Windows XP

haibin zhang dragzhb at yahoo.com.cn
Thu Jan 24 00:23:21 CST 2008


Hi,

I have account in
http://deuce.doc.wustl.edu/bugzilla/index.cgi

but I can't create a new bug, the following is tips:
==================================================
No Products
Either no products have been defined to enter bugs
against or you have not been given access to any.

Please press Back and try again. 
==================================================

Regards

Zhang HaiBin

--- Johnny Willemsen <jwillemsen at remedy.nl>写道:

> Hi,
> 
> Just create an account for bugzilla and create
> patches that resolve the
> problem. 
> 
> Johnny
> 
> "haibin zhang" <dragzhb at yahoo.com.cn> wrote in
> message
>
news:<mailman.3453.1201138281.5286.ace-users at mail.cse.wustl.edu>...
> > Hi,
> > 
> > Sorry , I can't upload the pactches, Because of
> that I
> > don't know how to fix the following bugs:
> > 
> > 1. I don't know how to define MICRO of gcc-4.2
> info.
> > 2. I don't know how to fix this bug(important)
> > 
> > d:/cdev/ACE_wrappers/ace/OS_NS_stdio.inl: In
> function
> > 'int ACE_OS::flock_unlock(ACE_OS::ace_flock_t*,
> short
> > int, ACE_OFF_T, A
> > CE_OFF_T)':
> > d:/cdev/ACE_wrappers/ace/OS_NS_stdio.inl:137:
> warning:
> > operation on 'ace_result_' may be undefined
> > 
> >  ACE_WIN32CALL_RETURN (
> >    ACE_ADAPT_RETVAL (::UnlockFile (lock->handle_,
> >                                   
> > lock->overlapped_.Offset,
> >                                   
> > lock->overlapped_.OffsetHigh,
> >                                    low_len,
> >                                    high_len),
> >                      ace_result_), int, -1);
> > 
> > Regards
> > 
> > Zhang HaiBin
> > 
> > 
> > --- Johnny Willemsen <jwillemsen at remedy.nl>??:
> > 
> > > Hi,
> > > 
> > > Can you make unified diffs of the changes (diff
> -u).
> > > Also note that mingw
> > > with gcc 3.4 should stay supported. We have a
> MinGW
> > > build on the scoreboard
> > > at http://scoreboard.theaceorb.nl. Can you then
> > > store the patches in
> > > bugzilla (see
> > > http://deuce.doc.wustl.edu/bugzilla/index.cgi)
> for
> > > integration? 
> > > 
> > > Regards,
> > > 
> > > 
> > > 
> > > > -----Original Message-----
> > > > From: ace-users-bounces at cse.wustl.edu
> > > [mailto:ace-users-
> > > > bounces at cse.wustl.edu] On Behalf Of haibin
> zhang
> > > > Sent: Wednesday, January 23, 2008 4:24 AM
> > > > To: Douglas C. Schmidt;
> ace-users at cse.wustl.edu
> > > > Subject: Re: [ace-users] ACE-5.6.2 can't be
> > > compiled (use gcc-4.2.1) in
> > > > mingw in Windows XP
> > > > 
> > > > The following is patches to fix the bug:
> > > > 
> > > > 1. vi platform_gnuwin32_common.GNU in
> > > > include/makeinclude
> > > > 
> > > > ifeq (3.4,$(findstring
> > > 3.4,$(GNUWIN32_CXX_VERSION)))
> > > >   MODEL_FLAGS += -mtune=$(TCPU)
> > > > else
> > > >   MODEL_FLAGS += -mcpu=$(TCPU)
> > > > endif
> > > > 
> > > > add ifeq (4.2,$(findstring
> > > > 4.2,$(GNUWIN32_CXX_VERSION)))
> > > > 
> > > > find -lnetapi32 , then add -lgdi32 // <-- fix
> ssl
> > > > build bug
> > > > 
> > > > 2. modify ace/config-win32.h to comment the
> > > following
> > > > lines
> > > > 
> > > > // comment the following lines
> > > > //#define ACE_Proper_Export_Flag __declspec
> > > > (dllexport)
> > > > //#define ACE_Proper_Import_Flag __declspec
> > > > (dllimport)
> > > > //#define ACE_EXPORT_SINGLETON_DECLARATION(T)
> > > template
> > > > class __declspec (dllexport) T
> > > > //#define
> > > ACE_EXPORT_SINGLETON_DECLARE(SINGLETON_TYPE,
> > > > CLASS, LOCK) template class __declspec
> (dllexport)
> > > > SINGLETON_TYPE<CLAS
> > > > S, LOCK>;
> > > > //#define ACE_IMPORT_SINGLETON_DECLARATION(T)
> > > extern
> > > > template class T
> > > > //#define
> > > ACE_IMPORT_SINGLETON_DECLARE(SINGLETON_TYPE,
> > > > CLASS, LOCK) extern template class
> SINGLETON_TYPE
> > > > <CLASS, LOCK>;
> > > > 
> > > > 3. vi ace/OS_NS_stdio.inl to fix these bugs:
> > > > d:/cdev/ACE_wrappers/ace/OS_NS_stdio.inl: In
> > > function
> > > > 'int
> ACE_OS::flock_unlock(ACE_OS::ace_flock_t*,
> > > short
> > > > int, ACE_OFF_T, A
> > > > CE_OFF_T)':
> > > > d:/cdev/ACE_wrappers/ace/OS_NS_stdio.inl:137:
> > > warning:
> > > > operation on 'ace_result_' may be undefined
> > > > d:/cdev/ACE_wrappers/ace/OS_NS_stdio.inl: In
> > > function
> > > > 'int
> ACE_OS::flock_rdlock(ACE_OS::ace_flock_t*,
> > > short
> > > > int, ACE_OFF_T, A
> > > > CE_OFF_T)':
> > > > d:/cdev/ACE_wrappers/ace/OS_NS_stdio.inl:206:
> > > warning:
> > > > operation on 'ace_result_' may be undefined
> > > > d:/cdev/ACE_wrappers/ace/OS_NS_stdio.inl: In
> > > function
> > > > 'int
> ACE_OS::flock_wrlock(ACE_OS::ace_flock_t*,
> > > short
> > > > int, ACE_OFF_T, A
> > > > CE_OFF_T)':
> > > > d:/cdev/ACE_wrappers/ace/OS_NS_stdio.inl:358:
> > > warning:
> > > > operation on 'ace_result_' may be undefined
> > > > d:/cdev/ACE_wrappers/ace/OS_NS_stdio.inl: In
> > > function
> > > > 'char* ACE_OS::cuserid(char*, size_t)':
> > > > d:/cdev/ACE_wrappers/ace/OS_NS_stdio.inl:409:
> > > warning:
> > > > dereferencing type-punned pointer will break
> > > > strict-aliasing rules
> > > > d:/cdev/ACE_wrappers/ace/OS_NS_stdio.inl: In
> > > function
> > > > 'wchar_t* ACE_OS::cuserid(wchar_t*, size_t)':
> > > > d:/cdev/ACE_wrappers/ace/OS_NS_stdio.inl:500:
> > > warning:
> > > > dereferencing type-punned pointer will break
> > > > strict-aliasing rules
> > > > 
> > > > 
> > > > Regards
> > > > 
> > > > Zhang HaiBin
> > > > 
> > > > 
> > > > 
> > > > --- "Douglas C. Schmidt"
> > > > <schmidt at dre.vanderbilt.edu>??:
> > > > 
> > > > > Hi,
> > > > >
> > > > >     Thanks for using the PRF.
> > > > >
> > > > > >I found ACE-5.6.2 can't be compiled using
> > > gcc-4.2.1
> > > > > in
> > > > > >mingw in windows XP
> > > > > >
> > > > > >I checked config*.h , I can't found gcc
> 4.2.x
> > > MICRO
> > > > > in
> > > > > >config*.h
> > > > >
> > > > > Supported MinGW isn't a high priority for
> us. 
> > > If
> > > > > you'd like to figure
> > > > > out what fixes are required and send them to
> us
> 
=== message truncated ===



      ___________________________________________________________ 
雅虎邮箱传递新年祝福,个性贺卡送亲朋! 
http://cn.mail.yahoo.com/gc/index.html?entry=5&souce=mail_mailletter_tagline



More information about the Ace-users mailing list