Re: [Aoetools-discuss] ggaoed under kernel 3.2.0 or newer
Brought to you by:
ecashin,
elcapitansam
From: Lars T. <ta...@bb...> - 2012-04-18 10:20:31
|
Hi there again! Am Wed, 18 Apr 2012 11:21:40 +0200 Lars Täuber <ta...@bb...> schrieb: > Hi there! > > I just tried to compile ggaoed under ubuntu 12.04 LTS amd64 server. > Does anyone had succes with this? > I get complaints about the following: > make all-recursive > make[1]: Entering directory `/usr/src/ggaoed-r131' > Making all in . > make[2]: Entering directory `/usr/src/ggaoed-r131' > gcc -Wall -Wmissing-prototypes -Wstrict-prototypes -Wsign-compare -g -O2 > -o ggaoed ctl.o device.o ggaoed.o mem.o netlink.o network.o -lglib-2.0 > -lrt -latomic_ops -lblkid -laio device.o: In function > `open_dev': /usr/src/ggaoed-r131/device.c:332: undefined reference to > `S_ISBLK' /usr/src/ggaoed-r131/device.c:342: undefined reference to > `S_ISBLK' /usr/src/ggaoed-r131/device.c:352: undefined reference to > `S_ISBLK' device.o: In function > `setup_dev': /usr/src/ggaoed-r131/device.c:332: undefined reference to > `S_ISREG' device.o: In function > `validate_dev_fd': /usr/src/ggaoed-r131/device.c:403: undefined reference > to `S_ISBLK' collect2: ld returned 1 exit status make[2]: *** [ggaoed] > Error 1 make[2]: Leaving directory `/usr/src/ggaoed-r131' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/src/ggaoed-r131' > make: *** [all] Error 2 > > > I added > > #include <linux/stat.h> > > to device.c but this didn't help. > I suppose the #if in stat.h is the reason: > #if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) > > How to solve this? > Has anyone more success? > I'm not a programmer but solved it eventually. There is no <sys/stat.h> file in the system. But the configure script writes #define HAVE_SYS_STAT_H 1 to config.h. So I added #include <sys/stat.h> to device.c and it compiled. How does this work? One more but totally different thing if I'm allowed. Is there anyone reading this who has a recent LSI mptsas driver for dkms under a recent kernel version? I'm looking for a dkms (source) mptlinux driver 4.28.00.00 or newer for the 3.2.0 kernel. LSI didn't answer positively until now. Thanks Lars |