Problem compile Qt 4.4.2 with latest w32api

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem compile Qt 4.4.2 with latest w32api

Tonal
I try configure and compile Qt 4.4.2
Bat I recive error compiling gmake:
In file included from
C:/Lang/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/security.h:3
8,
from
D:\Lang\qt\qt4.4.2/src/corelib/io/qfsfileengine_win.cpp:74:
C:/Lang/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sspi.h:60:
error: `UNICODE_STRING' does not name a type

P.S. I send bag
https://sourceforge.net/tracker/?func=detail&atid=102435&aid=2120668&group_id=2435 

--
Alexandr N. Zamaraev


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Reply | Threaded
Open this post in threaded view
|

Re: Problem compile Qt 4.4.2 with latest w32api

Chris Sutcliffe-2
On Sun, Sep 21, 2008 at 2:43 AM, Tonal wrote:

> I try configure and compile Qt 4.4.2
> Bat I recive error compiling gmake:
> In file included from
> C:/Lang/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/security.h:3
> 8,
> from
> D:\Lang\qt\qt4.4.2/src/corelib/io/qfsfileengine_win.cpp:74:
> C:/Lang/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sspi.h:60:
> error: `UNICODE_STRING' does not name a type
>
> P.S. I send bag
> https://sourceforge.net/tracker/?func=detail&atid=102435&aid=2120668&group_id=2435
Can you please try the attached sspi.h to see if it fixes the issue?
The problem is that UNICODE_STRING is defined in subauth.h which is
not included by security.h prior to including sspi.h.  I've included
subauth.h in the attached sspi.h to resolve the issue, but I want to
make sure it doesn't have any nasty side affects.

Thanx!

Chris

--
Chris Sutcliffe
http://emergedesktop.org

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users

sspi.h (21K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Problem compile Qt 4.4.2 with latest w32api

Tonal
Chris Sutcliffe пишет:
> Can you please try the attached sspi.h to see if it fixes the issue?
Yes. This attach fix the issue.

Bat compile all Qt 4.4.2 crach:
mingw32-make[4]: Entering directory `d:/Lang/qt/qt4.4.2/src/winmain'
g++ -c -ggdb -g3 -Wall -frtti -fexceptions -mthreads -DQT_THREAD_SUPPORT
-DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_NEEDS_QMAIN -DQT_NO_CAST_TO_ASCII
-DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT
-D_USE_MATH_DEFINES -I'../../include' -I'tmp' -I'../../include/QtCore'
-I'd:/Lang/qt/qt4.4.2/include/qtmain' -I'tmp/rcc/debug_shared' -I'tmp'
-I'd:/Lang/qt/qt4.4.2/include/ActiveQt' -I'tmp/moc/debug_shared' -I'.'
-I'c:/Lang/mingw/include' -I'c:/Lang/mingw/include/c++'
-I'../../mkspecs/win32-g++' -o tmp/obj/debug_shared/qtmain_win.o
qtmain_win.cpp
In file included from ../../include/QtCore/qatomic_windows.h:1,
                  from
../../include/QtCore/../../src/corelib/arch/qatomic_arch.h:78,
                  from ../../include/QtCore/qatomic_arch.h:1,
                  from
../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:209,
                  from ../../include/QtCore/qbasicatomic.h:1,
                  from
../../include/QtCore/../../src/corelib/thread/qatomic.h:48,
                  from ../../include/QtCore/qatomic.h:1,
                  from
../../include/QtCore/../../src/corelib/tools/qbytearray.h:48,
                  from ../../include/QtCore/qbytearray.h:1,
                  from qtmain_win.cpp:45:
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:393:
error: declaration of C function `long int
InterlockedCompareExchange(long int*, long int, long int)' conflicts with
c:/Lang/mingw/include/winbase.h:1663: error: previous declaration `LONG
InterlockedCompareExchange(volatile LONG*, LONG, LONG)' here
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:394:
error: declaration of C function `long int InterlockedIncrement(long
int*)' conflicts with
c:/Lang/mingw/include/winbase.h:1676: error: previous declaration `LONG
InterlockedIncrement(volatile LONG*)' here
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:395:
error: declaration of C function `long int InterlockedDecrement(long
int*)' conflicts with
c:/Lang/mingw/include/winbase.h:1667: error: previous declaration `LONG
InterlockedDecrement(volatile LONG*)' here
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:396:
error: declaration of C function `long int InterlockedExchange(long
int*, long int)' conflicts with
c:/Lang/mingw/include/winbase.h:1668: error: previous declaration `LONG
InterlockedExchange(volatile LONG*, LONG)' here
../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:397:
error: declaration of C function `long int InterlockedExchangeAdd(long
int*, long int)' conflicts with
c:/Lang/mingw/include/winbase.h:1672: error: previous declaration `LONG
InterlockedExchangeAdd(volatile LONG*, LONG)' here
mingw32-make[4]: *** [tmp/obj/debug_shared/qtmain_win.o] Error 1

--
Alexandr N. Zamaraev


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Reply | Threaded
Open this post in threaded view
|

Re: Problem compile Qt 4.4.2 with latest w32api

Tonal
Tonal wrote:
> Bat compile all Qt 4.4.2 crach:
I added #ifndef __INTERLOCKED_DECLARED ... #endif around the block
declarations Interlocked* functions in qatomic_windows.h.
While build work normal. :-)
--
Alexandr N. Zamaraev


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Reply | Threaded
Open this post in threaded view
|

Re: Problem compile Qt 4.4.2 with latest w32api

Keith Marshall
In reply to this post by Tonal
On Sunday 21 September 2008 15:44:23 Tonal wrote:
> ../../include/QtCore/../../src/corelib/arch/qatomic_windows.h:393:
> error: declaration of C function `long int
> InterlockedCompareExchange(long int*, long int, long int)'
> conflicts with c:/Lang/mingw/include/winbase.h:1663: error:
> previous declaration `LONG InterlockedCompareExchange(volatile
> LONG*, LONG, LONG)' here

So, why is qatomic_windows.h declaring a function prototype, for a
function that is properly declared in winbase.h?  (And according to
MSDN, the winbase.h declaration is correct; the Qt declaration is
incorrect, lacking the `volatile' qualifier).

Same applies to the other reported prototype conflicts.  This looks
more like a Qt bug, than any fault in MinGW.

Regards,
Keith.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users