Date: Sat, 3 Apr 2004 11:33:44 -0600 From: Eric De la Cruz Lugo <eric@iteso.mx> To: David Schultz <das@FreeBSD.ORG> Cc: freebsd-standards@FreeBSD.ORG Subject: i386_get_ioperm syntax.... Message-ID: <1081013624.406ef5788b3a1@iteso.mx> In-Reply-To: <20040328231756.GA86437@VARK.homeunix.com> References: <1080397817.40658ff979c2e@iteso.mx> <20040328231756.GA86437@VARK.homeunix.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, am not on the list, please reply to my e-mail for possible solutions.
I have this problem compiling a code:
terra# make
make all-recursive
Making all in m4
Making all in src
if g++ -DREENTRANT -I. -I. -I.. -O6 -I/usr/include/bhpos -O6 -I/usr/
include/bhpos -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/
lib/gtkmm/include -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 -I/
usr/X11R6/include -I/usr/local/include/sigc++-1.0 -I/usr/include/bhpos/hw
-I/usr/include/bhpos/widget -g -O2 -MT callbacks.o -MD -MP -MF ".deps/
callbacks.Tpo" -c -o callbacks.o `test -f 'callbacks.cc' || echo
'./'`callbacks.cc; then mv ".deps/callbacks.Tpo" ".deps/callbacks.Po"; else
rm -f ".deps/callbacks.Tpo"; exit 1; fi
callbacks.cc: In member function `int CPost::DeviceControl(int, int)':
callbacks.cc:160: error: invalid conversion from `int' to `unsigned int*'
callbacks.cc:160: error: invalid conversion from `int' to `int*'
callbacks.cc:163: error: invalid conversion from `int' to `unsigned int*'
*** Error code 1
Stop in /home/eric/banana/post-1.2.1/src.
*** Error code 1
Stop in /home/eric/banana/post-1.2.1.
*** Error code 1
Stop in /home/eric/banana/post-1.2.1.
terra#
-------
the relevant lines are :
else if(flags==5){
return i386_get_ioperm(0x3F8, 6, 1);
}
else if(flags==6){
return i386_get_ioperm(0x3F8, 6, 0);
}
and:
else if(flags==5){
i386_set_ioperm(0x2F8, 6, 1);
}
else if(flags==6){
i386_set_ioperm(0x2F8, 6, 0);
}
-------
some knows how to solve something like this?, am not a c++ programmer, if
someone can give me a hint about what the right values for the
i386_get_ioperm() should be in FreeBSD 5.2.1, please reply to my e-mail.
thanks in advance.
Eric De La Cruz Lugo.
Merida, Yucatan, Mexico
---
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1081013624.406ef5788b3a1>
