Build Errors with IRServer for ARM

Software related support

Moderator: marcus

Build Errors with IRServer for ARM

Postby kjt » Wed 6. Feb 2013, 21:22

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.
kjt
 
Posts: 16
Joined: Tue 26. May 2009, 20:15

Re: Build Errors with IRServer for ARM

Postby IRTrans » Thu 7. Feb 2013, 00:15

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
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: Build Errors with IRServer for ARM

Postby kjt » Thu 7. Feb 2013, 15:16

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);
kjt
 
Posts: 16
Joined: Tue 26. May 2009, 20:15

Re: Build Errors with IRServer for ARM

Postby IRTrans » Thu 7. Feb 2013, 19:23

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
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32


Return to Software

Who is online

Users browsing this forum: No registered users and 3 guests

cron