[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Fwd: svgatextmode-1.9]



Chris Gray wrote:

> On Fri, Sep 15, 2000 at 08:40:54AM +0600, Sergey I. Golod wrote:
> > Hello All.
> >
> > Today I want to patch svgatextmode-1.9 for adding pure devfs support(stm
> > have hardcoded console
> > name  - ie '/dev/tty[0-9]' in sources), and for begin just try recompile a
> > package, but got next warnings and errors:
> [big huge snip]
> > ttyresize.o: In function `get_ttysize':
> > ttyresize.o(.text+0x81): undefined reference to `outb'
> > ttyresize.o(.text+0x91): undefined reference to `inb'
> > ttyresize.o(.text+0xaf): undefined reference to `outw'
> [another big huge snip]
>
> The outb, inb, outw manpage says:
>
>        You  compile  with -O or -O2 or similar. The functions are
>        defined as inline macros, and will not be  substituted  in
>        without    optimization    enabled,   causing   unresolved
>        references at link time.
>
> since you weren't using optimization, it's no surprise that you have the
> uresolved references.

just now found bug in Makefile:
....
ARCH=$(shell arch)
CFLAGS_alpha =
CFLAGS_i386  = -pipe -O2 -Wall -Wpointer-arith -Wnested-externs
CFLAGS_i486  = $(CFLAGS_i386) -m486 -fomit-frame-pointer
CFLAGS_i586  = $(CFLAGS_i486) -fno-strength-reduce -malign-loops=2
-malign-jumps=2 -malign-functions=2
LDFLAGS_alpha =
LDFLAGS_i386  =
LDFLAGS_i486  = $(LDFLAGS_i386)
LDFLAGS_i586  = $(LDFLAGS_i386)

next lines must be added(because many, and I ;-), have P2/P3 proccessors):
CFLAGS_i686  = $(CFLAGS_i586)
LDFLAGS_i686  = $(LDFLAGS_i386)

after this patch all compiles fine.

thanks to all.

wbr, Serge.




Reply to: