< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

Re: [reSIProcate] compile errors


At first blush, I'd guess that there's something wrong with the macro for FD_ZERO in the headers you're using. It looks like you're using crosstool to generate your cross compiler. I'm going to try to replicate your toolchain environment to see whether I get the same error.

In the meanwhile, I would encourage you to try compiling a minimal application that exercises this macro to see whether we can trivially reproduce the problem. Can your cross-compiler successfully produce a mips binary from the following code?


//--------------------------------------------------
#include <stdio.h>
#include <sys/select.h>

int main (int argc, char** argv)
{
 fd_set s;
 FD_ZERO(&s);
 return 0;
}
//--------------------------------------------------

/a

On 5/20/08 1:55 PM, Michael Zhang wrote:
Hi Adam,

I am building the latest reSiprocate 1.3.1 with a mips cross compiler,
mipsel-gcc-3.3.2-glibc-2.3.2. And got some compile errors as below.

make[1]: Entering directory `/home/mzhang/resiprocate/resip/stack/test'
/home/mzhang/crosstool/gcc-3.3.2-glibc-2.3.2/mipsel-unknown-linux-gnu/bin/mipsel-unknown-linux-gnu-g++
 -D_REENTRANT  -g -Wall -fPIC                 -I../../../build/.. 
-I../../../build/.. -I../../../build/../contrib/ares -I/usr/include 
-I/home/mzhang/crosstool/gcc-3.3.2-glibc-2.3.2/mipsel-unknown-linux-gnu/include/c++/3.3.2/
 
-I/home/mzhang/crosstool/gcc-3.3.2-glibc-2.3.2/mipsel-unknown-linux-gnu/include/c++/3.3.2/mipsel-unknown-linux-gnu/
 -DOS_MAJOR_VER=2 -DOS_MINOR_VER=4 -DOS_POINT_VER=22-1 -DOS_PATCH_VER=2115 
-DUSE_ARES -DHAVE_POPT_H -c -o obj.debug.Linux.mipsel/UAS.o UAS.cxx
../../../rutil/Socket.hxx: In constructor `resip::FdSet::FdSet()':
../../../rutil/Socket.hxx:102: error: impossible constraint in `asm'
../../../rutil/Socket.hxx:103: error: impossible constraint in `asm'
../../../rutil/Socket.hxx:104: error: impossible constraint in `asm'
make[1]: *** [obj.debug.Linux.mipsel/UAS.o] Error 1
make[1]: Leaving directory `/home/mzhang/resiprocate/resip/stack/test'
make: *** [tests] Error 2


Can you please shed some light on this?

Thanks,

BTW - I heard about you from my colleague Mandeep Ahuja.

Michael