Re: Problem with compiling sample program

Search this archive.

From: Sergio Masci (sergio@xcprod.com)
Date: Tue 11 Sep 2001 - 20:19:52 IDT


References to `__global_cli' and `__global_sti' look like calls to functions
that enable and disable interrupts.

If after re-installing SVGALIB from source (as Matan has suggested) you
still have this problem, try looking through the svgalib source for
interrupt enabling and disabling. Look for things like 'enable', 'disable',
'cli' and 'sti'. Remember that case maybe important (check for CLI as well
as cli, and Enable, ENABLE and enable). Also you may need leading underscore
characters. THEN look for interrupt enabling / disabling in the linux man
pages. Finally have a look in the libraries. Use something like:

nm $( find /lib -iname "*.a") | grep -i enable | less

Hope this helps.

Regards
Sergio


On Tue, 11 Sep 2001, Michael Nielsen wrote:

> I have a problem with compiling the sample program at your website. I have
> installed the RPM-packages svgalib-devel-1.4.1-9.i386.rpm and
> svgalib-1.4.1-9.i386.rpm on my Redhat 7.1 distribution. When I compile i
> get this message.
>
> [root@dong svgalib]# gcc -O3 -o samle sample.c -lvga
> /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libvga.so: undefined
reference to `__global_cli'
> /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libvga.so: undefined
reference to `__global_sti'
> collect2: ld returned 1 exit status
> [root@dong svgalib]#

This has been reported a few times, but a definite answer has not been
found. This seems to be specific to RH7, and might be solved if you'll
install svgalib from source (if you do, you might need to edit
/etc/ld.so.conf, to add /usr/local/lib to it).


--
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:24 IST