[Pkg-ace-devel] Bug#591586: ace: FTBFS on kfreebsd-*: sys/os_socket.h

Petr Salinger Petr.Salinger at seznam.cz
Wed Aug 11 16:40:56 UTC 2010


Hi,

http://svn.debian.org/viewsvn/pkg-ace/trunk/debian/config.h?revision=704&pathrev=704
does not work.

On GNU/kFreeBSD, the __FreeBSD_version is not defined.

After altering head of config.h to

#ifndef ACE_CONFIG_H_INCLUDED
#define ACE_CONFIG_H_INCLUDED
#include <sys/param.h>
#ifdef __FreeBSD_kernel_version
#define __FreeBSD_version __FreeBSD_kernel_version
#define __FreeBSD__ __FreeBSD_kernel__
#include "config-freebsd.h"

build ends with:



g++ -fvisibility=hidden -fvisibility-inlines-hidden -W -Wall
  Local_Name_Space.cpp
In file included from /gace-5.7.7/ACE_wrappers/ace/OS_NS_Thread.h:32,
                  from /gace-5.7.7/ACE_wrappers/ace/Thread_Mutex.h:31,
                  from /gace-5.7.7/ACE_wrappers/ace/Atomic_Op.h:23,
                  from /gace-5.7.7/ACE_wrappers/ace/Log_Msg.h:27,
                  from /gace-5.7.7/ACE_wrappers/ace/Malloc.h:24,
                  from /gace-5.7.7/ACE_wrappers/ace/Malloc_T.h:18,
                  from /gace-5.7.7/ACE_wrappers/ace/Local_Name_Space.h:20,
                  from Local_Name_Space.cpp:1:
/gace-5.7.7/ACE_wrappers/ace/os_include/os_sched.h:47: error: conflicting 
declaration 'typedef struct cpu_set_t cpu_set_t'
/usr/include/bits/sched.h:101: error: 'cpu_set_t' has a previous 
declaration as 'typedef struct cpu_set_t cpu_set_t'
In file included from /gace-5.7.7/ACE_wrappers/ace/OS_NS_stdlib.h:449,
                  from /gace-5.7.7/ACE_wrappers/ace/OS_Memory.h:341,
                  from /gace-5.7.7/ACE_wrappers/ace/OS_NS_Thread.h:36,
                  from /gace-5.7.7/ACE_wrappers/ace/Thread_Mutex.h:31,
                  from /gace-5.7.7/ACE_wrappers/ace/Atomic_Op.h:23,
                  from /gace-5.7.7/ACE_wrappers/ace/Log_Msg.h:27,
                  from /gace-5.7.7/ACE_wrappers/ace/Malloc.h:24,
                  from /gace-5.7.7/ACE_wrappers/ace/Malloc_T.h:18,
                  from /gace-5.7.7/ACE_wrappers/ace/Local_Name_Space.h:20,
                  from Local_Name_Space.cpp:1:
/gace-5.7.7/ACE_wrappers/ace/OS_NS_stdlib.inl: In function 'const char* 
ACE_OS::getprogname()':
/gace-5.7.7/ACE_wrappers/ace/OS_NS_stdlib.inl:628: error: '::getprogname' 
has not been declared
/gace-5.7.7/ACE_wrappers/ace/OS_NS_stdlib.inl: In function 'void 
ACE_OS::setprogname(const char*)':
/gace-5.7.7/ACE_wrappers/ace/OS_NS_stdlib.inl:638: error: '::setprogname' 
has not been declared
In file included from 
/gace-5.7.7/ACE_wrappers/ace/os_include/sys/os_socket.h:256,
                  from 
/gace-5.7.7/ACE_wrappers/ace/os_include/netinet/os_in.h:29,
                  from /gace-5.7.7/ACE_wrappers/ace/Sock_Connect.h:26,
                  from /gace-5.7.7/ACE_wrappers/ace/ACE.h:36,
                  from /gace-5.7.7/ACE_wrappers/ace/Malloc_T.cpp:16,
                  from /gace-5.7.7/ACE_wrappers/ace/Malloc_T.h:923,
                  from /gace-5.7.7/ACE_wrappers/ace/Local_Name_Space.h:20,
                  from Local_Name_Space.cpp:1:
/usr/include/netinet/sctp.h: At global scope:
/usr/include/netinet/sctp.h:33: error: expected constructor, destructor, 
or type conversion before '(' token
In file included from /usr/include/netinet/sctp.h:494,
                  from 
/gace-5.7.7/ACE_wrappers/ace/os_include/sys/os_socket.h:256,
                  from 
/gace-5.7.7/ACE_wrappers/ace/os_include/netinet/os_in.h:29,
                  from /gace-5.7.7/ACE_wrappers/ace/Sock_Connect.h:26,
                  from /gace-5.7.7/ACE_wrappers/ace/ACE.h:36,
                  from /gace-5.7.7/ACE_wrappers/ace/Malloc_T.cpp:16,
                  from /gace-5.7.7/ACE_wrappers/ace/Malloc_T.h:923,
                  from /gace-5.7.7/ACE_wrappers/ace/Local_Name_Space.h:20,
                  from Local_Name_Space.cpp:1:
/usr/include/netinet/sctp_uio.h:33: error: expected constructor, 
destructor, or type conversion before '(' token
make[2]: *** [.shobj/Local_Name_Space.o] Error 1



The GNU/kFreeBSD uses FreeBSD kernel with GNU libc,
so mixture between linux and plain FreeBSD config.h might be needed.

Please contact debian-bsd at lists.debian.org if you need further assistance.

Petr





More information about the Pkg-ace-devel mailing list