Subject: Re: FreeBSD?s ioperm() vs. NetBSD?s i386_set_ioperm()
To: Nicolas Saurbier <Nicolas.Saurbier@biodata.de>
From: Dublet <dublet@dublet.org>
List: tech-kern
Date: 07/17/2003 12:41:02
Nicolas Saurbier(Nicolas.Saurbier@biodata.de)@2003.07.17 12:35:30 +0000:
> Host1>make
> g++ -O1 -o meskalin meskalin.cpp
> /tmp/ccwqSvfh.o: In function `meskalin::startio(void)':
> /tmp/ccwqSvfh.o(.text+0x15b): undefined reference to `i386_get_ioperm'
> /tmp/ccwqSvfh.o(.text+0x16d): undefined reference to `i386_set_ioperm'
> collect2: ld returned 1 exit status
> *** Error code 1
> 
> Stop.

you need to link with -li386:
g++ -O1 -o meskalin -li386 meskalin.cpp
That would probably make it work.



-- 
|>DUBLET: Digital Unit Built for Logical Exploration and Troubleshooting<|
"The California crunch really is the result of not enough power to
power the power of generating plants."
	--George W. Bush