Author Topic: Experiences With Rc8  (Read 3606 times)

MarcusKracht

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Experiences With Rc8
« on: January 19, 2005, 08:25:34 pm »
Since some software was not working as promised I followed the advice
and installed RC8. Looks good, but now I have new problems:

(1) startx will not work. It says:

[w100fb] set 640x480 (VGA 90 degree)

waiting for X server to shut down set_power_state: what=256 state=0
send_event: event=0

(It seems to be a power issue ... I get a message "start check battery" -- hm, I
have been using using AC power all the way, that is strange)

(2) I am a user of LaTeX and had a working system under pdaXrom 1.0.5
including a xdvi and xpdf. Now, however, xdvi complains: "illegal instruction"
and conversion to .pdf via dvipdfm aborts at the end. Thus, viewing the result
is barred. I converted to .ps, which worked, and used the viewer "v"
provided by Zazz -- and kaboom! The system stalled. (It was after that that
starx ceased to function properly.)

Help us appreciated.

-- Marcus

(3) Can I get gvim again? I admit I am addicted to it.

jandr

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://bok.fas.harvard.edu/john/zaurus/
Experiences With Rc8
« Reply #1 on: January 19, 2005, 10:37:41 pm »
Quote
(1) startx will not work. It says:

[w100fb] set 640x480 (VGA 90 degree)

waiting for X server to shut down set_power_state: what=256 state=0
send_event: event=0

(It seems to be a power issue ... I get a message "start check battery" -- hm, I
have been using using AC power all the way, that is strange)

Hi Marcus,
the "start check battery"  confused me for a while too...I believe it just means the battery-status daemon is starting up.  When my startx stopped working  it was because I'd installed some QT libraries tgat were conflicting with the system ones that the new WM expected.  Do you have older QT libs somewhere in your ldconfig path or do you manually set QTDIR?

Quote
(2) I am a user of LaTeX and had a working system under pdaXrom 1.0.5
includng a xdvi and xpdf. Now, however, xdvi complains: "illegal instruction"
and conversion to .pdf via dvipdfm aborts at the end. Thus, viewing the result
is barred. I converted to .ps, which worked, and used the viewer "v"
provided by Zazz -- and kaboom! The system stalled. (It was after that that
starx ceased to function properly.)

First of all, let me thank you for providing your tex-on-pdaxrom page, it helped me get going and I still use your bibtex and libkpathsea.  The pwers that be tell me that FP emulation in libc changed between 1.0.5 and 1.1.0rc8, so some but not all apps need recompiling -- or you can simply get libraries that use the older FP model, install them in their own directory, and write a wrapper script for the apps that need them which setenvs LD_LIBRARY_PATH to that directory.  I got the libc and xlibs packages from debian/woody, and put wrappers around Zazz' dvips and gs binaries, as well as around your bibtex.  (Zazz' latex embeds .ps figures into the dvi, which is why I switched to his.)

That gives me the ability to view latex docs in gv, which isn't quite ideal.  But it turns out xdvi
 compiles out-of-the-box on rc8, and on the C760's screen it's absolutely amazing.  You can grab my binaries of it from here.

If you want pdfs, Zazz' gs comes with it.  But see the xpdf thread in this forum for its own library issues.

Enjoy!
- SL-C760 - Ambicom WiFi CF - PNY 512MB SD - Belkin 1500E IR kb - pdaXrom rc12 (2005/11) -

MarcusKracht

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Experiences With Rc8
« Reply #2 on: January 20, 2005, 04:26:23 pm »
Dear Jandr,

thanks very much for the reply. I had some very frustrating moments with RC8.
Besically, startx would not work reliably. For example, I added myself as a user
with a password and that caused a hickup. So I am using the bare setup, me
as root. I know people say it's dangerous but I got used to it. I can't say what
caused startx to quit, but lets hope that things have been resolved.

I read the thread on xpdf. I used the trick of linking libfreetype.so.6.3.4
to libfreetype.so and libfreetype.so.6. After that I was able view my existing
pdfs. I shall add the T1 fonts to the xpdfrc. Keep fingers crossed.

I am not a linux wizard, so it will take a while until I understand the business
of environment variables and wrappers that you are talking about. Maybe
that is something worth  knowing independently. I downloaded your xdvi-motif.bin
and xdvi-gaw.bin and was hoping to find just an xdvi as before that I could start.
(I got it running on 1.0.5 by tweaking the config file. It worked beautifully and
much faster than the xpdf so I shall work to get it again.) Maybe I should
take a look at your xdvik then to see where this leads me.

I vaguely remember that some latex routines depend on awk. Do you happen
to know if it is included in 1.1.0?

Once I get latex to work properly I shall start to wrap it into a tar so people can
use it. I had planned this for my 1.0.5 version but now that I am irrevocably
hooked to 1.1.0, maybe I shall use my energy for that then.

Is there a gv that does not crash like that from zazz??? (Because dvips works
fine.) Lest but not least: one should also include ps2pdf and the like. They
are quite useful, but I have not checked whether they work under the new
version.

Any feedback welcome!

-- Marcus

