[Gpg4win-devel] Problem cross-building gpg4win-2.1.0

Jörg Schmitz-Linneweber joerg at schmitz-linneweber.de
Wed Mar 16 18:39:30 CET 2011


Hello all!

I'm trying to cross-build gpg4win-2.1.0 (from .tar.bz2) and get an error
while building pinentry (gtk/qt4?)

Some infos:
build environment: Ubuntu 10.10 (Marverick Meerkat)
configured: ./configure host=i586-mingw32msvc
gcc version: $ i586-mingw32msvc-gcc --version
i586-mingw32msvc-gcc (GCC) 4.2.1-sjlj (mingw32-2)

log output: (only small warnings)
> /home/jsl/gpg4win-2.1.0/src/playground/install/include/QtGui/qkeysequence.h:199: warning: 'QDataStream& operator>>(QDataStream&, QKeySequence&)' redeclared without dllimport attribute: previous dllimport ignored
> In file included from /home/jsl/gpg4win-2.1.0/src/playground/install/include/QtGui/qpainter.h:57,
>                  from /home/jsl/gpg4win-2.1.0/src/playground/install/include/QtGui/QPainter:1,
>                  from ../../pinentry-0.8.1/qt4/pinentrydialog.cpp:32:
> /home/jsl/gpg4win-2.1.0/src/playground/install/include/QtGui/qpen.h:121: warning: 'QDataStream& operator>>(QDataStream&, QPen&)' redeclared without dllimport attribute: previous dllimport ignored

log output: (final error)
> In file included from /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/windows.h:50,
>                  from ../../pinentry-0.8.1/qt4/pinentrydialog.cpp:40:
> /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/winbase.h:1681: error: declaration of C function 'LONG InterlockedCompareExchange(volatile LONG*, LONG, LONG)' conflicts with
> /home/jsl/gpg4win-2.1.0/src/playground/install/include/QtCore/qatomic_windows.h:393: error: previous declaration 'long int InterlockedCompareExchange(long int*, long int, long int)' here
> /usr/lib/gcc/i586-mingw32msvc/4.2.1-sjlj/../../../../i586-mingw32msvc/include/winbase.h:1685: error: declaration of C function 'LONG InterlockedDecrement(volatile LONG*)' conflicts with
> /home/jsl/gpg4win-2.1.0/src/playground/install/include/QtCore/qatomic_windows.h:395: error: previous declaration 'long int InterlockedDecrement(long int*)' here

It seems as if gcc chokes on some qt4 behaviour which was formerly ignored. Since (I assume) gpg4win brings its own gt4 (qt4.4.0-4 ?) it should not be a problem of mingw <-> gt4-devel installations...

Anyone seen this before?

TIA. Salut, Jo"rg




More information about the Gpg4win-devel mailing list