rpcgen, nettrap, phrelay, etc. on RTP

Hi Guys,

It’s been a while since I posted here, good see you you are all going strong.
I’m still using Qnx4 of course, just that I don’t have a news browser at
work, so lost touch for a while.

Anyway I’ve been playing with the RTP for a few days now so I thought I’d
share my questions and answers with you guys.

ok, first problem was that my ISA network card was not detected on bootup.
Nettrap detected it as ne-2000 so I simply had to slay the io-net task and
start it up with the additional option for my driver.

Then using the network config icon on the desktop finally remembered enough
about TCP/IP to get local access.

Internet access came soon after - however I had to make sure that I didn’t
enter my proxy settings into the Gopher or Socks columns - otherwise it just
didn’t work.

Then I found I had to reenter the same proxy settings into the package
manager and into my voyager in my other user account (i.e. both lance & root)

I’ve got a Matrox g200 (I think) running fine in 1024x768 at 85Hz, but the
windows and menu thing seem to be about 5 pixels above my actual display (and
it isn’t my monitor thats wrong)

First option I was given to set my display settings (i.e. on very first
bootup) chose 80Hz as the maximum - which wasn’t supported at all well - most
likely by my monitor - it kept blinking on and off - mostly off.

It would be nice if there was a device manager - I haven’t figured out
exactly where to invoke my manual io-net command manually yet. I suspect it
needs to be in /etc/rc.d/ somewhere. (new to me - not the same as QNX4)

I downloaded the full install with the package manager and played with a few
more things

e.g. the v-mail client didn’t work -froze up - when I tried to use it to
connect to a pop3 hosts (I think it may actually be the outgoing stuff that
froze it, but I really can’t tell) Eventually I had to slay it manually as
it started chewing most of the CPU time.

also, I found that i didn’t have inetd running, and su’ing then running it
enabled telnet and ftp access to remote clients fine.

I tried to use Phindows to it from another box, but I got no draw commands -
it was all in black, but I found if I alt-tabbed and went back into it I
could see the shape of the login window cos it was the only thing not
redrawn, and the cursor turned to a text entry one at two levels - so I
entered my name and password there and it disappeared, but I then had an
invisible desktop, so didn’t risk breaking it. Any ideas? There is no
/etc/config/phrelay file, but I don’t think it has to have one.

At one point my pdm equivalent thingy disappeared (crashed I suspect) -
though there is nothing in /var/dumps/ and “dumper -v /var/dumps” does appear
when I invoke ps. I got it back by right clicking and selecting “shelf
config”.

I fired up phAB and converted a few apps - that was mostly good, but a few
data structures had to be changed - e.g. I had a PhArea_t that was initialise
with e.g. {10,20,5,5} that had to change to {{10,20},{5,5}} but it worked
fine eventually - some minor differences like some buttons I added from code
were resized if their text was longer than them, but no big deal.

I converted a few QNX4 programs - many of them had already been
cross-compiled against linux, so GCC was quite familiar and all worked well.

I found myself doing either of the following

e.g.
#if defined(QNX)
#if defined(QNXNTO)
printf(“Neutrino”);
#else
printf(“QNX4”);
#endif
#else
printf(“Linux”);
#endif

or in many cases

#if defined(QNX) && ! defined(QNXNTO)
strnicmp(“asd”, “asdd”, 4);
#else
strncasecmp(“asd”, “asdd”, 4);
#endif

although in some cases the NTO stuff was backwards compatable with qnx -
actually it worked for either in the example I just showed

I had no troubles with imake, we had started with it under QNX4 then recently
added linux support, so the QNXNTO stuff was just as easy as adding ||
defined (QNXNTO) to the if defined(linux) parts.

rpcgen didn’t work sadly - it reported that it couldn’t find CPP or C
preprocessor, though I tried exporting CPP=gcc to no avail (any clues
anyone?)

Also, haven’t done any Qnet yet, so can’t comment there.

As a final note, what is RTP - is it Neutrino based or not? Seems to be a
distinct product for marketting reasons, is it also distinct at a technical
level?

cheers
Lance

Lance Roberts
www.2000solved.com


Sent via Deja.com http://www.deja.com/
Before you buy.

In article <8r8811$7g5$1@nnrp1.deja.com>,
Date Doctor <lance_roberts@my-deja.com> wrote:

rpcgen didn’t work sadly - it reported that it couldn’t find CPP or C
preprocessor, though I tried exporting CPP=gcc to no avail (any clues
anyone?)

Whoops, sorry to enter this group after so long with the wrong hat on.

I tried copying the /usr/bin/cpp to /lib/cpp (which a quick “strings” showed
me was what rpcgen was looking for) And no errors showed, but the code that
was generated for .h, _clnt.c and _svc.c was no good at all - just an empty
husk.

also, one of my phAB apps hangs occasionally (was perfectly ok under qnx4),
but the photon debugger doesn’t give any help - it interrupts it and
continues it, but no other option works, and the call stack, etc, options
don’t do anything at all that I can see.

Any ideas anyone?

cheers
Lance

Lance Roberts
www.2000solved.com


Sent via Deja.com http://www.deja.com/
Before you buy.

In article <8r8lap$h66$1@nnrp1.deja.com>,
Lance Roberts <lance_roberts@my-deja.com> wrote:

snip

sorry to add more to this, but anyone know where I can find makedepend ? it
didn’t come with the imake for some reason?

cheers
Lance

Lance Roberts
www.2000solved.com


Sent via Deja.com http://www.deja.com/
Before you buy.