Page 1 of 1

Build Errors with IRServer for ARM

PostPosted: Wed 6. Feb 2013, 21:22
by kjt
I am trying to build IRServer 6.09.04 for a Raspberry Pi (i.e. ARM v6). During the build process I see:

Code: Select all
 
  ascii.c: In function 'ASCIISendHex':
  ascii.c:263:2: warning: passing argument 1 of 'swap_word' makes pointer from
  integer without a cast [enabled by default]


I presume the above isn't important.

Code: Select all
  lowlevel.h:129:6: note: expected 'word *' but argument is of type 'word'


The above looks more critical. Does this need correction?

Code: Select all
  make: *** No rule to make target `arm/ccf.o', needed by `irserver_arm'.  Stop.


The build process is odd because there is no ccf.c. I had to build the version without CCF.

To my surprise the following fails as an ordinary user:

Code: Select all
 
  irserver USB
  Could not open IP socket


It seems I have to run this as root. Can that be right? 21000 isn't a special port.

Thanks for any advice.

Re: Build Errors with IRServer for ARM

PostPosted: Thu 7. Feb 2013, 00:15
by IRTrans
Hmm, no idea why there are the type errors. We did not see them with any of our builds.

There is no ccf.c - therefore you need the no_ccf target.

On LINUX you need to run the irserver as "root" beacuse it uses other sockets and not only 21000.

IRTrans

Re: Build Errors with IRServer for ARM

PostPosted: Thu 7. Feb 2013, 15:16
by kjt
Thanks for the reply.

The code of ascii.c is suspicious. Inside function ASCIISendHex, here are the key lines

Code: Select all
 
  word smask,car;

  swap_word (smask);


The swap_word function requires a pointer, so I suspect this should be:

Code: Select all
 
  swap_word (&smask);

Re: Build Errors with IRServer for ARM

PostPosted: Thu 7. Feb 2013, 19:23
by IRTrans
That is correct. In the current source code we use exactly that syntax. We will check if the LINUX sourcecode on our website is current.

IRTrans