Re: Undefined reference to __cli and __sti

Search this archive.

From: Matan Ziv-Av (matan@svgalib.org)
Date: Tue 20 Feb 2001 - 17:48:33 IST


> I just did a reinstall of svgalib on a machine here at work in order to help
> me learn more about installing things like this. I have been writing
> programs on unix based machines for almost 10 years but have little
> experience running my own system. I am trying to change this.
> 
> Anyway, I installed version 1.4.1 (the version running here) by just doing a
> make clean and a make install. All the programs I've written on this machine
> run, but I can't compile anything new. I get:
> 
> /lib/libvga.so: undefined reference to '__cli'
> /lib/libvga.so: undefined reference to '__sti'

This has to be some header mismatch. On my system, asm/system.h includes
the line:

#define __cli() __asm__ __volatile__ ("cli": : :"memory")

So, the symbol __cli should not appear in the compiled file.

Please check that the file /usr/include/asm/system.h includes this line
(or similar), and that this line is not protected by #ifdef __KERNEL__.


-- 
Matan Ziv-Av.                         matan@svgalib.org


------------------------------------------------------------------
Unsubscribe:  To:   listbot@svgalib.org
              Body: unsubscribe linux-svgalib


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