Danil Y. Zagornov wrote:
Hi
Licq-daily snapshot from 20080702 don't build on the freebsd
gmake[2]: Entering directory `/tmp/licq-20080702/src'
if g++ -DLOCALEDIR=\"/opt/licq-20080702/share/locale\" -DHAVE_CONFIG_H -I. -I. -I..  
-Wall -Wextra -I../include  -D_THREAD_SAFE -I/usr/local/include/gpgme -I/usr/local/include  -O2 
-pthread -MT icqpacket.o -MD -MP -MF ".deps/icqpacket.Tpo" -c -o icqpacket.o 
icqpacket.cpp; \
        then mv -f ".deps/icqpacket.Tpo" ".deps/icqpacket.Po"; else rm -f 
".deps/icqpacket.Tpo"; exit 1; fi
In file included from ../include/licq_filetransfer.h:64,
                 from ../include/licq_packets.h:79,
                 from icqpacket.cpp:35:
../include/licq_socket.h:96: error: field `m_sRemoteAddr' has incomplete type
../include/licq_socket.h:96: error: field `m_sLocalAddr' has incomplete type
../include/licq_socket.h: In member function `long unsigned int 
INetSocket::LocalIp()':
../include/licq_socket.h:55: error: `m_sLocalAddr' was not declared in this 
scope
../include/licq_socket.h:55: warning: unused variable 'm_sLocalAddr'
../include/licq_socket.h: In member function `long unsigned int 
INetSocket::RemoteIp()':
../include/licq_socket.h:57: error: `m_sRemoteAddr' was not declared in this 
scope
../include/licq_socket.h:57: warning: unused variable 'm_sRemoteAddr'
../include/licq_socket.h: In member function `short unsigned int 
INetSocket::LocalPort()':
../include/licq_socket.h:59: error: `m_sLocalAddr' was not declared in this 
scope
../include/licq_socket.h:59: warning: unused variable 'm_sLocalAddr'
../include/licq_socket.h: In member function `short unsigned int 
INetSocket::RemotePort()':
../include/licq_socket.h:60: error: `m_sRemoteAddr' was not declared in this 
scope
../include/licq_socket.h:60: warning: unused variable 'm_sRemoteAddr'
gmake[2]: *** [icqpacket.o] Error 1
gmake[2]: Leaving directory `/tmp/licq-20080702/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/licq-20080702'
gmake: *** [all] Error 2

evil% uname -sr
FreeBSD 6.3-STABLE
evil%

Thanks a lot!  :)

It looks like you're missing the definition of struct sockaddr_in. I guess bsd headers works a bit different here than linux headers. I've added include netinet/in.h to licq_socket.h, I hope this solves your problem. Just update and try again.

/Anders

Reply via email to