Re: 1.3.0, and lrmi.c

Search this archive.

From: Matan Ziv-Av (matan@arava.co.il)
Date: Mon 13 Jul 1998 - 18:12:39 IDT


On Sun, 12 Jul 1998, Iftikhar Rathore wrote:

> 
> I am trying to compile 1.3.0 with glibc2, but still get the same error I
> got with patched version.
> 
> /home/root/svgalib-1.3.0/src/lrmi.c: In function `__svgalib_vm86old':
> /home/root/svgalib-1.3.0/src/lrmi.c:36: `__NR___svgalib_vm86old'
> undeclared (first use this function)
> /home/root/svgalib-1.3.0/src/lrmi.c:36: (Each undeclared identifier is 
> reported only once

That can be solved by adding the line 
#define __NR___svgalib_vm86old 113
before the    syscall1 line (line36)

Now there is some funny error while compiling:
lrmi.c: In function `vm86old':
lrmi.c:25: fixed or forbidden register was spilled.
This may be due to a compiler bug or to impossible asm
statements or clauses.

This can be solved by changing in Makefile.cfg the line
       DLLFLAGS = -fPIC
to
       DLLFLAGS = 

(According to gcc's documentation, the -fPIC flag is necessary
for creating a shared library, but I did create a shared library
without this flag and it seems to be working.)


A simpler solution is, of course, to disable the VESA driver, if it is
not needed.
 


Matan Ziv-Av.        zivav@cs.bgu.ac.il


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:22 IST