bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compiler error


From: David Sugar
Subject: Re: compiler error
Date: Tue, 30 Nov 2004 13:49:22 -0500
User-agent: Mozilla Thunderbird 0.9 (Macintosh/20041103)

The problem appears principly to be with sigwait. We go through a lot of problems with determining if bsd or posix style sigwait is being used, and sometimes both versions exist and the correct one is selected by specific compiler defines. This type of problem is parcularly been troublesome on Solaris. The issues with pthread_create can be resolved by re-casting, though some platforms are fussy about being certain that the C function which is invoked through create is a "extern C" because they use different calling conventions or stack frame arrangements in c vs c++, and some prefer otherwise.

When we tested solaris 9, it was with gcc. The sunw compiler may well set some specific defines that do effect which version of sigwait you get out of the solaris headers, and hence chooses one different than what gcc gets...

address@hidden wrote:

Hi,

when i try to install and compile the newest versionm 1.3 under Solaris 9 (sparc), i got the follwing message:

source='thread.cpp' object='thread.lo' libtool=yes \
depfile='.deps/thread.Plo' tmpdepfile='.deps/thread.TPlo' \
depmode=none /bin/bash ../autoconf/depcomp \
/bin/bash ../libtool --mode=compile CC -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -D_REENTRANT -D_GNU_SOURCE -I/usr/include/libxm l2 -I../include -g -c -o thread.lo `test -f thread.cpp || echo './'`thread.cpp
mkdir .libs
CC -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY -D_REENT RANT -D_GNU_SOURCE -I/usr/include/libxml2 -I../include -g -c thread.cpp -KPIC -
DPIC -o .libs/thread.o
"thread.cpp", line 435: Warning (Anachronism): Formal argument destruct of type void(*)(void*) in call to ost::ThreadKey::ThreadKey(void(*)(void*)) is being pas
sed extern "C" void(*)(void*).
"thread.cpp", line 508: Warning (Anachronism): Assigning void(*)(int) to extern
"C" void(*)(int).
"thread.cpp", line 853: Warning (Anachronism): Formal argument 3 of type extern "C" void*(*)(void*) in call to pthread_create(unsigned*, const _pthread_attr*, e
xtern "C" void*(*)(void*), void*) is being passed void*(*)(void*).
"thread.cpp", line 890: Warning (Anachronism): Formal argument 3 of type extern "C" void*(*)(void*) in call to pthread_create(unsigned*, const _pthread_attr*, e
xtern "C" void*(*)(void*), void*) is being passed void*(*)(void*).
"thread.cpp", line 1608: Error: Too many arguments in call to "sigwait(sigset_t*
)".
"thread.cpp", line 1645: Warning (Anachronism): Assigning void(*)(int) to extern
 "C" void(*)(int).
1 Error(s) and 5 Warning(s) detected.
*** Error code 1

I used the Sun C++ compiler 5.5:

/users/lv30521/src/commoncpp2-1.3.0:CC -V
CC: Sun C++ 5.5 2003/03/12
/users/lv30521/src/commoncpp2-1.3.0:

:/users/lv30521/src/commoncpp2-1.3.0:uname -a
SunOS rodolfo 5.9 Generic_117171-10 sun4u sparc SUNW,Netra-T12
:/users/lv30521/src/commoncpp2-1.3.0:
\
Any ideas what's going wrong?

Egbert


------------------------------------------------------------------------

_______________________________________________
Bug-commoncpp mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-commoncpp




reply via email to

[Prev in Thread] Current Thread [Next in Thread]