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

Johnny Willemsen jwillemsen at remedy.nl
Thu Jan 24 00:02:46 CST 2008


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
> > that
> > > > would be great.
> > > >
> > > > Thanks,
> > > >
> > > >         Doug
> > > >
> > > > >Mingw team has released gcc -4.2.1, you can
> > > > download
> > > > >from :
> > > >
> > >
> >
> >http://sourceforge.net/project/showfiles.php?group_id=2435
> > > > >
> > > > >
> > > > >Regards
> > > > >
> > > > >Zhang HaiBin
> > > > >
> > > > >
> > > > >ACE VERSION: 5.6.2
> > > > >HOST MACHINE and OPERATING SYSTEM
> > > > >TARGET MACHINE and OPERATING SYSTEM, if
> > different
> > > > from
> > > > >
> > > > >HOST:
> > > > >COMPILER NAME AND VERSION (AND PATCHLEVEL):
> > > > >$ uname -a
> > > > >MINGW32_NT-5.1 CH-SZX-HBZHANG1 1.0.11(0.46/3/2)
> > > > >2007-01-12
> > > > >12:05	i686 Msys
> > > > >
> > > > >gcc -v
> > > > >Using built-in specs.
> > > > >Target: mingw32
> > > > >Configured with: ../gcc-4.2.1-2-src/configure
> > > > >--with-gcc --enable-libgomp --host=mingw32
> > > > >--build=mingw32 --target=mingw32 --p
> > > > >rogram-suffix=-sjlj --with-arch=i486
> > > > >--with-tune=generic --disable-werror
> > > > --prefix=/mingw
> > > > >--with-local-prefix=/mingw --enable
> > > > >-threads --disable-nls
> > > >
> > >--enable-languages=c,c++,fortran,objc,obj-c++,ada
> > > > >--disable-win32-registry
> > --enable-sjlj-exceptions
> > > > --
> > > > >enable-libstdcxx-debug
> > > > >--enable-cxx-flags=-fno-function-sections
> > > > >-fno-data-sections
> > > > >--enable-version-specific-runtime-libs --
> > > > >disable-bootstrap
> > > > >Thread model: win32
> > > > >gcc version 4.2.1-sjlj (mingw32-2)
> > > > >
> > > > >
> > > > >
> > > > >This is the warning and error:
> > > > >
> > 
> === message truncated ===
> 
> 
> 
>       ___________________________________________________________ 
> ??????????,???????! 
>
http://cn.mail.yahoo.com/gc/index.html?entry=5&souce=mail_mailletter_tagline
> 



More information about the Ace-users mailing list