Here's some more progress on a LinuxPPC system:

About 2/3 of the irda-utils package now compiles on a LinuxPPC R5 system. I had to 
install some extra development libs to do this. irattach and irmanager compiled file 
and actually ran. I watched the syslog and it correcly opened the IR serial port, and 
failed to find the kernel module (as expected). The .h and .so files also compiled. 
Running "make" is actually like "make install" -- it installs everything. Irdadump did 
not compile.

I figured out the answer to my previous post regarding how to edit the kernels configs 
before compiling,from http://www.snafu.de/~wehe/IR-HOWTO-3.html. The changes are to 
.config, and best made *after* configuring the kernel with make 
config/menuconfig/xconfig. I went ahead and did just as it said...

I've been compiling the 2.2.12 kernels (ftp.kernel.org) for a while with no problems. 
I applied the patch-2.2.12-irda1 and it applied fine with without warnings. Then make 
dep, make all, make modules. During the compile when it got to the irda part, all the 
.c files compiled, but the linking failed and the compile ended in an error. I tried 
this a few times and get the same error if I just include CONFIG_IRDA=y and no other 
irda configs:

gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 
-fomit-frame-pointer -fno-strict-aliasing -D__powerpc__ -fsigned-char -msoft-float 
-pipe -fno-builtin -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -DMODULE 
-DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h   -c -o af_irda.o 
af_irda.c
af_irda.c: In function `irda_getname':
af_irda.c:403: union has no member named `irda'
af_irda.c:404: union has no member named `irda'
af_irda.c:407: union has no member named `irda'
af_irda.c:408: union has no member named `irda'
af_irda.c: In function `irda_bind':
af_irda.c:457: union has no member named `irda'
af_irda.c: In function `irda_accept':
af_irda.c:497: union has no member named `irda'
af_irda.c:530: union has no member named `irda'
af_irda.c: In function `irda_connect':
af_irda.c:582: union has no member named `irda'
af_irda.c: In function `irda_create':
af_irda.c:695: union has no member named `irda'
af_irda.c: In function `irda_release':
af_irda.c:772: union has no member named `irda'
af_irda.c: In function `irda_sendmsg':
af_irda.c:806: union has no member named `irda'
af_irda.c: In function `irda_recvmsg_dgram':
af_irda.c:866: union has no member named `irda'
af_irda.c: In function `irda_recvmsg_stream':
af_irda.c:934: union has no member named `irda'
af_irda.c: In function `irda_setsockopt':
af_irda.c:1191: union has no member named `irda'
af_irda.c: In function `irda_getsockopt':
af_irda.c:1236: union has no member named `irda'
make[2]: *** [af_irda.o] Error 1
make[2]: Leaving directory `/usr/src/linux/net/irda'
make[1]: *** [_modsubdir_irda] Error 2
make[1]: Leaving directory `/usr/src/linux/net'
make: *** [_mod_net] Error 2
/usr/src/linux/ 

Here's what I added to the .config file at the end:

CONFIG_IRDA=m
CONFIG_IRLAN=m
CONFIG_IRLAN_CLIENT=m
CONFIG_IRLAN_SERVER=m
CONFIG_IROBEX=m
CONFIG_IRCOMM=m
CONFIG_IRLPT_CLIENT=m
CONFIG_IRLPT_SERVER=m
CONFIG_IRDA_OPTIONS=m
CONFIG_IRDA_CACHE_LAST_LSAP=m
CONFIG_IRDA_FAST_RR=m
CONFIG_IRDA_RECYCLE_RR=m
CONFIG_IRDA_DEBUG=m
CONFIG_IRDA_COMPRESSION=m
CONFIG_IRDA_DEFLATE=m
CONFIG_IRDA_BZIP2=m
CONFIG_IRDA_BSD=m
CONFIG_IRTTY_SIR=m
# CONFIG_DONGLE
# CONFIG_ESI_DONGLE
# CONFIG_ACTISYS_DONGLE
# CONFIG_TEKRAM_DONGLE
# CONFIG_GIRBIL_DONGLE
CONFIG_NSC_FIR=m
CONFIG_WINBOND_FIR=m
# CONFIG_SHARP_FIR


I'm using a RedHat Linux R5 Q3 from Linuxppc.org, this has the following environment 
which is fairly up to date:

glibc-2.1.1-6c
glibc-devel-2.1.1-6c
glibc-profile-2.1.1-6c
egcs-1.1.2-12c
egcs-c++-1.1.2-12c
egcs-g77-1.1.2-12c
egcs-objc-1.1.2-12c
autoconf-2.13-5
automake-1.4-4
m4-1.4-12
binutils-2.9.1.0.990418-1c

Any suggestions appreciated.

-Dave
[EMAIL PROTECTED]







_______________________________________________
Linux-IrDA mailing list  -  [EMAIL PROTECTED]
http://www4.pasta.cs.UiT.No/mailman/listinfo/linux-irda

Reply via email to