[mapguide-internals] mapguide 2 trunk cmake patches and instructions - with links instead of patches

Helio Chissini de Castro helio at kde.org
Thu Oct 23 15:14:17 EDT 2008


On Quinta 23 Outubro 2008 16:52:35 Zac Spitzer wrote:
> i got a little further
>
> Linking CXX static library libMgSecurity.a
> [ 53%] Built target MgSecurity
> [ 53%] Building CXX object
> Common/Foundation/CMakeFiles/MgFoundation.dir/FoundationBuild.cpp.o
> In file included from /usr/include/ace/ACE_export.h:11,
>                  from /usr/include/ace/Sock_Connect.h:19,
>                  from /usr/include/ace/INET_Addr.h:17,
>                  from
> /home/zac/mapguide-2.0.2/Common/Foundation/Foundation.h:46,
>                  from
> /home/zac/mapguide-2.0.2/Common/Foundation/Data/BatchPropertyCollection.cpp
>:18, from
> /home/zac/mapguide-2.0.2/Common/Foundation/FoundationBuild.cpp:21:
> /usr/include/ace/config-lite.h:71:7: error: #error _REENTRANT has to be
> defined! In file included from
> /home/zac/mapguide-2.0.2/Common/Foundation/Data/BatchPropertyCollection.cpp
>:18, from
> /home/zac/mapguide-2.0.2/Common/Foundation/FoundationBuild.cpp:21:
> /home/zac/mapguide-2.0.2/Common/Foundation/Foundation.h:198:2: error:
> #error Please define ACE_HAS_THREAD_SAFE_ACCEPT
> make[2]: ***
> [Common/Foundation/CMakeFiles/MgFoundation.dir/FoundationBuild.cpp.o] Error
> 1

This is related to Debian/Ubuntu ACE not be compiled with this flag enabled.
since ACE build is done by touching the ace/config.h.in ( no other easy way ), 
we do that in Mandriva ACE package:

# Lack of proper config way requires some sed trick to get functionalities 
enabled
# THREAD_SAFE_ACCEPT
sed -i "s/^#undef ACE_HAS_THREAD_SAFE_ACCEPT.*/#define 
ACE_HAS_THREAD_SAFE_ACCEPT/g" ace/config.h.in

-- 
Helio Chissini de Castro
KDE Project
Brasil and South America Primary Contact


More information about the mapguide-internals mailing list