[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Questions about the uClinux GPIO-Driver
Hi all,
I want to test the little programm from Johann Pfefferl (http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/archive/current/msg00030.html)
. I tried to compile it with the following makefile:
------------------------------------------------------------------------------
# Change it here or specify it on the "make" command line
KERNELDIR = /home/suzaku/s03_nase/uClinux-dist-20051110-suzaku8/linux-2.4.x
include $(KERNELDIR)/.config
WARNINGS = -Wall
CC = mb-gcc
OPT = -O2
CFLAGS = -D__KERNEL__ -DMODULE -I$(KERNELDIR)/include $(WARNINGS) $(OPT)
ifdef CONFIG_SMP
CFLAGS += -D__SMP__ -DSMP
endif
all: gpio.o
#skull.o: skull_init.o skull_clean.o
# $(LD) -r $ -o $@
clean:
rm -f *.o
rm -f *~
rm -f core
------------------------------------------------------------------------------
I got the following errors:
------------------------------------------------------------------------------
mb-gcc -D__KERNEL__ -DMODULE -I/home/suzaku/s03_nase/uClinux-dist-20051110-suzaku8/linux-2.4.x/include -Wall -O2 -c -o gpio.o gpio.c
In file included from /home/suzaku/s03_nase/uClinux-dist-20051110-suzaku8/linux-2.4.x/include/linux/ibm_ocp_gpio.h:41,
from gpio.c:6:
/home/suzaku/s03_nase/uClinux-dist-20051110-suzaku8/linux-2.4.x/include/linux/types.h:20: error: conflicting types for '_types_fd_set'
/opt/xilinx/edk-8.2i/gnu/microblaze/lin/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/sys-include/sys/types.h:185: error: previous declaration of '_types_fd_set' was here
/home/suzaku/s03_nase/uClinux-dist-20051110-suzaku8/linux-2.4.x/include/linux/types.h:21: error: conflicting types for 'dev_t'
/opt/xilinx/edk-8.2i/gnu/microblaze/lin/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/sys-include/sys/types.h:125: error: previous declaration of 'dev_t' was here
/home/suzaku/s03_nase/uClinux-dist-20051110-suzaku8/linux-2.4.x/include/linux/types.h:22: error: conflicting types for 'ino_t'
/opt/xilinx/edk-8.2i/gnu/microblaze/lin/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/sys-include/sys/types.h:93: error: previous declaration of 'ino_t' was here
/home/suzaku/s03_nase/uClinux-dist-20051110-suzaku8/linux-2.4.x/include/linux/types.h:24: error: conflicting types for 'nlink_t'
/opt/xilinx/edk-8.2i/gnu/microblaze/lin/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/sys-include/sys/types.h:155: error: previous declaration of 'nlink_t' was here
/home/suzaku/s03_nase/uClinux-dist-20051110-suzaku8/linux-2.4.x/include/linux/types.h:27: error: conflicting types for 'daddr_t'
/opt/xilinx/edk-8.2i/gnu/microblaze/lin/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/sys-include/sys/types.h:84: error: previous declaration of 'daddr_t' was here
/home/suzaku/s03_nase/uClinux-dist-20051110-suzaku8/linux-2.4.x/include/linux/types.h:28: error: conflicting types for 'key_t'
/opt/xilinx/edk-8.2i/gnu/microblaze/lin/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/sys-include/sys/types.h:137: error: previous declaration of 'key_t' was here
/home/suzaku/s03_nase/uClinux-dist-20051110-suzaku8/linux-2.4.x/include/linux/types.h:32: error: conflicting types for 'uid_t'
/opt/xilinx/edk-8.2i/gnu/microblaze/lin/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/sys-include/sys/types.h:130: error: previous declaration of 'uid_t' was here
/home/suzaku/s03_nase/uClinux-dist-20051110-suzaku8/linux-2.4.x/include/linux/types.h:33: error: conflicting types for 'gid_t'
/opt/xilinx/edk-8.2i/gnu/microblaze/lin/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/sys-include/sys/types.h:131: error: previous declaration of 'gid_t' was here
/home/suzaku/s03_nase/uClinux-dist-20051110-suzaku8/linux-2.4.x/include/linux/types.h:66: error: conflicting types for 'ssize_t'
/opt/xilinx/edk-8.2i/gnu/microblaze/lin/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/sys-include/sys/types.h:138: error: previous declaration of 'ssize_t' was here
/home/suzaku/s03_nase/uClinux-dist-20051110-suzaku8/linux-2.4.x/include/linux/types.h:81: error: conflicting types for 'clock_t'
/opt/xilinx/edk-8.2i/gnu/microblaze/lin/bin/../lib/gcc/microblaze/3.4.1/../../../../microblaze/sys-include/sys/types.h:63: error: previous declaration of 'clock_t' was here
gpio.c: In function `main':
gpio.c:17: warning: implicit declaration of function `ioctl'
gpio.c:18: warning: implicit declaration of function `perror'
gpio.c:18: warning: implicit declaration of function `g_strerror'
gpio.c:25: warning: implicit declaration of function `printf'
gpio.c:26: warning: implicit declaration of function `usleep'
make: *** [gpio.o] Error 1
------------------------------------------------------------------------------
Does somebody know a solution for this?
Greetings Nadine
--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/