Hello:
I am trying to install systemimager 3.7.5 on edgy. After i changed the shell
to bash, and applied the patch bellow, i still got these errors. Is the only
way to compile this version by installing 3.6 and compiling over it? Perhaps
I applied the patch incorrectly.
What i did was create a file specified by the index line
(initrd_source/patches/udpcast.ethtool_fix.patch and
patches/util-linux.20.llseek.patch) and put the contents below the dashed
line into each respective file, then compile.
Any help is appreciated.
Patches used:
Index: patches/util-linux.20.llseek.patch
===================================================================
--- patches/util-linux.20.llseek.patch (revision 0)
+++ patches/util-linux.20.llseek.patch (revision 0)
@@ -0,0 +1,32 @@
+--- util-linux-2.12r/fdisk/llseek.c.orig 2006-10-31 10:15:56.000000000
+0100
++++ util-linux-2.12r/fdisk/llseek.c 2006-10-31 10:26:48.000000000 +0100
+@@ -31,9 +31,11 @@
+
+ #ifdef __NR__llseek
+
+-static _syscall5(int,_llseek,unsigned int,fd,unsigned long,offset_high,
+- unsigned long, offset_low,long long *,result,
+- unsigned int, origin)
++static int _llseek (unsigned int fd, unsigned long oh,
++ unsigned long ol, long long *result,
++ unsigned int origin) {
++ return syscall (__NR__llseek, fd, oh, ol, result, origin);
++}
+
+ #else
+
+--- util-linux-2.12r/fdisk/sfdisk.c.orig 2006-10-31 10:28:03.000000000
+0100
++++ util-linux-2.12r/fdisk/sfdisk.c 2006-10-31 10:28:42.000000000 +0100
+@@ -178,8 +178,10 @@
+
+ #ifndef use_lseek
+ static __attribute__used
+-_syscall5(int, _llseek, unsigned int, fd, ulong, hi, ulong, lo,
+- loff_t *, res, unsigned int, wh);
++int _llseek (unsigned int fd, ulong hi, ulong lo,
++ loff_t *res, unsigned int wh) {
++ return syscall (__NR__llseek, fd, hi, lo, res, wh);
++}
+ #endif
+
+ static int
Index: initrd_source/patches/udpcast.ethtool_fix.patch
===================================================================
--- initrd_source/patches/udpcast.ethtool_fix.patch (revision 0)
+++ initrd_source/patches/udpcast.ethtool_fix.patch (revision 3793)
@@ -0,0 +1,10 @@
+--- udpcast-20060929/socklib.c.orig 2006-10-31 19:37:39.000000000 +0100
++++ udpcast-20060929/socklib.c 2006-10-31 19:38:05.000000000 +0100
+@@ -37,6 +37,7 @@
+ typedef unsigned short u16;
+ typedef unsigned char u8;
+
++#include <linux/types.h>
+ #include <linux/ethtool.h>
+ #include <linux/sockios.h>
+
Error:
In file included from fdisk.c:24:
fdisk.h:85: warning: type qualifiers ignored on function return type
fdisk.c: In function ‘get_partition_table_geometry’:
fdisk.c:810: warning: pointer targets in initialization differ in signedness
fdisk.c: In function ‘get_boot’:
fdisk.c:948: warning: pointer targets in passing argument 1
of ‘valid_part_table_flag’ differ in signedness
fdisk.c:958: warning: pointer targets in passing argument 1
of ‘valid_part_table_flag’ differ in signedness
fdisk.c:1002: warning: pointer targets in passing argument 1
of ‘valid_part_table_flag’ differ in signedness
fdisk.c: At top level:
fdisk.c:1256: warning: type qualifiers ignored on function return type
cc -c -pipe -O2 -mtune=i486 -fomit-frame-pointer -I../lib -Wall
-Wmissing-prototypes -Wstrict-prototypes -DNCH=1 -D_FILE_OFFSET_BITS=64
-DSBINDIR=\"/sbin\" -DUSRSBINDIR=\"/usr/sbin\" -DLOGDIR=\"/var/log\"
-DVARPATH=\"/var\" -DLOCALEDIR=\"/usr/share/locale\" -O2
llseek.c -o llseek.o
llseek.c:34: error: expected declaration specifiers or ‘...’ before ‘_llseek’
llseek.c:34: error: expected declaration specifiers or ‘...’ before ‘fd’
llseek.c:34: error: expected declaration specifiers or ‘...’
before ‘offset_high’
llseek.c:35: error: expected declaration specifiers or ‘...’
before ‘offset_low’
llseek.c:35: error: expected declaration specifiers or ‘...’ before ‘result’
llseek.c:36: error: expected declaration specifiers or ‘...’ before ‘origin’
llseek.c:50: warning: return type defaults to ‘int’
llseek.c: In function ‘_syscall5’:
llseek.c:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘{’ token
llseek.c:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘{’ token
llseek.c:34: error: parameter name omitted
llseek.c:34: error: parameter name omitted
llseek.c:34: error: parameter name omitted
llseek.c:35: error: parameter name omitted
llseek.c:35: error: parameter name omitted
llseek.c:36: error: parameter name omitted
llseek.c:93: error: expected ‘{’ at end of input
make[2]: *** [llseek.o] Error 1
make[2]: Leaving directory
`/home/ala/systemimager-3.7.5/src/util-linux-2.12r/fdisk'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/ala/systemimager-3.7.5/src/util-linux-2.12r'
make: *** [/home/ala/systemimager-3.7.5/src/util-linux-2.12r.build] Error 2
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users