[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GCC on AIX complaint; Was: [certi-dev] IEEE-1516 update
From: |
Eric Noulard |
Subject: |
Re: GCC on AIX complaint; Was: [certi-dev] IEEE-1516 update |
Date: |
Fri, 12 Nov 2010 08:36:22 +0100 |
2010/11/11 Martin Spott <address@hidden>:
> Just a short update between return from customer and supper ....
>
> Eric Noulard wrote:
>
>> I'd really like to have CERTI compile on Solaris again
>> it shouldn't be that hard.
>
> I'll leave that one to the other thread.
>
>>> [ 47%] Building CXX object libCERTI/CMakeFiles/CERTI.dir/SocketTCP.o
>>> cd /usr/local/src/certi/libCERTI && /opt/freeware/bin/g++ -DCERTI_EXPORTS
>>> -DHOST_IS_BIG_ENDIAN -DHAVE_CONFIG_H=1 -DHAVE_XML -DRTI_USES_STD_FSTREAM
>>> -DDEBUG -I/opt/freeware/include/libxml2 -I/usr/local/src/certi/include
>>> -I/usr/local/src/certi -I/usr/local/src/certi/libHLA
>>> -I/usr/local/src/certi/libCERTI -o CMakeFiles/CERTI.dir/SocketTCP.o -c
>>> /usr/local/src/certi/libCERTI/SocketTCP.cc
>>> /usr/local/src/certi/libCERTI/SocketTCP.cc: In member function 'virtual
>>> void certi::SocketTCP::close()':
>>> /usr/local/src/certi/libCERTI/SocketTCP.cc:394: error: '::close' has not
>>> been declared
>>
>> On Linux the ::close() is defined in <unistd.h>
>> It was not explicitely included in SocketTCP.cc so I guess its
>> inclusion was indirect.
>> I did try to add explicit inclusion in SocketTCP.cc.
>
> Looks good. Next step is:
>
> [ 54%] Building CXX object libCERTI/CMakeFiles/CERTI.dir/SocketUDP.o
> cd /usr/local/src/certi/libCERTI && /opt/freeware/bin/g++ -DCERTI_EXPORTS
> -DHOST_IS_BIG_ENDIAN -DHAVE_CONFIG_H=1 -DHAVE_XML -DRTI_USES_STD_FSTREAM
> -DDEBUG -I/opt/freeware/include/libxml2 -I/usr/local/src/certi/include
> -I/usr/local/src/certi -I/usr/local/src/certi/libHLA
> -I/usr/local/src/certi/libCERTI -o CMakeFiles/CERTI.dir/SocketUDP.o -c
> /usr/local/src/certi/libCERTI/SocketUDP.cc
> /usr/local/src/certi/libCERTI/SocketUDP.cc: In member function 'virtual void
> certi::SocketUDP::createConnection(const char*, unsigned int)':
> /usr/local/src/certi/libCERTI/SocketUDP.cc:103: error: 'gethostname' was not
> declared in this scope
> /usr/local/src/certi/libCERTI/SocketUDP.cc: In member function 'void
> certi::SocketUDP::createUDPServer(unsigned int)':
> /usr/local/src/certi/libCERTI/SocketUDP.cc:152: error: 'gethostname' was not
> declared in this scope
> /usr/local/src/certi/libCERTI/SocketUDP.cc: In member function 'virtual void
> certi::SocketUDP::close()':
> /usr/local/src/certi/libCERTI/SocketUDP.cc:259: error: '::close' has not been
> declared
> make[2]: *** [libCERTI/CMakeFiles/CERTI.dir/SocketUDP.o] Error 1
> make[2]: Leaving directory `/usr/local/src/certi'
>
>
> Looks like I should send you a package of AIX headers .... ;-)
Ok, I did review all "::close(xx)" or "close(xx)" usage in CERTI source and add
#include <unistd.h> when missing.
May be you can update/retry and open a bug report for AIX with first
error if it does not compile.
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org