[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Problem compiling a library against subversion on windows

From: Andreas Pakulat <apaku_at_gmx.de>
Date: 2007-05-06 18:47:15 CEST

Hi,

I'm trying to build a library against subversion using mingw on windows
xp. However it fails because there are some duplicated typedefs:

D:\andreas\mingw\bin\g++.exe -DMAKE_KDEVSUBVERSION_LIB -g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline -ID:\andreas\kde4\sources\kdevelop\build\lib\plugins\vcs\subversion -ID:\andreas\kde4\sources\kdevelop\lib\plugins\vcs\subversion -ID:\andreas\kde4\sources\kdevelop -ID:\andreas\kde4\sources\kdevelop\build -ID:\andreas\kde4\sources\kdevelop\lib -ID:\andreas\kde4\sources\kdevelop\lib\interfaces -ID:\andreas\kde4\sources\kdevelop\lib\plugins\vcs\interfaces -ID:\andreas\kde4\sources\kdevelop\lib\project -ID:\andreas\kde4\sources\kdevelop\lib\plugins\outputviews\interfaces -ID:\andreas\kde4\sources\qt-copy\include -ID:\andreas\kde4\sources\qt-copy\include\Qt -ID:\andreas\kde4\sources\qt-copy\mkspecs\default -ID:\andreas\kde4\sources\qt-copy\include\QtCore -ID:\andreas\kde4\sources\qt-copy\include\QtGui -ID:\andreas\kde4\sources\qt-copy\include\Qt3Support -ID:\andreas\kde4\sources\qt-copy\include\QtAssistant -ID:\andreas\kde4\sources\qt-copy\include\QtDesigner -ID:\andreas\kde4\sources\qt-copy\inc
lude\QtNetwork -ID:\andreas\kde4\sources\qt-copy\include\QtOpenGL -ID:\andreas\kde4\sources\qt-copy\include\QtSql -ID:\andreas\kde4\sources\qt-copy\include\QtXml -ID:\andreas\kde4\sources\qt-copy\include\QtSvg -ID:\andreas\kde4\sources\qt-copy\include\QtScript -ID:\andreas\kde4\sources\qt-copy\include\QtUiTools -ID:\andreas\kde4\sources\qt-copy\include\QtTest -ID:\andreas\kde4\sources\qt-copy\include\QtDBus -ID:\andreas\kde4\install\include -ID:\andreas\kde4\install\include\KDE -ID:\andreas\kde4\install\include\mingw -ID:\andreas\kde4\install\include\threadweaver -IC:\Programme\Subversion\include -IC:\Programme\Subversion\include\apr -IC:\Programme\Subversion\include\apr-util -DQT_DLL -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -DHAVE_CONFIG_H=1 -o lib/plugins/vcs/subversion/CMakeFiles/kdevsubversion.dir/subversion_part.obj -c D:\andreas\kde4\sources\kdevelop\lib\plugins\vcs\subversion\subversion_part.cpp
In file included from C:/Programme/Subversion/include/svn_pools.h:28,
                 from D:\andreas\kde4\sources\kdevelop\lib\plugins\vcs\subversion\subversionthreads.h:21,
                 from D:\andreas\kde4\sources\kdevelop\lib\plugins\vcs\subversion\subversion_part.cpp:16:
C:/Programme/Subversion/include/apr/apr.h:360: error: conflicting declaration 'typedef int uid_t'
D:/andreas/kde4/install/include/mingw/sys/types.h:25: error: 'uid_t' has a previous declaration as `typedef unsigned int uid_t'
C:/Programme/Subversion/include/apr/apr.h:360: error: declaration of `typedef int uid_t'
D:/andreas/kde4/install/include/mingw/sys/types.h:25: error: conflicts with previous declaration `typedef unsigned int uid_t'
C:/Programme/Subversion/include/apr/apr.h:360: error: declaration of `typedef int uid_t'
D:/andreas/kde4/install/include/mingw/sys/types.h:25: error: conflicts with previous declaration `typedef unsigned int uid_t'
C:/Programme/Subversion/include/apr/apr.h:361: error: conflicting declaration 'typedef int gid_t'
D:/andreas/kde4/install/include/mingw/sys/types.h:26: error: 'gid_t' has a previous declaration as `typedef unsigned int gid_t'
C:/Programme/Subversion/include/apr/apr.h:361: error: declaration of `typedef int gid_t'
D:/andreas/kde4/install/include/mingw/sys/types.h:26: error: conflicts with previous declaration `typedef unsigned int gid_t'
C:/Programme/Subversion/include/apr/apr.h:361: error: declaration of `typedef int gid_t'
D:/andreas/kde4/install/include/mingw/sys/types.h:26: error: conflicts with previous declaration `typedef unsigned int gid_t'
In file included from C:/Programme/Subversion/include/apr/apr_pools.h:39,
                 from C:/Programme/Subversion/include/svn_pools.h:30,
                 from D:\andreas\kde4\sources\kdevelop\lib\plugins\vcs\subversion\subversionthreads.h:21,
                 from D:\andreas\kde4\sources\kdevelop\lib\plugins\vcs\subversion\subversion_part.cpp:16:
C:/Programme/Subversion/include/apr/apr_general.h:124:1: warning: "strcasecmp" redefined
In file included from D:/andreas/kde4/sources/qt-copy/include/QtCore/../../src/corelib/tools/qbytearray.h:30,
                 from D:/andreas/kde4/sources/qt-copy/include/QtCore/qbytearray.h:1,
                 from D:/andreas/kde4/sources/qt-copy/include/QtCore/../../src/corelib/tools/qstring.h:28,
                 from D:/andreas/kde4/sources/qt-copy/include/QtCore/qstring.h:1,
                 from D:/andreas/kde4/sources/qt-copy/include/QtCore/QString:1,
                 from D:/andreas/kde4/sources/qt-copy/include/QtDesigner/../../tools/designer/src/lib/extension/extension.h:27,
                 from D:/andreas/kde4/sources/qt-copy/include/QtDesigner/extension.h:1,
                 from D:/andreas/kde4/sources/qt-copy/include/QtDesigner/QAbstractExtensionFactory:1,
                 from D:/andreas/kde4/sources/kdevelop/lib/interfaces/iextension.h:26,
                 from D:/andreas/kde4/sources/kdevelop/lib/plugins/vcs/interfaces/iversioncontrol.h:26,
                 from D:\andreas\kde4\sources\kdevelop\lib\plugins\vcs\subversion\subversion_part.h:15,
                 from D:\andreas\kde4\sources\kdevelop\lib\plugins\vcs\subversion\subversion_part.cpp:12:
D:/andreas/kde4/install/include/mingw/string.h:24:1: warning: this is the location of the previous definition
In file included from C:/Programme/Subversion/include/apr/apr_pools.h:39,
                 from C:/Programme/Subversion/include/svn_pools.h:30,
                 from D:\andreas\kde4\sources\kdevelop\lib\plugins\vcs\subversion\subversionthreads.h:21,
                 from D:\andreas\kde4\sources\kdevelop\lib\plugins\vcs\subversion\subversion_part.cpp:16:
C:/Programme/Subversion/include/apr/apr_general.h:130:1: warning: "strncasecmp" redefined
In file included from D:/andreas/kde4/sources/qt-copy/include/QtCore/../../src/corelib/tools/qbytearray.h:30,
                 from D:/andreas/kde4/sources/qt-copy/include/QtCore/qbytearray.h:1,
                 from D:/andreas/kde4/sources/qt-copy/include/QtCore/../../src/corelib/tools/qstring.h:28,
                 from D:/andreas/kde4/sources/qt-copy/include/QtCore/qstring.h:1,
                 from D:/andreas/kde4/sources/qt-copy/include/QtCore/QString:1,
                 from D:/andreas/kde4/sources/qt-copy/include/QtDesigner/../../tools/designer/src/lib/extension/extension.h:27,
                 from D:/andreas/kde4/sources/qt-copy/include/QtDesigner/extension.h:1,
                 from D:/andreas/kde4/sources/qt-copy/include/QtDesigner/QAbstractExtensionFactory:1,
                 from D:/andreas/kde4/sources/kdevelop/lib/interfaces/iextension.h:26,
                 from D:/andreas/kde4/sources/kdevelop/lib/plugins/vcs/interfaces/iversioncontrol.h:26,
                 from D:\andreas\kde4\sources\kdevelop\lib\plugins\vcs\subversion\subversion_part.h:15,
                 from D:\andreas\kde4\sources\kdevelop\lib\plugins\vcs\subversion\subversion_part.cpp:12:
D:/andreas/kde4/install/include/mingw/string.h:23:1: warning: this is the location of the previous definition
mingw32-make[2]: ***

Am I doing something wrong (sys/types is not directly included by any
part of that library)?

Andreas

-- 
You are a bundle of energy, always on the go.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun May 6 18:48:24 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.