On Saturday, 19 May 2007 21:31, Stefan Richter wrote:
> Hi,
> 
> the last release of s2ram, the one in suspend-0.5, does not work with
> Linux 2.6.22-rc2:
> 
> # s2ram -f -a3
> Switching from vt7 to vt1
> /proc/sys/kernel/acpi_video_flags does not exist; you need a kernel
> >=2.6.16.
> switching back to vt7
> 
> The same happens after I switched this "deprecated" option on:
> CONFIG_ACPI_PROCFS=y

This is a kernel configuration problem of some sort, I don't know what to
enable to make this work.  I can only send you a working .config if that helps.

> So I downloaded the cvs version today and learned that it needs libx86
> to be built.  Downloaded libx86-0.99.tar.gz because Gentoo Linux
> apparently doesn't provide it.
> 
> libx86-0.99 $ make
> make LIBRARY=static static
> make[1]: Entering directory `/home/stefan/Download/libx86-0.99'
> cc -O2 -Wall -DDEBUG -g   -c -o lrmi.o lrmi.c
> lrmi.c:83: error: field 'vm' has incomplete type
> lrmi.c: In function 'get_int_seg':
> lrmi.c:111: warning: cast to pointer from integer of different size
> lrmi.c: In function 'get_int_off':
> lrmi.c:118: warning: cast to pointer from integer of different size
> lrmi.c: In function 'LRMI_init':
> lrmi.c:147: warning: cast from pointer to integer of different size
> lrmi.c:155: warning: cast from pointer to integer of different size
> lrmi.c:156: warning: cast from pointer to integer of different size
> lrmi.c: In function 'set_regs':
> lrmi.c:191: error: 'IF_MASK' undeclared (first use in this function)
> lrmi.c:191: error: (Each undeclared identifier is reported only once
> lrmi.c:191: error: for each function it appears in.)
> lrmi.c:191: error: 'IOPL_MASK' undeclared (first use in this function)
> lrmi.c: In function 'em_inbl':
> lrmi.c:337: error: invalid lvalue in asm output 0
> lrmi.c: In function 'em_inb':
> lrmi.c:345: error: invalid lvalue in asm output 0
> lrmi.c: In function 'em_inw':
> lrmi.c:353: error: invalid lvalue in asm output 0
> lrmi.c: In function 'em_inl':
> lrmi.c:361: error: invalid lvalue in asm output 0
> lrmi.c: In function 'run_vm86':
> lrmi.c:594: warning: implicit declaration of function 'VM86_TYPE'
> lrmi.c:594: error: 'VM86_INTx' undeclared (first use in this function)
> lrmi.c:595: warning: implicit declaration of function 'VM86_ARG'
> lrmi.c:613: error: 'VIF_MASK' undeclared (first use in this function)
> lrmi.c:613: error: 'TF_MASK' undeclared (first use in this function)
> lrmi.c:618: error: 'VM86_UNKNOWN' undeclared (first use in this function)
> lrmi.c: In function 'LRMI_int':
> lrmi.c:840: error: 'IF_MASK' undeclared (first use in this function)
> lrmi.c:840: error: 'IOPL_MASK' undeclared (first use in this function)
> make[1]: *** [lrmi.o] Error 1
> make[1]: Leaving directory `/home/stefan/Download/libx86-0.99'
> make: *** [default] Error 2
> 
> 
> So I added an #include <asm-i386/vm86.h> to lrmi.c because this defines
> struct vm86_struct for me.  Next try:
> 
> $ make
> make LIBRARY=static static
> make[1]: Entering directory `/home/stefan/Download/libx86-0.99'
> cc -O2 -Wall -DDEBUG -g   -c -o lrmi.o lrmi.c
> lrmi.c: In function 'get_int_seg':
> lrmi.c:112: warning: cast to pointer from integer of different size
> lrmi.c: In function 'get_int_off':
> lrmi.c:119: warning: cast to pointer from integer of different size
> lrmi.c: In function 'LRMI_init':
> lrmi.c:148: warning: cast from pointer to integer of different size
> lrmi.c:156: warning: cast from pointer to integer of different size
> lrmi.c:157: warning: cast from pointer to integer of different size
> lrmi.c: In function 'emulate':
> lrmi.c:410: warning: cast to pointer from integer of different size
> /tmp/cc2LxyZV.s: Assembler messages:
> /tmp/cc2LxyZV.s:627: Error: Incorrect register `%rax' used with `l' suffix
> /tmp/cc2LxyZV.s:922: Error: Incorrect register `%rax' used with `l' suffix
> make[1]: *** [lrmi.o] Error 1
> make[1]: Leaving directory `/home/stefan/Download/libx86-0.99'
> make: *** [default] Error 2
> 
> 
> There doesn't seem to be any contact address for libx86 bug reports, so
> I'm posting here.

Yeah, thanks.  I think one of the Seife's patches did that.

Rafael

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Suspend-devel mailing list
Suspend-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/suspend-devel

Reply via email to