1.5pre6 in Interix, usleep, libXpm & get_tty
Jeff jeff@turing.dynip.com
Sat, 11 Jul 1998 12:08:24 -0400
Hello there. I'm in the process of porting AfterStep 1.5pre6 to Interix
(unix subsystem for NT http://www.interix.com), and have most of the
components done, save a few key modules. If you would like to see a
screenshot of this, visit http://turing.dynip.com/as1.jpg. I do have a few
questions though. If anyone would like details of what had to be done to
port it, send me a message: (mailto://jeff@turing.dynip.com).
When porting the asclock and asload modules, I ran into a problem with the
usleep() function. usleep and poll aren't supported in Interix apparently.
Only sleep() exists, and isn't a solution for it goes in increments of 1
second. Any ideas how to accomplish sleeping for 5/100th of a second?
I compiled and installed libXpm 4.7. I don't have the X11R6 libs, just
X11R5, but it seemed to build the libraries with no problems. However, when
compiling certain modules like pager or widgets, they blow up with a lot of
'undefined reference to 'XSerBackground', etc. I'm pretty sure the ones it
can't find are located in libxpm, but not totally certain. Before I dive
too far into it, can anyone tell me if it's a lost cause (to use libXpm)
because of the lack of the X11R6 libs? Hopefully Interix will release the
X11R6 libs by the end of this summer. The detail from one of the errors is
as follows:
-----------------------------------------
gcc -fstrength-reduce -fpcc-struct-return -O -O -L//Y//usr/X11R5/lib -o
Script libyywrap.o lex.yy.o y.tab.o Instructions.o
Script.o -L/usr/X11R6/lib -lXpm -lXext -lX11 -L../../lib -lafterstep -L./Wi
dgets -lWidgets
./Widgets/libWidgets.a(Tools.o)(.text+0x1c):Tools.c: undefined reference to
`XSetBackground'
./Widgets/libWidgets.a(Tools.o)(.text+0x27):Tools.c: undefined reference to
`XSetForeground'
./Widgets/libWidgets.a(Tools.o)(.text+0x41):Tools.c: undefined reference to
`XDrawImageString'
etc....
----------------------------------------
This isn't totally AfterStep related, but I figured it's along the same
line: When porting rxvt2.20, I'm having a problem with a call to fchown()
and fchmod(). Those functions don't exist in Interix, only chmod() and
chown(). They are slightly different in their casting. Those two functions
are being called in a get_tty function (to get the current tty). Do any of
you know a different approach to snagging the tty? That is the only thing
blocking me from porting rxvt, and would love to have a nice ansi term
alongside AfterStep alongside NT apps!
Thanks for your time,
-Jeff
--
WWW: http://www.afterstep.org/
FTP: ftp://ftp.afterstep.org/
MAIL: http://wormhole.eosys.com/mailing-lists/AfterStep-Info.html
To unsubscribe: echo unsubscribe | mail afterstep-request@eosys.com