MarcusKracht

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Experiences With Rc8
« Reply #3 on: January 20, 2005, 06:05:57 pm »
Quote from: MarcusKracht,Jan 20 2005, 01:26 PM
Sorry to bother you again. I tried to install the xdvi using the instructions. I seem
to miss some utilities, though. I have installed (1) gcc and gcc-headers, (2)
glibc/ligbcc (were in the original system) (3) binutils and (4) make. I passed
ok with ./configure but got some error messages, but make simply wouldn't
work. So, what packages are required in order to install xdvi? Knowing this
would help me a lot, as I also need to install ocaml, and if gcc and `make'
both work this would mean I don't have to rely on someone making an ipkg
(which someone kindly supplied for 1.0.5).

Thanks a lot for your help!

-- Marcus

jandr

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://bok.fas.harvard.edu/john/zaurus/
Experiences With Rc8
« Reply #4 on: January 20, 2005, 08:33:06 pm »
Hi Marcus,
ack!  I see that my webpage nowhere said that you didn't need the "src" file, i.e. the idea isn't that you should have to compile xdvi yourself.  Sorry about leading you down that path.  What happens if you just use one of the binaries from the "bin" file?  That file should unpack over top of ztex and work out-of-the-box, if ztex itself was installed properly already -- ztex comes with a script called simply "xdvi" which itself runs "xdvi-xaw.bin", and it's the latter that my xdvi.bin tarball overwrites.  So you shouldn't need gcc or extra headers or anything like that.

(Sorry I haven't done a better job packaging it up... you may not be a linux guru, but the inner workings of tex and ghostscript leave me completely befuddled!)

If you do want to compile it yourself, I can't say that I know of any extra packages I needed to get it to compile, but here are some that I already had installed that it might conceivably expect: console-tools & consoletools-libs, diffutils, groff, freetype, patch, perl, pango.  (Some of those probably come standard with your 1.1.0 installation already).  What error messages does ./configure give?  Usually it's pretty explicit about whatever problem it found.

If all you need is OCAML, I can take a shot a compiling it up.  (If you trust me that is

Re: things from your previous post, 1.1.0 does come with awk, and while there is the full GNU awk available in the "gawk" package, I haven't needed it to do any latexing.  I'm not sure what's causing your startx problems, but I do recall seeing other threads in which folks expressed similar frustrations.  (When I startx as non-root, it works fine, but it gives me an ugly TWM-based session by default.)

Here's an example of the "wrapper script" I've been mentioning, this one for gs:

Code: [Select]
#!/bin/sh
export LD_PRELOAD=/lib/libgcc_s.so
export LD_LIBRARY_PATH=/usr/local/oldlibs
exec /usr/share/ghostscript/8.14/bin/gs "$@"

If you put that code into a file named "gs" in /usr/local/bin, and do "chmod a+rx /usr/local/bin/gs" to make it an executable, then the command "gs" should run ghostscript for you... if you've gotten all the older libraries that gs requires and put them in /usr/local/oldlibs that is.  gv and ps2pdf should also work when given the same treatment.  (Note: I'm not a guru in any sense, so others may have a better way of doing this!  In particular, if the older binary you're putting a wrapper around is in a directory in your $PATH, then you might have to name the wrapper file something different.)

I got my old libs from Debian, but that was easy as I've got a Debian desktop with the "dpkg" package manager included... if you don't have easy access to a debian system you can grab them from my  webpage I linked to in my previous post.

again, I hope all this helps.  And I'm sure I haven't been completely clear and/or general, so don't bang your head too much if you find my instructions don't quite do the trick for you.
« Last Edit: January 20, 2005, 08:44:50 pm by jandr »
- SL-C760 - Ambicom WiFi CF - PNY 512MB SD - Belkin 1500E IR kb - pdaXrom rc12 (2005/11) -

MarcusKracht

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Experiences With Rc8
« Reply #5 on: January 24, 2005, 12:50:15 pm »
Hi jandr,

I am finally back again after I installed RC8 and fought with the unevitable
complications of a fresh system. Seems to work now. I have installed the
latex stuff, not the ztex, but the one I had, since it worked perfectly up to
the point of producing pdf, and viewing with xdvi. As for the latter, when I
call it it wants an xdvi.bin, which I can nowhere find. Your sources only
supply xdvi-motif.bin and xdvi-xaw.bin. What to do?

Meanwhile I have downloaded the extra packages. I shall try to compile ocaml
myself first for the simple reason that I need to learn how it works so that I
won't anyone to do this for me when a new version comes up. Thanks for the
offer, I'd rather ask for help when I am stuck.

I shall look into the rest later. Seems like enough to do for now ...

Thanks so much for the help.

-- Marcus

jandr

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • http://bok.fas.harvard.edu/john/zaurus/
Experiences With Rc8
« Reply #6 on: January 24, 2005, 02:22:24 pm »
Quote
it wants an xdvi.bin, which I can nowhere find. Your sources only
supply xdvi-motif.bin and xdvi-xaw.bin. What to do?

Meanwhile I have downloaded the extra packages. I shall try to compile ocaml
myself first for the simple reason that I need to learn how it works so that I
won't anyone to do this for me when a new version comes up. Thanks for the
offer, I'd rather ask for help when I am stuck.

That one is (hopefully) simple: just rename one of them to xdvi.bin, e.g.
"mv /usr/bin/xdvi-xaw.bin /usr/bin/xdvi.bin" and try again.

And I did go ahead and package up OCAML for 1.1.0rc8 already, it's at
http://interstel.net/~girash/zaurus/.
I got the sources from Debian, and couldn't get the newest version they had (3.08) to compile without errors, so I went back to version 3.07.2a.  Using the instructions in its INSTALL file, it compiled the bytecode parts cleanly but wouldn't do the native compilers (which according to its README, isn't surprising.)
- SL-C760 - Ambicom WiFi CF - PNY 512MB SD - Belkin 1500E IR kb - pdaXrom rc12 (2005/11) -