Hi
Licq-daily snapshot from 20080702 don't build on the freebsd again
if c++ -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I. -I..
-Wall -Wextra -I../include -I/usr/local/include -I/usr/local/include/gpgme
-I/usr/local/include -I/usr/include -O2 -fno-strict-aliasing -pipe
-I/usr/local/include -Wno-deprecated -MT translate.o -MD -MP -MF
".deps/translate.Tpo" -c -o translate.o translate.cpp; \
then mv -f ".deps/translate.Tpo" ".deps/translate.Po"; else rm -f
".deps/translate.Tpo"; exit 1; fi
translate.cpp: In member function `char* CTranslator::iconvConvert(const char*,
const char*, const char*, bool&, int, size_t*)':
translate.cpp:474: error: invalid conversion from `char**' to `const char**'
translate.cpp:474: error: initializing argument 2 of `size_t libiconv(void*,
const char**, size_t*, char**, size_t*)'
gmake[2]: *** [translate.o] Error 1
gmake[2]: Leaving directory
`/tmp/usr/ports/net-im/licq-devel/work/licq-20080702/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/tmp/usr/ports/net-im/licq-devel/work/licq-20080702'
gmake: *** [all] Ошибка 2
*** Error code 2
Thanks a lot! :)
On Wed, 2 Jul 2008 13:59:57 +0600
"Danil Y. Zagornov" <[EMAIL PROTECTED]> wrote:
>
> Thank for advice, everything fine!
>
> On Wed, 02 Jul 2008 09:50:20 +0200
> Anders Olofsson <[EMAIL PROTECTED]> wrote:
>
> >
> > 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