nanogui: Compiling nano-X (SVGAlib) under Linux Mandrake 8
Subject:
Re: [nanogui] Compiling nano-X (SVGAlib) under Linux Mandrake 8
From:
David Douthitt ####@####.####
Date:
29 Jun 2001 14:44:40 -0000
Message-Id: <3B3C8644.91602CA1@mailbag.com>
Jordan Crouse wrote:
>
> First and foremost, what version are you trying to compile?
Just for completeness - and to repeat: 0.89pre7.
> My answers follow:
>
> On Thursday 28 June 2001 14:45, David Douthitt mentioned:
> > I'm trying to do this, but find many errors:
> >
> > 1. drivers/kbd_ttyscan.c - ioctl_setpalette() and ioctl_getpalette()
> > don't exist.
>
> This is in the VT switch code - These should be defined in drivers/fb.h
> which should be included in scr_fb.c. .89pre7 does indeed have this.
>
> However, drivers/kdb_ttyscan.c should have a #ifdef around the VT switching
> code. This compiles fine for me, though, so I don't know why the Makdrake
> compiler is getting angry.
I tried compiling again, this time on a different box with a different
kernel, different glibc (since the target environment is glibc
2.1....ooops):
$ rpm -q glibc
glibc-2.1.3-22
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
The kernel headers were 2.2.18 headers.
Here is the exact error:
/pub/nanoX/microwin/src/lib/libmwdrivers.a(kbd_ttyscan.o): In function
`switch_vt':
kbd_ttyscan.o(.text+0x5d5): undefined reference to `ioctl_getpalette'
kbd_ttyscan.o(.text+0x67e): undefined reference to `ioctl_setpalette'
collect2: ld returned 1 exit status
make[1]: *** [/pub/nanoX/microwin/src/bin/nano-X] Error 1
Here are some warnings:
hre_api.c: In function `safe_malloc':
hre_api.c:96: warning: implicit declaration of function `error'
hre_api.c: In function `recognizer_unload':
hre_api.c:212: warning: implicit declaration of function
`__recognizer_internal_finalize'
...and...
matrix.c: In function `NewVector':
matrix.c:54: warning: implicit declaration of function `exit_error'
Seemed like fewer errors here.
Here is a diff of my config against the default:
--- config.orig Sun Jan 21 22:11:07 2001
+++ config Fri Jun 29 09:33:49 2001
@@ -55,10 +55,10 @@
# Libraries to build: microwin, nano-X, nanowidget, object frameworks
#
####################################################################
-MICROWIN = Y
+MICROWIN = N
NANOX = Y
SHAREDLIBS = N
-NWIDGET = Y
+NWIDGET = N
OBJFRAMEWORK = N
@@ -67,7 +67,7 @@
# Demos to build
#
####################################################################
-MICROWINDEMO = Y
+MICROWINDEMO = N
NANOXDEMO = Y
####################################################################
@@ -230,14 +230,14 @@
# set PORTRAIT_MODE to L or R for left or right orientation
# set FBREVERSE to reverse bit orders in 1,2,4 bpp
# set FBVGA=N for all systems without VGA hardware (for MIPS must=N)
-FRAMEBUFFER = Y
-FBVGA = Y
-VTSWITCH = Y
+FRAMEBUFFER = N
+FBVGA = N
+VTSWITCH = N
PORTRAIT_MODE = N
FBREVERSE = N
# svgalib screen driver
-VGALIB = N
+VGALIB = Y
# direct VGA hardware access screen driver
HWVGA = N
@@ -251,8 +251,8 @@
# HARRIERMOUSE for NEC Harrier
# PSIONMOUSE for the Psion 5
####################################################################
-GPMMOUSE = Y
-SERMOUSE = N
+GPMMOUSE = N
+SERMOUSE = Y
TPMOUSE = N
TPHELIO = N
ADSMOUSE = N