On 08:10 Fri 29 Jan , Erik Johansson wrote:
> On Thu, Jan 28, 2010 at 09:52, Danila <[email protected]> wrote:
> > Hi
> >
> > Licq 1.3.8 release don't build on the FreeBSD
> >
> > gmake[2]: Entering directory `/tmp/licq-1.3.8/src'
> > g++ -DLOCALEDIR=\"/opt/licq-1.3.8/share/locale\" -DHAVE_CONFIG_H -I. -I..  
> > -Wall -Wextra -I../include  -D_THREAD_SAFE -I/usr/local/include  -O2 
> > -pthread -MT icqd-tcp.o -MD -MP -MF .deps/icqd-tcp.Tpo -c -o icqd-tcp.o 
> > icqd-tcp.cpp
> > icqd-tcp.cpp: In member function 'bool 
> > CICQDaemon::ProcessTcpPacket(TCPSocket*)':
> > icqd-tcp.cpp:1742: error: 'letoh32' was not declared in this scope
> > gmake[2]: *** [icqd-tcp.o] Error 1
> > gmake[2]: Leaving directory `/tmp/licq-1.3.8/src'
> > gmake[1]: *** [all-recursive] Error 1
> > gmake[1]: Leaving directory `/tmp/licq-1.3.8'
> > gmake: *** [all] Error 2
> 
> Does it help if you change licq/include/licq_byteorder.h (around line
> 55) to include sys/types.h instead of machine/endian.h?
> 
> // Erik
> 
> -- 
> Erik Johansson
> Home Page: http://ejohansson.se/
> PGP Key: http://ejohansson.se/erik.asc
> 

Hi!
Change licq/include/licq_byteorder.h to include sys/types.h instead of 
machine/endian.h don't help me.
I change #elif to #if (around line 54) and licq build without errors.

--- licq_byteorder.h.orig       2009-08-30 22:45:34.000000000 +0600
+++ licq_byteorder.h    2010-01-29 12:47:13.000000000 +0500
@@ -51,7 +51,7 @@

 // BSD header for endian and byte swap
 // Compiler gives us __*BSD__ variables to check for
-#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
 # include <machine/endian.h>

 // BSD defines endian by setting _BYTE_ORDER to _BIG_ENDIAN or _LITTLE_ENDIAN
@@ -74,7 +74,7 @@
 # define LE_16(x) letoh16(x)
 # define LE_32(x) letoh32(x)
 # define LE_64(x) letoh64(x)
-
+# endif

 // Solaris header for endian and byte swap
 #elif defined(__sun) || defined(sun)

Reply via email to