certi-devel
[Top][All Lists]
Advanced

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

Re: [certi-dev] IEEE-1516 update


From: Eric Noulard
Subject: Re: [certi-dev] IEEE-1516 update
Date: Mon, 5 Jul 2010 13:37:46 +0200

2010/7/5 Martin Spott <address@hidden>:
> Hi folks,
>
> Eric Noulard wrote:
>
>> Please do it with your favorite OS/compiler combination such that we can cure
>> platform specific issues before the 3.4.0 release.
>
> The SunStudio11 compiler on Solaris10 feels a little bit unhappy about
> these:
>
> Building CXX object libHLA/CMakeFiles/HLA.dir/SHMPosix.o
> /opt/SUNWspro/bin/CC  -xO2 -xarch=v9 -xtarget=ultra2 -xprefetch=auto  
> -DHLA_EXPORTS   -xO2 -DNDEBUG -KPIC -I/usr/include/libxml2 
> -I/usr/local/src/certi/include -I/usr/local/src/certi 
> -I/usr/local/src/certi/libHLA   -DHOST_IS_BIG_ENDIAN -DHAVE_CONFIG_H=1 
> -DHAVE_XML -DRTI_USES_STD_FSTREAM -o libHLA/CMakeFiles/HLA.dir/SHMPosix.o -c 
> /usr/local/src/certi/libHLA/SHMPosix.cc
> "/usr/local/src/certi/libHLA/SHMPosix.cc", line 41: Error: The function 
> "shm_unlink" must have a prototype.
> "/usr/local/src/certi/libHLA/SHMPosix.cc", line 42: Error: The function 
> "shm_open" must have a prototype.
> "/usr/local/src/certi/libHLA/SHMPosix.cc", line 59: Error: The function 
> "shm_open" must have a prototype.
> "/usr/local/src/certi/libHLA/SHMPosix.cc", line 106: Error: The function 
> "shm_unlink" must have a prototype.
> "/usr/local/src/certi/libHLA/SHMPosix.cc", line 113: Error: Formal argument 1 
> of type char* in call to munmap(char*, unsigned) is being passed void*.
> 5 Error(s) detected.

Hi Martin,

Could you tell which header is required according to:

     man shm_unlink
     man shm_open
     man munmap

http://docs.sun.com/app/docs/doc/802-1930-03/6i5u95ukj?a=view
seems to tell <sys/mman.h> which is the appropriate header found in SHMPosix.cc.

> Building CXX object libHLA/CMakeFiles/HLA.dir/SHMSysV.o
> /opt/SUNWspro/bin/CC  -xO2 -xarch=v9 -xtarget=ultra2 -xprefetch=auto  
> -DHLA_EXPORTS   -xO2 -DNDEBUG -KPIC -I/usr/include/libxml2 
> -I/usr/local/src/certi/include -I/usr/local/src/certi 
> -I/usr/local/src/certi/libHLA   -DHOST_IS_BIG_ENDIAN -DHAVE_CONFIG_H=1 
> -DHAVE_XML -DRTI_USES_STD_FSTREAM -o libHLA/CMakeFiles/HLA.dir/SHMSysV.o -c 
> /usr/local/src/certi/libHLA/SHMSysV.cc
> "/usr/local/src/certi/libHLA/SHMSysV.cc", line 106: Error: Formal argument 1 
> of type char* in call to shmdt(char*) is being passed void*.
> 1 Error(s) detected.

Solaris seems to be non-standard ...

see:
http://docs.sun.com/app/docs/doc/816-5167/shmdt-2?l=en&a=view&q=shmdt
int shmdt(char *shmaddr);

Standard conforming

      int shmdt(const void *shmaddr);


We can add extra cast for Solaris case (ugly but...)

>
>
> Building CXX object libHLA/CMakeFiles/HLA.dir/SemaphorePosix.o
> /opt/SUNWspro/bin/CC  -xO2 -xarch=v9 -xtarget=ultra2 -xprefetch=auto  
> -DHLA_EXPORTS   -xO2 -DNDEBUG -KPIC -I/usr/include/libxml2 
> -I/usr/local/src/certi/include -I/usr/local/src/certi 
> -I/usr/local/src/certi/libHLA   -DHOST_IS_BIG_ENDIAN -DHAVE_CONFIG_H=1 
> -DHAVE_XML -DRTI_USES_STD_FSTREAM -o 
> libHLA/CMakeFiles/HLA.dir/SemaphorePosix.o -c 
> /usr/local/src/certi/libHLA/SemaphorePosix.cc
> "/usr/local/src/certi/libHLA/SemaphorePosix.cc", line 29: Error: S_IRUSR is 
> not defined.
> "/usr/local/src/certi/libHLA/SemaphorePosix.cc", line 29: Error: S_IWUSR is 
> not defined.
> 2 Error(s) detected.

May be those two are not defined on Solaris.
May be we should compile the POSIX things on Solaris...

-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org



reply via email to

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